You are not logged in.

#1 2015-05-16 22:42:12

B-80
Member
Registered: 2010-05-05
Posts: 47

[Solved] External Hard Drive mount point in fstab crashes launch

Hi there,

I have an external hard drive that I'd like to automount when I plug it in. Sometimes it seems to work, but other times I have to manually mount it. In order to make this a little easier, I copied the mounting info into my fstab file so that I could just run:

mount /dir/to/mount

However, now I can't actually boot up my machine unless the external drive is plugged in. I get some error from systemctrl saying one of the drives couldn't be loaded. 

An obvious work around would be to write a one line script that mounts the drive for me, however, I'd like to learn how to do this correctly. I think the rules have changed a bit with systemd, as I didn't have this problem a few years ago. 

Thanks for the help!

Last edited by B-80 (2015-05-17 08:14:08)

Offline

#2 2015-05-16 22:48:03

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [Solved] External Hard Drive mount point in fstab crashes launch

Add "nofail" to the options section.

EDIT: ...in /etc/fstab

Last edited by Head_on_a_Stick (2015-05-16 22:48:29)

Offline

#3 2015-05-16 22:59:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved] External Hard Drive mount point in fstab crashes launch

devmon/udiskie/similar


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2015-05-17 08:14:23

B-80
Member
Registered: 2010-05-05
Posts: 47

Re: [Solved] External Hard Drive mount point in fstab crashes launch

Head_on_a_Stick wrote:

Add "nofail" to the options section.

EDIT: ...in /etc/fstab

Thanks for the answer, that fixed it.

Offline

#5 2015-05-17 11:13:08

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [Solved] External Hard Drive mount point in fstab crashes launch

B-80 wrote:
Head_on_a_Stick wrote:

Add "nofail" to the options section.

EDIT: ...in /etc/fstab

Thanks for the answer, that fixed it.

You're welcome but I think Mr.Elendig's post gives the actual solution (my proposal is just a workaround -- using fstab for a filesystem that is not permanently attached is sub-optimal) wink

Offline

Board footer

Powered by FluxBB