Interview Prep/Linux/Storage & Memory

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.

All Linux questions Roadmap: Linux

More on Storage & Memory