Question | Answer |
The process of making a device accessible to users through the directory tree | mounting |
The directory to which the device or partition is attached | mount point |
Directories that contain mount points specifically for external storage devices | /mnt
/media |
Command to mount a volume or device | mount device_name |
mount Options: Mount all file systems listed in /etc/fstab | mount -a |
mount Options: Mount as read only | mount -r
mount -ro |
mount Options: Mount volume as read/write | mount -w
mount -rw |
mount Options: Specifies volume type | mount -t |
mount Options: Mounts an ISO file | mount -o loop |
Identifies volumes to mount points each time system boots – when system loads automatically mounts volumes identified in file | /etc/fstab |
The 6 fields in the /etc/fstab file that control how device is mounted | Device, mount point,
filesystem type,
options, dump, fsck |
Options Field in fstab: Reads all I/O files synchronously | sync (async = disables) |
Options Field in fstab: Updates file’s inode timestamp | atime (noatme = disables) |
Options Field in fstab: Allows volume to be mounted automatically | auto |
Options Field in fstab: Prevents volume from being mounted automatically (for removable media) | noauto |
Options Field in fstab: Allows programs and script files to run from the volume | exec (noexec = disables) |
Options Field in fstab: Allows block files to be read from the volume | dev (no dev = disables) |
Options Field in fstab: Mounts in read only | ro |
Options Field in fstab: Mounts volume in read/write | rw |
Options Field in fstab: Allows SUID bit to be set on files in volume | suid |
Options Field in fstab: Only root user can mount volume | nouser |
Options Field in fstab: Allows any user to mount the volume | users |
DEFAULTS in the OPTIONS filed of the fstab file: | rw, suid, dev, exec, auto, nouser, and async |
DUMP field in the fstab file: | Used by the dump command when backing up the file system |
When to run fsck (file system check) during boot up - as specified in the fsck field of the /et/fstab file | 0 = never 1 = only if mount cleanly (always set for root partition) 2 =always |
Tracks the currently-mounted volumes on system | /etc/mtab |
File contains entries for each mounted volume on system | /proc/mounts |
Command to view currently-mounted volumes on system – displays contents of /etc/mtab | mount |
View which file system are mounted to specific mount points | df |
Unmount a volume or device | umount
e.g. umount /dev/hdc1
umount /mnt/cdrom |