$
学ぶ Linux ハンドブック
ja
XP:0
クエスト 57MountMaster
+190 XP

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

このクエストの対話型ターミナルを起動する→インストール不要 • ブラウザ上で完全動作

概念と概要

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 / 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

検証目標

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

クエスト完了への準備はできましたか? 57?