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 -hto list the mounted drives on the system. - Display the
/etc/fstabconfiguration file. - Describe the file systems that are mounted.
- Look at the
/proc/partitionsfile to see the disk partitions. - What units are those blocks? Use
man procto 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
umountdevice. - What does the listing of the mount point look like now?
- Make a directory called
/dvdto 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
md5sumcommand 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
dumpcommand 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/completeusing the commanddump -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/homeinto/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/kennedyand restore it using the commandrestore -rf /tmp/completefrom the complete backup. - Put the commands from above into
R4.log.
Part 3 — Credit                
Show R4.log to the TA.