Linux

Where Is the fstab File on Linux?

/etc/fstab filesystem table on Linux: what each field means and how to edit it safely.

Last updated

/etc/fstab maps devices to mount points at boot: device, mountpoint, filesystem, options, dump and pass fields per line. Every static mount on a Linux box passes through it.

One typo can strand a boot, so verify before rebooting. The file rewards careful editing and punishes hurried edits.

Where Linux stores this, by platform

Linux
/etc/fstab

Root-owned, world-readable. Back up before editing. Test with mount -a or findmnt --verify. Use UUIDs over /dev names for stability.

Frequently asked questions

How do I add a disk to fstab without breaking boot?

Back up fstab first, then add the line with nofail (and x-systemd.device-timeout) for non-critical mounts. A bad root entry drops to emergency shell; a bad data-disk entry with nofail still boots.

How do I check fstab for errors?

Run findmnt --verify or mount -a to test. mount -a attempts every fstab entry immediately, surfacing typos without a reboot.

Notice an outdated path? Let us know.