CT320 Storage & Backup Lab
Storage and Backup Lab
The purpose of this assignment is to familiarize you with some of the
disk and storage commands, and to teach you how to do backups using the
dump
and restore
commands.
                
The entire lab will be done as the super user.
Use sudo -s
to become super user.
                
Part 1 — Storage Lab
For each item, copy the successful execution of the command and its
output to the R4.log
file, which you will show to receive credit for
this lab. Add answers to questions or comments as requested in a short
paragraph.
                
- Use
df -h
to list the mounted drives on the system.
- Display the
/etc/fstab
configuration file.
- Describe the file systems that are mounted.
- Look at the
/proc/partitions
file to see the disk partitions.
- What units are those blocks? Use
man proc
to find out.
- What is the device file and capacity for the hard disk drive?
- Put a Xubuntu install DVD into the optical drive.
- Xubuntu should automount the DVD, where is the mount point?
- What is the device file for the DVD drive?
- Browse the DVD using a file manager.
- Browse the DVD using a terminal.
- Unmount the DVD using
umount
device.
- What does the listing of the mount point look like now?
- Make a directory called
/dvd
to mount the DVD.
- Remount the DVD using
mount -t iso9660 /dev/sr0 /dvd
- Explain the options from the previous item.
- Browse the DVD on the new mount point.
- How many lines are in
/dvd/md5sum.txt
?
- Use the
md5sum
command to verify the DVD data integrity.
- Unmount the DVD.
Part 2 — Backup Lab
Use the dump and restore commands to backup the entire set of home
directories on your system, as follows:
                
- Run the
dump
command with no arguments, to verify that it’s installed.
If the command isn’t installed, then install it.
- Add a new user called
kennedy
, and create several files and
directories in the associated home directory.
- Do a full backup of all home directories into
/tmp/complete
using
the command dump -0uf /tmp/complete /home
, and list the size of the
resulting backup.
- Add a new file to the home directory of
kennedy
, then do an
incremental backup of /home
into /tmp/incremental
, and list
the size of the resulting backup.
- What options were different between the complete and incremental backups?
- Delete the entire contents of
/home/kennedy
and restore it using
the command restore -rf /tmp/complete
from the complete backup.
- Put the commands from above into
R4.log
.
Part 3 — Credit
Show R4.log
to the TA.