SUMMARY: how to make a copy/second bootdisk

Jan Plu (jan.plu@dolmen.be)
Tue, 10 Jun 1997 08:29:03 +0200

SUMMARY

>> How to make a copy/second bootdisk on a SunOS 4.1.3_U1 ? <<

Solutions provided by uhostmaster@hcmc.geoquest.slb.com (Sundaram.r)
jwbarth@sandia.gov
bern@penthesilea.Uni-Trier.DE
An alternative was given by robbo@box.net.au. (see bottom)
Thanks to all of them.

1) Connect both disks to the system. Reboot (single user).

2) Format, label and create new filesystem on the new disk
according to the original boot disk.
/usr/etc/newfs /dev/rsdxa

3) Copy over the data to the new disk. This must be done
for all the partitions and verify.
/usr/etc/mount /dev/rsdxa /mnt
cd /mnt
/usr/etc/dump 0f - /dev/sd0y | /usr/etc/restore rf -
/bin/rm /mnt/restoresymtable
cd /
/usr/etc/umount /mnt
/usr/etc/fsck /dev/rsdxy

4) Run installboot on the new disk.
installboot -vlt /mnt/boot bootsd /dev/rsdxa

An alternative was given by robbo@box.net.au.
dd if=/dev/rsd0a of=/dev/rsdxa
change SCSI id of new disk to that of the original
and replace the disks.

Jan Plu, System Engineer
EMAIL: jan.plu@dolmen.be
Dolmen Computer Applications (http://www.dolmen.be)
Edingensesteenweg 196, B-1500 Halle - Belgium
Tel.: +32 2 360 10 40 Fax.: +32 2 360 02 07