lkml.org 
[lkml]   [2004]   [Mar]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 15 Mar 2004 07:45:39 +0000
FromDaniel Drake <>
SubjectRe: Hotplug with Kernel 2.6
Hi,

Christoph Pleger wrote:
> When I hotplug (or unplug) a USB mass storage device, I want to find out
> which SCSI device (for example, /dev/sda or /dev/sdb) is (was) assigned
> to that USB Device. Is it possible to do that with the help of the
> variables which are passed to the hotplug scripts by the kernel?

Not a direct answer to your question, but you might want to try udev. You can 
set up rules so that your USB storage device always becomes /dev/usb_hard_disk 
or another name of your choosing (as well as the automatic /dev/sdX).

Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:01    [from the cache]
©2003-2008