You are not logged in.

#1 2018-02-03 14:36:56

gen2arch
Member
Registered: 2013-05-16
Posts: 207

SOLVED: External USB disk, if absent, makes boot process fail

Hi,

I have an external SATA hard disk attached via usb to my laptop (/dev/sda1) for backup reasons. Upon booting, it is mounted automatically through an /etc/fstab entry.

Yet: when the hard drive is NOT attached to the machine when it boots, it is of course not only not mounted, but the whole boot process fails!

How can the entire process be dependend upon an external device? that's crazy.

What can I do to just have the mount fail if no external drive is attached, so that the boot process can nevertheless finish?

Thanks

gummo

Last edited by gen2arch (2018-02-04 11:43:43)

Offline

#2 2018-02-03 14:39:54

loqs
Member
Registered: 2014-03-06
Posts: 18,960

Re: SOLVED: External USB disk, if absent, makes boot process fail

Offline

#3 2018-02-03 17:12:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: SOLVED: External USB disk, if absent, makes boot process fail

gen2arch wrote:

but the whole boot process fails!

Where does it fail?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2018-02-04 11:36:29

gen2arch
Member
Registered: 2013-05-16
Posts: 207

Re: SOLVED: External USB disk, if absent, makes boot process fail

Thanks loqs! that solved the problem!

I added "nofail,x-systemd.device-timeout=1" to the fstab line.

gummo

Last edited by gen2arch (2018-02-04 11:44:03)

Offline

#5 2018-02-04 11:43:22

gen2arch
Member
Registered: 2013-05-16
Posts: 207

Re: SOLVED: External USB disk, if absent, makes boot process fail

Slithery wrote:
gen2arch wrote:

but the whole boot process fails!

Where does it fail?

This happens in the series of mounts that are in /etc/fstab. Errors are "Timeout waiting for device dev-disk-by-***" and "Dependency failed for /mnt/". The journal has systemd messages "local-fs.target: Triggering OnFailure= dependencies", and I am dropped to "emergency mode"

thanks

gummo

Offline

Board footer

Powered by FluxBB