Interview Prep/Linux/Storage & Memory

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.

All Linux questions Roadmap: Linux

More on Storage & Memory