Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I recover to a root disk replacement if I have a cpio backup.

System Recovery

How do I recover to a root disk replacement if I have a cpio backup.

by  stanhubble  Posted    (Edited  )
SCO Unix Recovery Installation

-> boot with emergency disk set (root and boot disks)
- fdisk (usually use entire disk for unix)
- badtrk (optional but highly recommended)
- divvy -b 1 -c 1 -i
-> note starting and ending blocks are not critical but make sure the division number is the same as before
- dd if=/etc/hdboot0 of=/dev/hd0a
- dd if=/etc/hdboot1 of=/dev/hd0a bs=1k seek=1
- mount /dev/hd0root /mnt
- mkdir /mnt/stand
- mount /dev/boot /mnt/stand
- mkdir /mnt/<otherfilesystemname>
- mount /dev/<otherfilesystemname> /mnt/<otherfilesystemname>
- cd /mnt
- cpio -icvdumBA < /dev/rct0
- cd /
- umount /mnt/<otherfilesystemnames> /mnt/stand
- umount /mnt
- haltsys
-> boot the system from the hard drive in single user mode
- dparam -w
-> the dparam is not always necessary but cant hurt
-> reboot in multi-user mode
-> login in as root
- fixmog
- /tcb/bin/integrity -e
- manually fix anything that integrity wines about
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top