[SOLVED] Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

[SOLVED] Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Post by smurphos »

Hi,

I've had Cinnamon 18 installed on a HP Laptop as the only OS for a few months now. The Laptop 99% of the time is used at home only with an wired network connection and a permanently attached external HDD which is primarily backup storage, I also have a secondary backup on a another external SSD attached to a second laptop whose primary use is a Plex Server which is mounted on the HP laptop as a Samba share

On the HP laptop I'd added both the external drive and the Samba Share to /etc/fstab to automount.

Today is the first time I've tried booting up the laptop sans external drive and normal network connection on a weekend away. Horror - the machine fails to boot to desktop and will only boot into emergency mode. Slight panic and bit of headscratching and noting the CIFS failure error messages I edited FSTAB from emergency mode (sudo nano /etc/fstab) to hash out the extra lines and hey presto on a full reboot the OS loaded.

So immediate problem resolved but my questions are 1) Is this an avoidable problem, and 2) why on earth does this type of hardware change cause a catastrophic boot failure. An average non-techie type would likely have been utterly lost as to the cause of the problem and potential solution. A boot to desktop with a notification about failed mounts would be more user friendly......

Edit to add the two FSTAB lines now #'d out

Code: Select all

# External Drive
#UUID=7f5c52d4-a3ee-44b1-bbbe-230bdb1e6d13 /mnt/backup_drive ext4 defaults 0 2
# Plex Server Network Share
#//192.168.1.3/shared_storage /mnt/plex_server_drive cifs uid=steve,credentials=/home/steve/.smbcredentials,iocharset=utf8,sec=ntlm,_netdev 0 0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Post by smurphos »

Is it the error check on the external drive mount causing the boot failure?

Should that line be

Code: Select all

# External Drive
#UUID=7f5c52d4-a3ee-44b1-bbbe-230bdb1e6d13 /mnt/backup_drive ext4 defaults 0 0
instead of

Code: Select all

# External Drive
#UUID=7f5c52d4-a3ee-44b1-bbbe-230bdb1e6d13 /mnt/backup_drive ext4 defaults 0 2
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Post by deepakdeshp »

There are othe options as given in the link.
man fstab will give the manual for fstab.
https://ubuntuforums.org/showthread.php?t=2080957

To test fstab changes you need nt reboot every time.


To mount all filesystems mentioned in /etc/fstab immediately, use the following command:

Code: Select all

# mount -a
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: [SOLVED] Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Post by smurphos »

Thanks for the pointer....

Issue cured by adding a nofail option to both the offending FSTAB entries.

Code: Select all

# External Drive
UUID=7f5c52d4-a3ee-44b1-bbbe-230bdb1e6d13 /mnt/backup_drive ext4 defaults,nofail 0 2
# Plex Server Network Share
//192.168.1.3/shared_storage /mnt/plex_server_drive cifs uid=steve,credentials=/home/steve/.smbcredentials,iocharset=utf8,sec=ntlm,_netdev,nofail 0 0
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
donblanco
Level 1
Level 1
Posts: 26
Joined: Thu Feb 28, 2019 8:02 pm
Location: Ajijic, Mexico
Contact:

Re: [SOLVED] Boot failure - emergency mode - FSTAB and missing external drive & network drive cause boot failure.

Post by donblanco »

sorry to necropost, but - this 'nofail' tip saved my bacon just now, so thanks!
Locked

Return to “Installation & Boot”