Interview Prep/Linux/Disk space, inodes and filesystems

`mount -a` says `mount: /backup: can't find UUID=3f1a...` after someone recreated the filesystem.

BeginnerTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → mkfs generated a new UUID; fstab still has the old one.

Diagnose →

sudo blkid
grep backup /etc/fstab

Fix → Update fstab with the new UUID, then sudo systemctl daemon-reload && sudo mount -a.

Prevent → Use labels (mkfs.xfs -L backup and LABEL=backup) when disks get recreated, and add nofail to non-critical mounts.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems