$
Learn Linux handbook
en
XP:0
Quest 57MountMaster
+190 XP

Mounting Filesystems (mount, umount & /etc/fstab)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

In Unix systems, disk drives do not have isolated drive letters like C:\ or D:\. Instead, all filesystems attach into a unified directory tree:

- sudo mount : Attaches a formatted block partition (e.g. /dev/sdb1) into an existing directory folder (the "mountpoint", e.g. /mnt/data).
- sudo umount : Safely detaches the filesystem, committing unwritten buffers to disk before unplugging or reformatting.
- /etc/fstab: The static filesystem table file describing which partitions automatically mount at boot time, their mount options, and dump/fsck pass priorities.

Inspect static mounts with cat /etc/fstab, mount partition /dev/sdb1 to /mnt/data with sudo mount /dev/sdb1 /mnt/data, and unmount it cleanly with sudo umount /mnt/data.

Command Syntax Reference

Command / SyntaxDescription
cat /etc/fstabInspect static filesystem mount table
sudo mount /dev/sdb1 /mnt/dataMount block partition to directory
sudo umount /mnt/dataUnmount filesystem from directory

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Inspect /etc/fstab
  • ○
    Mount /dev/sdb1 to /mnt/data
  • ○
    Unmount /mnt/data

Ready to complete Quest 57?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.