♥♥♥ Kostenloses Monero-Mining: -Klick- ♥♥♥
When you mount an USB drive to your Raspberry Pi and set it up to automatically mount to the system using fstab you cannot restart the system without the HDD connected!
Here the solution what to do to prevent the following error message:
You are in emergency mode. After logging in, type “journalctl -xb” to view
system logs, “systemctl reboot” to reboot, “systemctl default” or ^D to
try again to boot into default mode.
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.
It looks like this:
How to fix this error
Just add a option to the statement:
That means: External devices (like USB HDDs) that are to be mounted when present but ignored when they are not online (due to missing plug or damaged HDD) require the nofail statement. This prevents the error being reported as shown above.
As of the default device timeout over 90 seconds, you can combine the statement with the option x-system.device-timeout=X. With this you fasten up your boot time a lot :)
So the whole statement hast to be look like:
Set the red held seconds to whatever you want…
As you can see below I added this options on all my external USB drives. It works like a charm.
How to set up a Raspberry Pi NAS using SAMBA
I wrote this solution because I learnd to set up my Raspberry Pi as a NAS at eltechs.com “Raspberry Pi NAS ultimate guide“.