systemd will halt your boot and dump you in emergency mode if any designated device mounts fail. While incredibly annoying, this is a safety feature. I encountered this whilst trying to boot my Raspberry Pi headlessly and wondering why I couldn’t ssh!
To solve this, ensure you specify the
nofail option for your in
/etc/fstab for each of your mounts which shouldn’t interrupt the boot process. This is useful for external hard drives, NAS devices, and other headless systems.
If you’re on a Raspberry Pi, you’ll need to do the [following]():
- mount your SD card
bootpartition (on your comp)
- Insert it back in and boot your Pi
- remount / in rw
- exit, unplug, mount boot and remove the
init=/bin/shyou added earlier from
- exit, boot, and wala! Your boot won’t get hung from drives