Use this when a Linux file system does not mount at boot or mounts wrongly.
fstab
/etc/fstab lists file systems to mount at boot with device, mount point, type, options, dump and fsck order. Use UUID= or LABEL=, and add nofail for non-critical disks so a missing one does not block boot.
1. fstab defines persistent mounts.
2. Use UUID= or LABEL=.
3. nofail for optional disks, _netdev for network.
4. Validate with findmnt --verify before reboot.
5. Wrong entries can drop boot to emergency mode.
fstab → systemd mount units → mounted
Context & applicabilityCommon mistakes · platform/version boundaries
- Using
/dev/sdb1instead ofUUID=— boot fails when device names change. - Network shares without
_netdev(andnofail), hanging boot when the server is unreachable. - Typos that drop the system into emergency mode — test with
mount -aandfindmnt --verifybefore rebooting. - Wrong field 6 (fsck order) on XFS (use 0).
Operational reference
Fast context before you go deeper.
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.
- Use UUID= or LABEL=, not /dev/sdX.
- nofail keeps boot going if a disk is missing.
- Test with mount -a before rebooting.
cat /etc/fstab— entriesfindmnt --verify— validate fstabmount -a— test mounts
ReferenceHow it works1 section · depth on demand
Example entries
UUID=3f1e...-... /data xfs defaults,noatime 0 0
/dev/mapper/vg_data-lv_app /app ext4 defaults 0 2
//fs01/share /mnt/fs cifs credentials=/root/.smb,_netdev,nofail 0 0
10.0.0.50:/export /mnt/nfs nfs4 _netdev,nofail,hard 0 0
Documented example, not captured output. Use UUIDs or labels, nofail for non-critical mounts so boot does not stop, and _netdev for network file systems. Test before rebooting: mount -a and findmnt --verify.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
/etc/fstab lists filesystems to mount at boot: device, mount point, type, options, dump, fsck order.
UUID=3f2a… /data xfs defaults,noatime,nofail 0 0
/dev/mapper/vg_data-lv_app /app ext4 defaults 0 2
nas01:/export/home /home nfs4 _netdev,noatime,nofail 0 0
findmnt --verify # syntax and device checks
mount -a # mount everything not yet mounted
systemctl daemon-reload # systemd regenerates mount units from fstab
Always test with findmnt --verify and mount -a before rebooting; a wrong line without nofail can drop the system into emergency mode.
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 Linux Storage → fstab. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%