On Fri, 30 Sep 2005, Reg Clemens wrote:
> > On Thu, 29 Sep 2005 [EMAIL PROTECTED] wrote:
> >
>
> > >
> > > So, finally the question. Is there a field out there under
> > > /sys/bus/usb/devices/... that I can key on to say that the device just
> > > plugged
> > > in is a USBKEY?
> > >
> >
> > There is no way to tell the difference between a USB key and a USB disk.
> > To identify most USB storage devices, you can check for a bInterfaceClass
> > value of 8.
> >
> I want to thank Alan for his reply, and I thought that with this info I had
> it nailed, but no. When I look down in /sys bInterfaceClass is there, but
> when I do (ala the UDEV Instructions)
>
> ---
>
> [EMAIL PROTECTED] reg]# udevinfo -q path -n /dev/sda
> /block/sda
> [EMAIL PROTECTED] reg]# udevinfo -a -p /block/sda
>
> udevinfo starts with the device the node belongs to and then walks up the
> device chain, to print for every device found, all possibly useful attributes
> in the udev key format.
> Only attributes within one device section may be used together in one rule,
> to match the device for which the node will be created.
>
> looking at class device '/sys/block/sda':
> SYSFS{dev}="8:0"
> SYSFS{range}="16"
> SYSFS{removable}="1"
> SYSFS{size}="2015232"
> SYSFS{stat}=" 6 17 184 161 0 0
> 0 0 0 161 161"
>
> follow the class device's "device"
> looking at the device chain at
> '/sys/devices/pci0000:00/0000:00:0d.2/usb1/1-5
> /1-5:1.0/host7/target7:0:0/7:0:0:0':
> BUS="scsi"
> ID="7:0:0:0"
> SYSFS{device_blocked}="0"
> SYSFS{iocounterbits}="32"
> SYSFS{iodone_cnt}="0x4ed"
> SYSFS{ioerr_cnt}="0x2"
> SYSFS{iorequest_cnt}="0x4ed"
> SYSFS{max_sectors}="240"
> SYSFS{model}="TD CLASSIC 003B "
> SYSFS{queue_depth}="1"
> SYSFS{queue_type}="none"
> SYSFS{rev}="PMAP"
> SYSFS{scsi_level}="3"
> SYSFS{state}="running"
> SYSFS{timeout}="30"
> SYSFS{type}="0"
> SYSFS{vendor}="Memorex "
>
> ---
>
> I dont see it listed.
> And from the instructions my understanding is that if I dont see it here
> I cant use it (sigh).
>
> So the obvious question, what am I doing wrong?
The most likely error is that you are using an old version of udev with a
new kernel that it doesn't support. For example, during the last couple
of months the FC3 kernel update has not been compatible with their udev
package. Current kernels require udev >= 0.58.
Alan Stern
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users