Copy disk image from one disk to another in Solaris 2.5

Thanks you all for many many responses I've got.

Basically there are 2 methods that have been suggested: use "dd" or

"ufsdump"

Specically, Zivko Margetic was very generous giving me a complete & detailed

answer, thank you very much.

Here they are:

I. From Zivko Margetic.

        1. Make new partition & format (use format & newfs)

        2. Mount newly created partition #mount /dev/dsk/c0t0d0s0 /mnt

        3. ufsdump and ufsrestore to copy

                #ufsdump 0bf - /dev/where/from | (cd /mnt; ufsrestore xf -)

        4. install bootblock

                #/usr/sbin/installboot /usr/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0

        5. Mount new file system

                #mount /dev/dsk/c0t0d0s0 /mnt

        6. change /etc/vfstab

        7. record new boot device

                #ls -l c0t0d0s0

                /iommu&f,e0000000/sbus&f,e0001000/espdma&f,400000/esp&f,800000/sd&0,0:a

        8. shutdown

        9. setup new boot device

                ok nvalias disk00

/iommu&f,e0000000/sbus&f,e0001000/espdma&f,400000/esp&f,800000/sd&0,0:a

                ok nvstore

                ok setenv boot-device disk00

                ok setenv diag-device disk00

                ok boot

II. use dd

        dd if=/dev/from/where of=/dev/to/where

Again thanks all,

s.q.

[2614 byte] By [CodeProf.com] at [2007-12-25 11:29:00]