As root, run fdisk on your main hard drive and enter the
pcommand to print the partition table. Examine your system’s configuration and make sure you understand everything you see. Enter the
lcommand and review the many partition types Linux can accommodate. Enter the
qcommand to quit without saving changes.
If you have available disk space, use fdisk to create a new ext3 partition, and then format it with mkfs. Pay close attention to the output from mkfs.
Use a pager to examine /var/log/messages and search for entries made by fsck. Did it find any problems?
If you created a new partition in the previous exercises, check it with fsck and observe the output:
fsck -f /dev/
Check on the status of filesystems using df:
How does the -h flag assist you with interpreting the results?
Are any of your filesystems nearly full?
Which are underutilized?
As root, get a top-level view of disk usage by user using du:
du -s /home/*
Are there any surprises?
How could you use sort to make the output from the previous exercise more useful?
Review /etc/fstab. Be sure you can name all six fields and their order as well as describe their function.
Examine the output of the mount command without options. Compare the output with the contents of /etc/fstab.
If you created a new partition in the previous exercises, mount it on /mnt/new or some other location of your choosing:
Did the filesystem mount correctly? Can you store ...