Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

fstab

Direct answer

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

When to use this

Use this when a Linux file system does not mount at boot or mounts wrongly.

First 30 seconds

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.

Operational verification

fstab → systemd mount units → mounted

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Using /dev/sdb1 instead of UUID= — boot fails when device names change.
  • Network shares without _netdev (and nofail), hanging boot when the server is unreachable.
  • Typos that drop the system into emergency mode — test with mount -a and findmnt --verify before rebooting.
  • Wrong field 6 (fsck order) on XFS (use 0).
Platform / version applicability
Linux Storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformLinux Storage
Scope / prerequisiteUse this when a Linux file system does not mount at boot or mounts wrongly.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • Use UUID= or LABEL=, not /dev/sdX.
  • nofail keeps boot going if a disk is missing.
  • Test with mount -a before rebooting.
Key checks
  • cat /etc/fstab — entries
  • findmnt --verify — validate fstab
  • mount -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docLinux Storage current

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%
Confirmation

Confirm action

Continue?