Filesystem Types and Mount Points
Quick answer
Mounting makes a filesystem accessible at a directory in a mount namespace. It does not copy files into that directory. Unmounting detaches the association; it does not erase the filesystem.
Prepare the practice environment
Run python3 lab-fixtures/storage/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Only disposable regular files may be written. Optional examples require an authorized snapshot VM. Never substitute actual devices or modify mounts, system configuration or active swap. Review the lab guide.
How it works
ext4 is a widely used journaling filesystem; XFS is often chosen for large and parallel I/O workloads; Btrfs offers copy-on-write, checksums and snapshots. tmpfs stores data in virtual memory and may use swap. Choose according to workload, recovery tooling and distribution support, not a universal ranking. A mount hides pre-existing directory contents until detached. findmnt can inspect the live namespace or a candidate fstab file.
A mount point is a directory path; the filesystem is the storage made visible through it. Two different paths can refer to the same filesystem, and a directory may be on its parent filesystem rather than a separate mount. Use the target lookup in the example to find the containing mount. Before a backup or restore, verify that the intended destination is actually mounted; otherwise data may be written to the underlying directory.
Try the examples
findmnt --fstab --tab-file ./fstab.sample -rn -o TARGET,FSTYPEThis lists intended entries, not mounted filesystems.
Expected stdout:
/mnt/bm-data ext4/mnt/bm-cache tmpfsfindmnt --target . -rn -o TARGET | awk 'NF {print "mount found"}'The path is resolved in the current namespace; actual mount target varies.
Expected stdout:
mount foundRead-only VM exercise; do not mount or unmount host filesystems.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
Do not mount on a populated directory without understanding hidden contents. Do not force unmount a busy filesystem as a first step.
Practice
Compare ext4 and tmpfs in fstab.sample. Explain why findmnt --fstab is not evidence that either is active.
Related references
Study: findmnt, mount, umount. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Filesystem types and mount points — Knowledge Check
Apply storage concepts to synthetic fixtures and VM-only scenarios.
Mounting does what?
Which supports copy-on-write snapshots?
Which may use swap?
What does findmnt --fstab show?