SUMMARY: Copy disk image from one disk to another in Solaris 2.5

From: Steven Quan (
Date: Wed Sep 30 1998 - 11:48:47 CDT

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

Basically there are 2 methods that have been suggested: use "dd" or
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

        8. shutdown
        9. setup new boot device
                ok nvalias disk00
                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,

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:49 CDT