All of lore.kernel.org
 help / color / mirror / Atom feed
* Automount USB Drive using Volume Name as Mount Point
@ 2007-01-22 22:46 Sandra Bonus
  2007-01-23  1:21 ` Ian Kent
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sandra Bonus @ 2007-01-22 22:46 UTC (permalink / raw)
  To: autofs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount USB Drive using Volume Name as Mount Point
  2007-01-22 22:46 Automount USB Drive using Volume Name as Mount Point Sandra Bonus
@ 2007-01-23  1:21 ` Ian Kent
  2007-01-24 11:21 ` Francesco P. Lovergine
  2007-01-24 19:31 ` Jim Carter
  2 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2007-01-23  1:21 UTC (permalink / raw)
  To: Sandra Bonus; +Cc: autofs

On Mon, 2007-01-22 at 14:46 -0800, Sandra Bonus wrote:
> 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. 

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount USB Drive using Volume Name as Mount Point
  2007-01-22 22:46 Automount USB Drive using Volume Name as Mount Point Sandra Bonus
  2007-01-23  1:21 ` Ian Kent
@ 2007-01-24 11:21 ` Francesco P. Lovergine
  2007-01-24 19:31 ` Jim Carter
  2 siblings, 0 replies; 4+ messages in thread
From: Francesco P. Lovergine @ 2007-01-24 11:21 UTC (permalink / raw)
  To: autofs

On Mon, Jan 22, 2007 at 02:46:17PM -0800, Sandra Bonus wrote:
> 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. 
> 

This is an udev ruling task, you should differentiate by serial id, tags or what ever

-- 
Francesco P. Lovergine

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount USB Drive using Volume Name as Mount Point
  2007-01-22 22:46 Automount USB Drive using Volume Name as Mount Point Sandra Bonus
  2007-01-23  1:21 ` Ian Kent
  2007-01-24 11:21 ` Francesco P. Lovergine
@ 2007-01-24 19:31 ` Jim Carter
  2 siblings, 0 replies; 4+ messages in thread
From: Jim Carter @ 2007-01-24 19:31 UTC (permalink / raw)
  To: Sandra Bonus; +Cc: autofs

On Mon, 22 Jan 2007, Sandra Bonus wrote:

> 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.

> ...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).

> 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: jimc@math.ucla.edu    http://www.math.ucla.edu/~jimc (q.v. for PGP key)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-24 19:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-22 22:46 Automount USB Drive using Volume Name as Mount Point Sandra Bonus
2007-01-23  1:21 ` Ian Kent
2007-01-24 11:21 ` Francesco P. Lovergine
2007-01-24 19:31 ` Jim Carter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.