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, we are using c0t0d0s0 as a root partition. Bring the system into single-user mode (recommended).

# init -s


2. Check the partition consistency.

# fsck -m /dev/rdsk/c0t0d0s0


3. Verify the tape device status:

# mt status


Or use this command when you want to specify the raw tape device, where x is the interface:

# mt -f /dev/rmt/x status


a) When the tape drive is attached to your local system, use this:

# ufsdump 0uf /dev/rmt/0n /


b) When you want to back up from disk to disk, for example, if you want to back up c0t0d0s0 to c0t1d0s0:

# mkdir /tmp/backup

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

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


c) When you want to back up to a remote tape, use this. On a system that has a tape drive, add the following line to its /.rhosts file:

 hostname root

where hostname is the name or IP of the system that will run ufsdump to perform the backup. Then run the following command:

# ufsdump 0uf remote_hostname:/dev/rmt/0n /


4. After restoring the partition 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