Lecture #2 Storage Devices and File Systems

Agenda

Slides and Questions

  1. PowerPoint Slides
  2. In what ways are storage systems all alike? How are they different?
  3. In what way are UNIX files all alike? In what ways are they different?
  4. What is the main difference between ext2 and ext3 file systems?
  5. What is a superblock? an inode table? what determines the size of the logical data blocks?
  6. Is there a difference between a storage device that has been formated with a single file system and one that has a single partition which is formatted with a single file system?
  7. Where do file systems reside?
  8. What is a mount point?
  9. What is a mounted file system?
  10. Why would an attempt to unmount a file system fail?
  11. What is the /etc/fstab file used for?
  12. Describe the difference between the mkfs command and the fdformat command.
  13. Explain the relationship between file systems and the file directory hierarchy.

Assignment

  1. Read the following sections from Chapter 2:
    2.1, 2.2, 2.3, 2.4, 2.6
    In sections 2.3 and 2.4 pay closer attention to GRUB rather than LILO.
    It's nice to see the similarities, but we are going to use and study GRUB since it is more versatile than LILO.

Files and File Systems

  1. Overview of Storage Devices
  2. Disk Partitions
  3. File systems: Raw vs. Structured data
    1. Superblock
    2. Inode Table (List)
    3. Data blocks
    4. lost+found directory
    5. File Systems are create with: mkfs -t type Device [size]
    6. Exercise: Create a filesystem in the partition you created above (/dev/hda5).
    7. Mounting and Unmounting File Systems
      • mount [device-file] [directory]
      • umount [device-file | directory]
      • Mount information
        1. /etc/fstab
        2. /etc/mtab
  4. File Types
    1. Ordinary files
    2. Directories
    3. Symbolic (soft) links
    4. Special files: device files

Relevant Commands and Files

Commands Files
mknod      - creates special device files /dev
ln -s      - creates symbolic (soft) links  
fdformat  - formats a floppy disk  
mkfs        - makes file systems /etc/fstab
mount        - mounts filesystems /etc/mtab
umount       - unmounts filesystems  
xxd       - displays data in hexadecimal format