Home Domain Tools How To Photo Albums Unix Stuff Support
Jumpstart Server
Mounting CD in Solaris
Solaris 10 BIND 9.2.4
Solaris 10 Zones
Space from /swap
Luxadm Commands
cfgadm Commands
Changing IP Address
SCSI Unconfigure
Backing Up the OS
Restoring the OS
Solaris IPMP
CPIO Commands
Unix Howto
FIND & DELETE FILES
Windows Howto
IPMP
Enabling tftpd
Unix HowTO
 
 

1. For this example, your OS disk is totally corrupted and replaced with a new disk. Go to the ok prompt and boot in single-user mode from the Solaris CD.

ok> boot cdrom -s


2. Partition your new disk in the same way as your original disk.

3. Format all slices using the newfs command. For example:

# newfs /dev/rdsk/c0t0d0s0


4. Make a new directory in /tmp:

# mkdir /tmp/slice0


5. Mount c0t0d0s0 into /tmp/slice0:

# mount /dev/dsk/c0t0d0s0 /tmp/slice0


6. Verify the status of the tape drive:

# mt status


If the tape drive is not detected, issue the following command:

# devfsadm -c tape


or

# drvconfig

# tapes

# devlinks


Verify the status of tape drive again and make sure the backup tape is in the first block or file number is zero. Use the following command to rewind the backup tape:

# mt rewind


7. Go into the /tmp/slice0 directory and you can start restoring the OS.

# cd /tmp/slice0

# ufsrestore rvf /dev/rmt/0n


If you want to restore from another disk (such as c0t1d0s0), use the following command:

# mkdir /tmp/backup

# mount /dev/dsk/c0t1d0s0 /tmp/backup

# ufsdump 0f - /tmp/backup | (cd /tmp/slice0;ufsrestore xvf -)


8. After restoring all the partitions successfully, install bootblock to make the disk bootable. This example assumes your /usr is located inside the "/" partition:

# cd /tmp/slice0/usr/platform/'uname -m'/lib/fs/ufs

# installboot bootblk /dev/rdsk/c0t0d0s0


9. To finish restoring your OS, reboot the system.