Technical Support Pages

 

Title
Is it possible to perform a root only restore from the command line?
Keywords
RecoverEDGE boot recovery root filesystem restore SCO OpenServer 5
Product Release(s)
02.01.0x 02.00.0x 01.02.0x 01.01.0x
Operating System(s)
SCO Openserver 5.0x
Problem Description
I need to do the root filesystem restore from the command line, is it possible using RecoverEDGE
Cause
Although this is an option on the RecoverEDGE menu, there are instances that the root only option may fail during mount.

Solution
When this occurs it is possible to recover your system from the Shell option from the Utilities menu.

These steps will pick up after fdisk & divvy have been executed.

mount /dev/hd0root /mnt mount /dev/boot /mnt/stand

This example will assume you have a /u and a /u2 filesystem on the primary or secondary drive that you do not wish to restore.

cd /mnt
/bin/edge -xvbkfEE a b /dev/tape ./u ./u2

NOTE:

a would refer to the block factor of your tape. b would refer to the volume size of your data cartridge. /dev/tape would refer to the device name of your tape drive.

This will restore the root filesystems and exclude the /u & /u2 filesystems. When the restore is complete, change directory and umount your mounted filesystems

umount /mnt/stand
umount /mnt

Finally, to be safe and possibly save time later, force a boot track & master boot record. This too will need to be done from the shell. Type the following

dparam -w
dd if=/etc/hdboot0 of=/dev/hd0a
dd if=/etc/hdboot1 of=/dev/hd0a bs=1k seek=1

Get a printer-friendly version of this document

 

 

Last Updated - 2018/05/16

 

Top
MENU