You are not logged in.

#1 2009-03-20 23:16:43

Greeny
Member
Registered: 2009-03-20
Posts: 2

External HDD not initialised in time for fstab

I think it's probably been encountered before but I'm looking for a foolproof solution, which googling has thus far not found.

I have a 1TB External Harddrive which i use to store all my media on.

I use MPD, which starts automatically on boot, therefore if my HDD is not mounted it cannot find the songs and well, it's a hassle mounting the HDD from terminal and fixing my musicdb.


I'm basically looking for a way of mounting the drive later than fstab, but hopefully before the MDB server starts up.

I use just Openbox as my WM, with no DE - so I wondered whether I could somehow mount it from ~/.config/openbox/autostart.sh   - Although this will be run by my normal user and not root? So maybe it wouldn't work.

Any thoughts appreciated wink

Offline

#2 2009-03-20 23:22:23

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: External HDD not initialised in time for fstab

I normally don't start up my mpd in rc.conf at all.

I just have a shortcut in openbox which simply starts mpd and then sonata together

mpd && sonata

That way a single keybinding canget your music player started.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2009-03-21 00:16:24

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: External HDD not initialised in time for fstab

I had a similar problem on a computer that did everything slowly and wouldn't boot the external drive via fstab.
I solved it by essentially re-fstab'ing from the /etc/rc.local file after the real ftstab ran.

/etc/rc.local

/bin/mount -a

Bob

Last edited by Hrod beraht (2009-03-21 00:18:44)

Offline

#4 2009-03-21 02:20:21

ruscook
Member
From: Sydney Australia
Registered: 2007-08-27
Posts: 105
Website

Re: External HDD not initialised in time for fstab

I have the same problem and get around it with the following in /etc/rc.local

# Backup plan to mount external home.
mount -t xfs /dev/disk/by-uuid/85e95c7b-5c4e-40d0-b53f-480401b3766a      /home

This gets home available before I need it, but not part of the normal mounting of /etc/fstab base file systems....

It would be nice to have a good fix for USB drives.

Russ

Offline

#5 2009-03-21 12:47:00

Greeny
Member
Registered: 2009-03-20
Posts: 2

Re: External HDD not initialised in time for fstab

Hrod beraht wrote:

I had a similar problem on a computer that did everything slowly and wouldn't boot the external drive via fstab.
I solved it by essentially re-fstab'ing from the /etc/rc.local file after the real ftstab ran.

/etc/rc.local

/bin/mount -a

Bob

Seems to have worked, cheers.

Offline

Board footer

Powered by FluxBB