Use it when adding a permanent mount, and when a server stops in emergency mode at boot.
/etc/fstab
/etc/fstab lists the filesystems Linux mounts at every boot: what to mount, where, as which type and with which options — one line of six fields each.
1. After any edit: findmnt --verify — errors or warnings?
2. systemctl daemon-reload, then mount -a — does it mount?
3. findmnt <mount point> — right device, right options?
4. In emergency mode at boot: journalctl -xb shows which mount failed.
5. mount -o remount,rw /, fix or comment out the line, reboot.
line with six valid fields → device found by UUID → mount point exists → filesystem type and options accepted → mounted at boot (or skipped with nofail) → visible in findmnt
For Filesystems & Mounting → /etc/fstab, continue with the first unproven Topic check: Validate source identifier, target, filesystem type, option set, dump and fsck/pass fields. If that boundary is healthy, advance to the adjacent check: Resolve UUID/PARTUUID/LABEL links to current device identity before reboot. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
- "The filesystem is mounted, so the fstab line is right." Mounting by hand does not test the line;
mount -aandfindmnt --verifydo. - "
/dev/sdb1will always be that disk." Names can change between boots; useUUID=. - "A missing data disk only loses that mount." Without
nofail, the whole boot stops. - "I edited fstab and it took effect." systemd needs
systemctl daemon-reload, and nothing is mounted untilmount -aor a reboot. - "The UUID stays the same after reformatting."
mkfscreates a new one. - "
defaultsplus my option overrides the defaults." Options are combined; a later one wins only where they conflict. - "NFS mounts fail at boot because of the server." Often the network is not up yet; add
_netdev.
Operational reference
Fast context before you go deeper.
findmnt --verifyVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
fstab line → source identifier resolution → target path → filesystem type/options → mount unit/request → effective mount namespace → workload
Healthy evidence: all entries resolve to intended devices, targets exist, options are supported, mount-all validation succeeds and runtime mounts match persistent intent.
Step 2 Operational verification Verify boundary
Filesystem mounting, persistent mount configuration, options and boot-time mount failures.
Fast verification
- Use
findmntto verify the effective source, target and options.
- Validate /etc/fstab syntax and identifiers, then test with mount -a in a controlled window.
- For boot failures, inspect generated systemd mount units and dependency timeouts.
Step 3 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Validate source identifier, target, filesystem type, option set, dump and fsck/pass fields.
- Resolve UUID/PARTUUID/LABEL links to current device identity before reboot.
- Compare fstab intent against current source/target/options and generated systemd units.
- Test the specific mount path and dependent workload after validation.
Verification chain. fstab line → source identifier resolution → target path → filesystem type/options → mount unit/request → effective mount namespace → workload
Step 4 Specialized verification Verify boundary
Resolve the fstab source to the intended block device or remote resource, verify the target directory and inspect the generated/effective mount unit when systemd is involved. Compare runtime mount source, filesystem type and options with persistent intent. For a new entry, exercise a scoped mount/unmount or controlled boot test and then perform a real read/write operation as appropriate. A parser success shows syntax, while a mounted line shows VFS state; neither alone shows the backing service is healthy.
Step 5 Commands Verify boundary
cat /etc/fstab
findmnt --verify
mount -a
systemctl daemon-reload
Step 6 Failure modes and next checks Narrow the fault
Suspicious evidence: stale UUIDs, unsupported options, wrong fs type, duplicate targets or divergence between current manual mounts and fstab can cause boot or service failures.
fstab evidence shows declared persistent mount intent, not current mount state, source health or application readiness.
Step 7 Special cases and limits Narrow the fault
A correct fstab line can still fail because device discovery, filesystem integrity, credentials, DNS/network or remote service is unavailable. A currently mounted filesystem may have been mounted manually with options that differ from fstab. UUID reuse/cloning can make an apparently stable identifier ambiguous. nofail changes boot policy, not workload health. Keep persistent declaration, generated manager state, VFS mount state and backing storage/service health separate.
Step 8 Common mistakes Narrow the fault
- Typos in fstab preventing boot (use
findmnt --verify, addnofail).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A line that cannot be mounted halts the boot unless it has nofail. Identify devices by UUID=, not /dev/sdb1. Network filesystems need _netdev. Test every change before rebooting: findmnt --verify, then mount -a.
findmnt --verify— checks the file for errors.mount -a— mounts everything listed that is not mounted; shows failures now.findmnt <mount point>— what is mounted there, with which options.blkidorlsblk -f— UUIDs and filesystem types.systemctl daemon-reload— make systemd read the edited file.
ReferenceWhat it is2 sections · depth on demand
Core model
Parse each field and resolve the source identifier before reboot or mount-all operations. Validate target directories, filesystem types/options and systemd-derived behavior where applicable. Compare fstab intent with the current mount namespace because manual mounts can differ from persistent configuration.
Mental model
/etc/fstab is the file that tells Linux which filesystems to mount, where, and with which options, every time the system boots. Each line describes one filesystem or swap area in six fields.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use this Topic when the problem is in Mounts & fstab. Use Storage & Filesystems when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.
Why it matters operationally
A mistake in this file is one of the few things that can stop a server from booting: a filesystem that cannot be mounted halts the boot in emergency mode. Knowing the fields, the options that make a mount non-fatal, and how to test a change before rebooting avoids that.
ReferenceHow it works1 section · depth on demand
How it works
The six fields.
UUID=3f1c-… /data xfs defaults,nofail 0 2
| Field | Meaning |
|---|---|
| 1. Device | What to mount: UUID=…, LABEL=…, /dev/mapper/vg-lv, or server:/export for NFS |
| 2. Mount point | The directory it appears at |
| 3. Type | xfs, ext4, nfs, swap, … |
| 4. Options | Comma-separated; defaults for the usual set |
| 5. Dump | Obsolete; 0 |
| 6. Check order | 1 for the root filesystem, 2 for others, 0 for no check |
Identify by UUID or label, not by /dev/sdb1: device names can change between boots when disks are added or detected in a different order. blkid and lsblk -f show the UUIDs. LVM paths under /dev/mapper are stable.
Options that matter.
| Option | Effect |
|---|---|
nofail | Boot continues if the device is absent |
noauto | Not mounted at boot; only on request |
_netdev | Wait for the network before mounting (NFS, iSCSI) |
x-systemd.device-timeout=10s | How long to wait for the device |
ro, noexec, nosuid, nodev | Restrictions |
At boot, systemd reads the file and generates a mount unit for each line. A filesystem that fails to mount, without nofail, sends the system to emergency mode. After editing the file on a running system, systemctl daemon-reload makes systemd pick up the change.
Test before rebooting.
findmnt --verify
mount -a
findmnt /data
findmnt --verify checks the file for errors; mount -a mounts everything in it that is not yet mounted, and shows any failure now and not at the next boot.
Recovery. In emergency mode, log in at the console, remount the root filesystem read-write if needed (mount -o remount,rw /), fix or comment out the line, and reboot.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
fstab evidence shows declared persistent mount intent, not current mount state, source health or application readiness.
In depth
/etc/fstab: file systems mounted at boot
/etc/fstab lists the file systems to mount at boot, and the defaults for manual mounts. The fstab(5) manual page defines six fields per line:
1. The source: preferably UUID=, LABEL=, PARTUUID= or PARTLABEL=, because device names can change.
2. The mount point: none for swap.
3. The file system type: for example ext4, xfs, nfs or swap.
4. Options: a comma-separated list. defaults, noauto, nofail and x- options for other programs.
5. Dump frequency: normally 0.
6. The fsck order: 1 for root, 2 for others, 0 to skip.
Lines are processed in order, and spaces in paths are written as \040.
Example entries
| Line | Meaning |
|---|---|
UUID=3f1c... / xfs defaults 0 0 | Root (XFS doesn't use boot-time fsck, so 0) |
UUID=a7d2... /boot ext4 defaults 0 2 | ext4, checked after root |
UUID=9e2b... /srv/data xfs defaults,nofail 0 0 | Boot continues if the disk is missing |
/dev/vg0/swap none swap defaults 0 0 | Swap |
nas:/export/home /home nfs4 defaults,_netdev 0 0 | Network file system, mounted after the network |
tmpfs /tmp tmpfs size=4G,mode=1777,nosuid,nodev 0 0 | tmpfs |
nofail and boot safety
Without nofail, a missing or failing non-root file system makes systemd stop in emergency mode. For data disks, USB drives and network shares, nofail lets the system boot and report the failure, instead of becoming unreachable.
Applying changes safely
| Step | Command |
|---|---|
| Check syntax and devices | findmnt --verify |
| Let systemd regenerate its mount units | systemctl daemon-reload |
| Mount everything new | mount -a |
| Check the result | findmnt /srv/data |
host$ sudo blkid -s UUID -o value /dev/sdc1
9e2b6a41-...
host$ echo 'UUID=9e2b6a41-... /srv/data xfs defaults,nofail 0 0' | sudo tee -a /etc/fstab
host$ sudo findmnt --verify --verbose | tail -3
host$ sudo systemctl daemon-reload && sudo mount -a
host$ findmnt -s /srv/data
TARGET SOURCE FSTYPE OPTIONS
/srv/data UUID=9e2b6a41-… xfs defaults,nofail
host$ systemctl status srv-data.mount --no-pager | head -3
Test before rebooting
Always run mount -a, or at least findmnt --verify, after editing fstab. A typo found then costs nothing. Found at the next reboot, it means emergency mode, possibly on a remote server without console access.
Documented example, not captured output.
How it works at runtime
/etc/fstab is part of Filesystems & Mounting → /etc/fstab. /etc/fstab declares persistent filesystem and swap mount intent using source identifiers, targets, filesystem types, options and fsck/pass ordering, but the file itself is configuration intent rather than effective runtime mount state.
Topic-specific state model. /etc/fstab declares persistent filesystem and swap mount intent using source identifiers, targets, filesystem types, options and fsck/pass ordering, but the file itself is configuration intent rather than effective runtime mount state.
Interpretation rule. - fstab entry valid syntax ≠ source exists or mount will succeed.
- fstab configured ≠ mount currently active.
- Current mount active ≠ it matches persistent fstab options.
- UUID resolves ≠ it is the intended current storage copy.
Specialized mechanics
/etc/fstab declares persistent mount and swap intent using a source, target, filesystem type, option field and dump/fsck metadata. On systemd systems entries are commonly translated into generated mount/swap units, so the boot-time consumer may be systemd rather than a direct sequential mount script. Device identity should normally use stable UUID/LABEL or another durable identifier instead of volatile /dev ordering. The file describes intent; the actual mount table remains runtime kernel/VFS state.
Limits and how it fails
Primary failure point. fstab evidence shows declared persistent mount intent, not current mount state, source health or application readiness.
RAID rebuild completion does not show application data correctness. /etc/fstab syntax validation does not show the device will appear at next boot.
ReferenceConfiguration & state2 sections · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. /etc/fstab owns persistent mount/swap declarations. systemd owns generated unit execution; UUID and Filesystems own source and filesystem semantics.
Specialized lifecycle
Edit fstab with exact field and escaping semantics, and choose options that match availability requirements. _netdev, automount and nofail-related behavior affects ordering/failure policy but does not repair a bad network path. For local filesystems consider fsck pass values and device discovery timing. Validate changes before reboot by parsing or mounting the targeted entry in a controlled way; do not use a blind mount -a on production when unrelated entries could be disruptive without reviewing scope.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystems & Mounting → /etc/fstab. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%Authoritative Linux project/vendor documentation reviewed for bounded reference claims: persistent mount declarations, field semantics and generator/mount consumption. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.
Basis: https://man7.org/linux/man-pages/man5/fstab.5.html · confidence 93%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
/etc/fstab operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for /etc/fstab.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | /etc/fstab declares persistent filesystem and swap mount intent using source identifiers, targets, filesystem types, options and fsck/pass ordering, but the file itself is configuration intent rather than effective runtime mount state. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | fstab line → source identifier resolution → target path → filesystem type/options → mount unit/request → effective mount namespace → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | fstab evidence proves declared persistent mount intent, not current mount state, source health or application readiness. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: fstab line → source identifier resolution → target path → filesystem type/options → mount unit/request → effective mount namespace → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. fstab evidence proves declared persistent mount intent, not current mount state, source health or application readiness. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
/etc/fstab · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | /etc/fstab |
|---|---|
| Topic path | Filesystems & Mounting → /etc/fstab |
| Runtime state | /etc/fstab declares persistent filesystem and swap mount intent using source identifiers, targets, filesystem types, options and fsck/pass ordering, but the file itself is configuration intent rather than effective runtime mount state. |
| Fast checks | - Validate source identifier, target, filesystem type, option set, dump and fsck/pass fields. - Resolve UUID/PARTUUID/LABEL links to current device identity before reboot. - Compare fstab intent against current source/target/options and generated systemd units. - Test the specific mount path and dependent workload after validation. |
| Verification chain | fstab line → source identifier resolution → target path → filesystem type/options → mount unit/request → effective mount namespace → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | fstab evidence proves declared persistent mount intent, not current mount state, source health or application readiness. Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
/etc/fstab · specialized operational reference
Topic-specific Linux mechanics, lifecycle, proof path and failure-boundary lookup.
| Operational boundary | Topic-specific reference |
|---|---|
| Fields | source · target · type · options · dump · fsck pass |
| Stable identity | Prefer UUID/LABEL or explicit remote identity |
| Runtime proof | Findmnt/mount state must match intent |
| Boot boundary | systemd generation/order and backing availability |