System information

Note
If using standard redirection, the '-f' option must be passed separately.
# dump -0u -f - /dev/sda1 | ssh root@ remoteserver.example.com dd
of=/tmp/sda1.dump
6.5. Rest ore an ext 2/3/4 File Syst em
Pro ced u re 6 .2. Rest o re an ext 2/3/4 File Syst em Examp le
1. If you are restoring an operating system partition, bootup your system into Rescue Mode.
This step is not required for ordinary data partitions.
2. Rebuild sda1/sda2/sda3/sda4/sda5 by using the fd isk command.
Note
If necessary, create the partitions to contain the restored file systems. The new
partitions must be large enough to contain the restored data. It is important to get the
start and end numbers right; these are the starting and ending sector numbers of the
partitions.
3. Format the destination partitions by using the mkfs command, as shown below.
Important
DO NOT format /d ev/sd a6 in the above example because it saves backup files.
# mkfs.ext3 /dev/sda1
# mkfs.ext3 /dev/sda2
# mkfs.ext3 /dev/sda3
4. If creating new partitions, re-label all the partitions so they match the fstab file. This step is
not required if the partitions are not being recreated.
# e2label /dev/sda1 /boot1
# e2label /dev/sda2 /
# e2label /dev/sda3 /data
# mkswap -L SWAP-sda5 /dev/sda5
5. Prepare the working directories.
# mkdir /mnt/sda1
# mount -t ext3 /dev/sda1 /mnt/sda1
# mkdir /mnt/sda2
# mount -t ext3 /dev/sda2 /mnt/sda2
Writ e Barriers
37