You are not logged in.

#1 2009-09-29 14:48:23

snafle
Member
Registered: 2008-04-08
Posts: 41

Mount USB NTFS drive at boot

I'm trying to get my NTFS formatted USB disk to mount at boot. I'm using FSTAB, but it fails with an error when it tries to mount- only problem is, arch boots so quickly I can't see it. It works fine mounting manually afterwards (using mount -a or explicitly telling it to). It also works fine within XFCE4, using thunar/volman.

I suspect the probem is that the drive hasn't been properly initalised when it's being booted.

The best solution, would be to have some kind of process that doesn't just mount drives when they're plugged in, like happens now, but that also just mounts all drives it finds that aren't already mounted. Is there anything that does this?

The second best solution would be to make arch run a mount command at the very end of boot- possibly and addendum to on of the rc files? I don't really want to do this, since it just seems a bit messy.

Cheers for any help!

Offline

#2 2009-09-29 14:55:21

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Mount USB NTFS drive at boot

Oh yes, my fstab entry is

UUID=5AC0304EC030331D /mnt/Terra ntfs-3g defaults 0 0

and it all works fine with those setting when just using mount.

Offline

#3 2009-09-29 15:11:03

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Mount USB NTFS drive at boot

Looks like ntfs module doesn't load immediately on the boot, just a little bit later so system cannot mount ntfs drive in the boot time. I see simple solution. Just add mount string into /etc/rc.local. rc.local starts at the end of boot process so usb device initialized and ntsf module loaded:

mount /mnt/Terra

or
mount -o remount /mnt/Terra

Last edited by knedlyk (2009-09-29 20:15:37)

Offline

#4 2009-09-29 16:23:50

snafle
Member
Registered: 2008-04-08
Posts: 41

Re: Mount USB NTFS drive at boot

Cheers, I'll use that untill I see a method of making it mount everything. Thanks alot smile

Offline

#5 2009-09-29 20:14:33

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Mount USB NTFS drive at boot

If it's due to a module, why don't you put it in MODULES in rc.conf?

Offline

#6 2009-09-29 21:22:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Mount USB NTFS drive at boot

Surgat_ wrote:

If it's due to a module, why don't you put it in MODULES in rc.conf?

It shouldn't be a module.  I use ntfs-3g to read/write to a SATA disk and I don't have anything in my modules array for it.  I wonder if it's a problem with the USB support not being live when the /etc/fstab gets called?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2009-09-30 08:30:27

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Mount USB NTFS drive at boot

graysky wrote:

I wonder if it's a problem with the USB support not being live when the /etc/fstab gets called?

It also can be a reason.

Offline

Board footer

Powered by FluxBB