Storage · Linux Storage
fstab
Cheat sheet · https://pcornel.dk/topic.php?topic=4004
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.
Remember
- Use UUID= or LABEL=, not /dev/sdX.
- nofail keeps boot going if a disk is missing.
- Test with mount -a before rebooting.
First checks
cat /etc/fstab— entriesfindmnt --verify— validate fstabmount -a— test mounts
Commands
mount -afindmnt --verify
Verify in this order
fstab → systemd mount units → mounted
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4004