What does a bad fstab entry do, and how do you recover?
AdvancedConceptStorage & Memory
Answer
systemd generates a .mount unit per fstab line; if a required mount fails, local-fs.target fails and the system drops into emergency mode. Recovery: log in at the console with the root password, mount -o remount,rw /, fix /etc/fstab, systemctl daemon-reload, reboot. On cloud VMs without console access, attach the root volume to a rescue instance and fix it there. Always run sudo mount -a and findmnt --verify after editing.
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.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat is LVM? Explain PV, VG and LV.Beginner