Why use UUIDs and `nofail` in fstab?
IntermediateConceptStorage & Memory
Answer
Device names like /dev/sdb or /dev/nvme1n1 depend on detection order and can swap after a reboot or on a new instance type, so the wrong disk gets mounted. UUIDs are stable. nofail lets boot continue if a non-critical disk is missing; without it a detached EBS volume drops the instance into emergency mode with no SSH. For network filesystems also add _netdev.
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhat does a bad fstab entry do, and how do you recover?AdvancedWhat is LVM? Explain PV, VG and LV.Beginner