Quest 57MountMaster
+190 XP
Mounting Filesystems (mount, umount & /etc/fstab)
Interaktives Terminal für diese Quest starten→Keine Installation erforderlich • Läuft im Browser
Konzept & Übersicht
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.
Missionsanweisungen
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.Befehlssyntax-Referenz
| Command / Syntax | Description |
|---|---|
cat /etc/fstab | Inspect static filesystem mount table |
sudo mount /dev/sdb1 /mnt/data | Mount block partition to directory |
sudo umount /mnt/data | Unmount filesystem from directory |
Prüfungsziele
- ○Inspect /etc/fstab
- ○Mount /dev/sdb1 to /mnt/data
- ○Unmount /mnt/data