![]() | ||||||||||
Messages in this thread |
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 | ||||||||||