You are not logged in.

#1 2016-10-04 15:07:25

SlickBlackCadillac
Member
Registered: 2015-09-10
Posts: 15

[SOLVED]/boot fails to mount when USB HDD plugged in at boot

When I power on my machine with a 1 TB Seagate HDD plugged into a USB 3.0 port, Arch fails to mount /boot and goes into Emergency mode.

Here is what I found in journalctl:

Sep 28 16:49:52 ArchBox64 kernel: fuse init (API version 7.25)
Sep 28 16:49:50 ArchBox64 systemd[1]: Found device ST1000LM024_HN-M101MBB 1.
Sep 28 16:49:50 ArchBox64 systemd[1]: Mounting /boot...
Sep 28 16:49:52 ArchBox64 mount[228]: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
Sep 28 16:49:52 ArchBox64 mount[228]:        missing codepage or helper program, or other error
Sep 28 16:49:52 ArchBox64 mount[228]:        In some cases useful info is found in syslog - try
Sep 28 16:49:52 ArchBox64 mount[228]:        dmesg | tail or so.

With the USB device unplugged it boots up fine and I have to plug it back in after boot.

What causes this?

What is some way I can remedy this behavior?

Last edited by SlickBlackCadillac (2016-10-04 19:46:02)

Offline

#2 2016-10-04 15:08:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]/boot fails to mount when USB HDD plugged in at boot

Use UUIDs instead of block names: https://wiki.archlinux.org/index.php/Pe … ng#by-uuid

EDIT: use UUIDs in both your fstab and your boot loader configs.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-10-04 19:15:22

SlickBlackCadillac
Member
Registered: 2015-09-10
Posts: 15

Re: [SOLVED]/boot fails to mount when USB HDD plugged in at boot

Trilby wrote:

Use UUIDs instead of block names: https://wiki.archlinux.org/index.php/Pe … ng#by-uuid

EDIT: use UUIDs in both your fstab and your boot loader configs.

Thanks! That did the trick. So linux was designating the plugged in USB HDD as /dev/sda which threw all the lettering off.

Also I made use of this guide https://wiki.archlinux.org/index.php/Fs … al_devices

This allowed me to add the nofail option to the External drive so it can be mounted at start up if it is connectd, and for it not to send the system into emergency mode when it is not connected.

Awesome!

Last edited by SlickBlackCadillac (2016-10-04 19:50:05)

Offline

#4 2016-10-04 19:35:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]/boot fails to mount when USB HDD plugged in at boot

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB