You are not logged in.

#1 2007-03-20 20:39:52

el_ave
Member
From: Silicon Valley
Registered: 2007-03-18
Posts: 20

Usb drive automount with drive's Name

I've read http://wiki.archlinux.org/index.php/Udev#Udev_Tricks so now usb drives are automounted as /mnt/usbhd-sda1 (or something similar). But I want them to mount as /mnt/usb-drive-name
where usb-drive-name is auto-detected (not preentered by hand).
Unfortunetly I didn't find drive name in information provided by udevinfo.
Is it possible to do that?

Also I'm using KDE and want to set it up so that automounted drive would appear in system:/media. As far as I understand in order for that to happen I need a record in fstab but I have no idea what that should be.

Thanks in advance.

Last edited by el_ave (2007-03-20 21:14:51)

Offline

#2 2007-03-20 22:29:34

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Usb drive automount with drive's Name

You have clearly not done very much research on this subject. Did you know that with hal and dbus daemons, kde will automount for you? And for that to happen, there should _not_ be an entry about that device in fstab, unless it is clearly specified as "noauto". You need also be a member of the correct groups to do this.
After that, it's a easy as clicking the device in media:/ and renaming it...
Please, read up on the wiki.
esp. the "beginners guide" by chaosgeistern.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#3 2007-03-21 06:21:18

el_ave
Member
From: Silicon Valley
Registered: 2007-03-18
Posts: 20

Re: Usb drive automount with drive's Name

Spent a lot of time reading but it looks like I missed the simplest answer.
Thank you very much!

Offline

Board footer

Powered by FluxBB