/etc/fstab
The file that lists what to mount at boot: device, mount point, type, options and two numbers per line.
In more detail
Devices are best named by UUID or LABEL, because device names can change between boots. Test every edit with mount -a or findmnt --verify before rebooting: a line that cannot mount stops the boot in emergency mode unless it has the nofail option.
Example
UUID=3f1c... /data xfs defaults 0 0Related terms
- mount point — The directory where a filesystem is attached into the single directory tree.
- UUID — A 128-bit identifier, usually written as 32 hexadecimal digits in five groups, designed to be unique without any central coordination.
- file system label — A short name stored inside a file system, which /etc/fstab can use instead of a device path.
- emergency mode — The minimal boot state systemd falls back to when a required step, such as an fstab mount, fails.
Related guides
Taught in
- The Reboot That Fails You — Red Hat Certified System Administrator (EX200) Exam Prep
- Exam Strategy: Order, Verify, And The Docs You May Use — Red Hat Certified System Administrator (EX200) Exam Prep
- Repositories You Configure By File — Red Hat Certified System Administrator (EX200) Exam Prep
- Targets, Boot And Shutdown — Red Hat Certified System Administrator (EX200) Exam Prep
- LVM: Physical Volumes, Volume Groups, Logical Volumes — Red Hat Certified System Administrator (EX200) Exam Prep
- Mount By UUID Or Label, For Good — Red Hat Certified System Administrator (EX200) Exam Prep
- Swap And New Volumes Without Losing Data — Red Hat Certified System Administrator (EX200) Exam Prep
- VFAT, ext4 And XFS: Create, Mount, Use — Red Hat Certified System Administrator (EX200) Exam Prep
- No Space For Tonight's Scans: Partitions And LVM On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Which RAID, Which File System? Disks That Fail And Inodes That Run Out — CompTIA Linux+ (XK0-006) Exam Prep
- The Upload That Ran: Mount Options, Swap And Network Shares — CompTIA Linux+ (XK0-006) Exam Prep
- You Are In Emergency Mode: Boot Failures From GRUB To fstab, On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Three PBQs Against The Clock: A Performance-Based Mock On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- File Systems And Mounts: mounted, present And UUIDs — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: Storage Only Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 2: Real Machines And The Patterns That Fail — RHCE in Ansible (EX294): Automate Red Hat Systems