1. As root, run fdisk on your main hard drive and enter the p command to print the partition table. Examine your system’s configuration and make sure you understand everything you see. Enter the l command and review the many partition types Linux can accommodate. Enter the q command to quit without saving changes.

  2. 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.

  3. Use a pager to examine /var/log/messages and search for entries made by fsck. Did it find any problems?

  4. If you created a new partition in the previous exercises, check it with fsck and observe the output:

    $ fsck -f /dev/partition
  5. Check on the status of filesystems using df:

    $ df -h 
    1. How does the -h flag assist you with interpreting the results?

    2. Are any of your filesystems nearly full?

    3. Which are underutilized?

  6. As root, get a top-level view of disk usage by user using du:

    # du -s /home/*

    Are there any surprises?

  7. How could you use sort to make the output from the previous exercise more useful?

  8. Review /etc/fstab. Be sure you can name all six fields and their order as well as describe their function.

  9. Examine the output of the mount command without options. Compare the output with the contents of /etc/fstab.

  10. If you created a new partition in the previous exercises, mount it on /mnt/new or some other location of your choosing:

    $ mkdir /mnt/new
    $ mount /dev/partition /mnt/new
    $ df /mnt/new
    1. Did the filesystem mount correctly? Can you store ...

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.