From mboxrd@z Thu Jan 1 00:00:00 1970 From: reg@dwf.com Date: Tue, 16 Dec 2003 00:53:54 +0000 Subject: Re: udev - namedev configuration. Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > On Sun, Dec 14, 2003 at 09:51:55PM -0700, reg@dwf.com wrote: > > Ive probably missed something with the rapid evolution of udev, but > > Im having a problem with the udev-008 that I just installed. > > > > I have the configuration line: > > > > # USB Disk. > > LABEL, BUS="usb", vendor="IC25N020", NAME="usb_disk" > > > > in namedev.config. The disk in question has 4 partitions on it. > > Odds are you need to make 2 changes: > - your device really is not on the "usb" bus, it's on the scsi > bus. So you need to change the BUS="usb" to BUS="scsi". We > now actually check that value. > - you need to change the NAME rule to put the device partition > number in the name. This is done with the "%n" modifier. > > So the rule should probably be: > LABEL, BUS="scsi", vendor="IC25N020", NAME="usb_disk%n" > > Let us know if that works or not. > Thanks, the "scsi" did it (I had alredy added the %n). But tell me, I understand the hardware SCSI emulation that is going on here), but how do you determine that this is a SCSI device, when there are pointers up and over into PCI from both /sysfs/bus/usb/drivers and /sysfs/bus/scsi/drivers for the same device? -- Reg.Clemens reg@dwf.com ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ 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