System Administration Guide: Basic Administration

Example—Copying a Disk (dd)

This example shows how to copy master disk /dev/rdsk/c0t0d0s2 to clone disk /dev/rdsk/c0t2d0s2.


# touch /reconfigure
# init 0
ok boot
# dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t2d0s2 bs=128k
# fsck /dev/rdsk/c0t2d0s2
# mount /dev/dsk/c0t2d0s2 /mnt 
# cd /mnt/etc
# vi vfstab
(Modify entries for the new disk)
# cd /
# umount /mnt
# init 0
# boot disk2 -s
# sys-unconfig
# boot disk2