linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Howto automatically mount multiple usb-storage devices?
@ 2001-11-23 11:37 erik.niessen
  2001-11-23 12:26 ` Oliver Neukum
  2001-11-24  3:26 ` Akkana
  0 siblings, 2 replies; 3+ messages in thread
From: erik.niessen @ 2001-11-23 11:37 UTC (permalink / raw)
  To: linux-hotplug


Hello,

My problem is very simple I have a few usb-storage devices and I would like to
connect them randomly. After connecting the device it must be mounted, but I
don't know the name of the device on forehand?

I had a look at hotplug, devreg and scsimon, but it seems that it is not
possible with these tools?

Anybody an idea how to do this?

Thanks for your time.

     Erik


_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: Howto automatically mount multiple usb-storage devices?
  2001-11-23 11:37 Howto automatically mount multiple usb-storage devices? erik.niessen
@ 2001-11-23 12:26 ` Oliver Neukum
  2001-11-24  3:26 ` Akkana
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2001-11-23 12:26 UTC (permalink / raw)
  To: linux-hotplug

Am Freitag 23 November 2001 12:37 schrieb erik.niessen@philips.com:
> Hello,
>
> My problem is very simple I have a few usb-storage devices and I would like
> to connect them randomly. After connecting the device it must be mounted,
> but I don't know the name of the device on forehand?
>
> I had a look at hotplug, devreg and scsimon, but it seems that it is not
> possible with these tools?
>
> Anybody an idea how to do this?

There is an experimental kernel patch called scsimon which generates hotplug 
events upon detection of scsi devices. You still have to deal with partitions 
though.

	HTH
		Oliver

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: Howto automatically mount multiple usb-storage devices?
  2001-11-23 11:37 Howto automatically mount multiple usb-storage devices? erik.niessen
  2001-11-23 12:26 ` Oliver Neukum
@ 2001-11-24  3:26 ` Akkana
  1 sibling, 0 replies; 3+ messages in thread
From: Akkana @ 2001-11-24  3:26 UTC (permalink / raw)
  To: linux-hotplug

erik.niessen@philips.com writes:
> My problem is very simple I have a few usb-storage devices and I would like to
> connect them randomly. After connecting the device it must be mounted, but I
> don't know the name of the device on forehand?

I've gotten the impression that support for this sort of thing was
coming, but isn't there yet.  So for my simple needs (read files from
one of two USB devices that might be connected at any given time),
I wrote a little perl script to look in /proc/scsi/usb-storage*
and figure out which device was mounted on which id.  It's nothing
special and currently only understands the two devices I have and
the directories where I mount them, but you could easily modify it
to do whatever you needed if you only have a few devices.
You're welcome to it: http://www.shallowsky.com/software/mountpix.pl

The downside is that I can't use fstab entries (because one of the
devices is read-only while the other isn't), so I have to mount the
device explicitly and therefore the script has to run as root.
I run it with sudo and added it under my name in /etc/sudoers.
Hotplugging to known locations, so we could hook up to fstab,
would be a lot better.

	...Akkana

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2001-11-24  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-23 11:37 Howto automatically mount multiple usb-storage devices? erik.niessen
2001-11-23 12:26 ` Oliver Neukum
2001-11-24  3:26 ` Akkana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).