Make a copy of your root disk on solaris 10

if you need to make a copy of your boot disk, and you don’t have
disksuite, and you only have one slice as “/”, and this is solaris 10,
you can do:
#prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s – /dev/rdsk/c0t1d0s0
#newfs /dev/dsk/c0t1d0s 0
#mount /dev/dsk/c0t1d0s0 /a
#cd /
#find . -mount | cpio -pmdv /a
#installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
#vi /a/etc/vfstab
(change references from c0t0d0s0 to c1)
#mkdir /a/tmp
#mkdir /a/dev
#mkdir /a/proc
#touch /a/etc/mnttab
#mkdir /a/etc/svc/volatile
#mkdir /a/system/object
#mkdir /a/system/contract
#umount /a
#init 0
#boot otherdisk -r
And the system will boot fine from the other disk.
Remember it should be better to do this in single user mode, and with apps down.
200/433

Leave a Reply

Your email address will not be published. Required fields are marked *