Automount USB Drive using Volume Name as Mount Point
I'm not sure if this question is an autofs question or perhaps for some other software component. I have a couple of external USB hard drives with NTFS partitions each with different volume names eg HDD1 and HDD2 If I connect these one at a time they both come up as /dev/sde and I have an autofs entry like
usb -fstype=ntfs-3g :/dev/sde1
This mounts one drive as /misc/usb
This works fine except it would be ideal if each drive actually mounted as /misc/HDD1 and /misc/HDD2 so that scripts can more easily differentiate the disks
If I log in using Gnome then this seems to have no problem mounting each drive and placing an icon on the desktop using the volume label. However, I almost never use Gnome and the machine in question is a server.
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
Ian Kent
maintainerQuoted 11 lines · Sandra Bonus
I'm not sure if this question is an autofs question or perhaps for some other software component. I have a couple of external USB hard drives with NTFS partitions each with different volume names eg HDD1 and HDD2 If I connect these one at a time they both come up as
/dev/sdeand I have an autofs entry like
usb -fstype=ntfs-3g :/dev/sde1This mounts one drive as /misc/usb
This works fine except it would be ideal if each drive actually mounted as /misc/HDD1 and /misc/HDD2 so that scripts can more easily differentiate the disks
If I log in using Gnome then this seems to have no problem mounting each drive and placing an icon on the desktop using the volume label. However, I almost never use Gnome and the machine in question is a server.
I thought all that was needed for this is hald, not Gnome but I'm not sure. Perhaps it should be that way.
This type of hotplug device is better managed by HAL.
Perhaps logging a bz against HAL and asking would be the best way to resolve this.
Ian
Quoted 5 lines · Sandra Bonus
I'm not sure if this question is an autofs question or perhaps for some other software component. I have a couple of external USB hard drives with NTFS partitions each with different volume names eg HDD1 and HDD2 If I connect these one at a time they both come up as
/dev/sdeand I have an autofs entry like
usb -fstype=ntfs-3g :/dev/sde1
Quoted 7 lines
This mounts one drive as /misc/usb
This works fine except it would be ideal if each drive actually mounted as /misc/HDD1 and /misc/HDD2 so that scripts can more easily differentiate the disks
If I log in using Gnome then this seems to have no problem mounting each drive and placing an icon on the desktop using the volume label. However, I almost never use Gnome and the machine in question is a server.
This is an udev ruling task, you should differentiate by serial id, tags or what ever
Signature · 1 line
Francesco P. Lovergine
Quoted 2 lines · Sandra Bonus
I'm not sure if this question is an autofs question or perhaps for some other software component.
On a desktop or laptop sytem this would be handled by "the new hotplug":
haldaemon, dbus and gnome-volume-manager.
Quoted 4 lines
...This mounts one drive as /misc/usb
This works fine except it would be ideal if each drive actually mounted as /misc/HDD1 and /misc/HDD2 so that scripts can more easily differentiate the disks
Autofs mounts the drive when you refer to it. I think what you really want is to mount it when hotplugged. Hal is smart enough to read the volume label, if there is one, and create a same-name mount point. The default would be /media/$THE_LABEL (e.g. /media/HDD1).
Quoted 3 lines
If I log in using Gnome then this seems to have no problem mounting each drive and placing an icon on the desktop using the volume label. However, I almost never use Gnome and the machine in question is a server.
As it happens, I also use neither Gnome nor KDE as my window manager, and I recently posted what I did to make it mount upon hotplug. Since you want a server-wide hotplug manager, rather than specific to one user (me) at the console, you'll need to be creative to start it up, e.g. make a new boot script.
http://www.math.ucla.edu/~jimc/documents/bugfix.html
James F. Carter Voice 310 825 2897 FAX 310 206 6673
UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [email protected] http://www.math.ucla.edu/~jimc (q.v. for PGP key)