You are not logged in.
Hi everyone. This is my first post here. First of all I'd like to say that I'm absolutely in love with Arch. It's definitely the best distro I've tried. I love how I'm learning stuff all the time.
Now to the point: I have an external usb drive which contains all my music. It's plugged into my laptop practically all the time. Currently HAL notices it nicely, but it starts unmounted. I have to go into Thunar and double click it's icon to mount it. I want it to behave this way: when arch boots and it's plugged in, it should be mounted before the Music Player Daemon starts (I've got it at last place in rc), so that MPD can update the music collection database at it's own bootup. I want that behavior for all storage devices and I want them to act properly (the external disk to be mounted to the right directory) wherever they're plugged, in whatever order they're mounted and whatever filesystem they have. How can I achieve that?
Last edited by samyazza (2010-01-12 13:08:46)
Offline
Use the 'auto' option in fstab: http://wiki.archlinux.org/index.php/Fstab
Offline
I've added a line to fstab:
LABEL=Elements /media/Elements ntfs-3g user,auto,unhide 0 0
ntfs-3g tells me that it couldn't find drive "LABEL=Elements" though. Perhaps the drive isn't noticed when the mounting occurs? If so, what can I do?
Offline
You could try including rw:
LABEL=Elements /media/Elements ntfs-3g rw,user,auto,unhide 0 0
See if that helps...
Offline
So "Elements" is definitely the device's label? After you mount it manually, open a terminal and type:
ls -l /dev/disk/by-label
Does it show up?
Anyway, I tried doing the same thing, even using the /dev/disk/by-uuid/XXXX.. and it said it couldn't find it, but when I got to the console and signed in, I typed: mount /media/drive and it mounted immediately. So, I think it hasn't had enough time to register the device yet, although I could be wrong.
Offline
Read this, figure out how to do it with blkid, scratch your itch, update the wiki and be glad you've contributed to your beloved distro.
Offline
What I do is not include my drive in fstab and I use this udev rule to automount my external drive:
http://wiki.archlinux.org/index.php/Ude … _it_exists
MPD finds my music and all works just fine.
Offline
This rule works indeed, without any changes. Despite whatever the wiki says, vol_id is present in the directory /lib/initcpio/udev and it seems to be pefectly usable. Thank you!
Last edited by samyazza (2010-01-12 13:09:08)
Offline
I used the udev rule in the wiki as well. Everything mounts but now I can't unmount without being root. Does anyone know how to change the policykit to allow unmounts?
--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org
Offline
I second the above question. I had the same problem with the drive, but I've only noticed just now that I can't graphically unmount other usb storage devices either
Offline
for the time being I put
mount -a
in my rc.local and added the entry to my fstab.
apparently hal discovers usb later than the kernel's initial mount -a command in called.
--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org
Offline