Skip to content

Did you know?

findmnt --verify checks /etc/fstab for mistakes before a reboot can fail.

Run sudo findmnt --verify after every fstab edit, then mount -a, before rebooting.

Explained

A typo in /etc/fstab can drop a server into emergency mode on the next boot. Before you reboot, let findmnt check the file:

sudo findmnt --verify

It parses every line and checks that the mount points exist, that the filesystem types are known and that UUID= and LABEL= devices can be found. A clean file prints Success, no errors or warnings detected. Add --verbose to see each check. To test a copy before you install it, use findmnt --verify --tab-file /tmp/fstab.new.

Follow it with sudo systemctl daemon-reload and sudo mount -a, and add nofail to data disks so a missing disk can’t block the boot.

Learn more

← All tech tips · Suggest a fix

Back to top