linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usb stick is not found under /udev
@ 2004-02-07 12:51 Juergen Rose
  2004-02-07 13:21 ` Kay Sievers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Juergen Rose @ 2004-02-07 12:51 UTC (permalink / raw)
  To: linux-hotplug

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 3647 bytes --]

Hi,

if I insert my usb memory stick, it found by lsusb

...
Bus 002 Device 005: ID 0781:7101 SanDisk Corp. 
...,

by cat /proc/bus/usb/devices,

...
T:  Bus\x02 Lev\x02 Prnt\x04 Port\x02 Cnt\x01 Dev#=  5 Spd\x12  MxCh= 0
D:  Ver= 2.00 Cls\0(>ifc ) Sub\0 Prot\0 MxPSd #Cfgs=  1
P:  Vendor\a81 ProdIDq01 Rev= 1.02
S:  Manufacturer=SanDisk Corporation 
S:  Product=Cruzer Mini 
S:  SerialNumber\0420931
C:* #Ifs= 1 Cfg#= 1 Atr€ MxPwr\x100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls\b(stor.) Sub\x06 ProtP
Driver=usb-storage
E:  Ad(I) Atr\x02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad\x02(O) Atr\x02(Bulk) MxPS=  64 Ivl=0ms

It is found in the /sys filesystem:

moen:/usr/src/Prog_Devel(46)#cat
/sys/bus/usb/devices/usb2/2-2/2-2.3/product 
Cruzer Mini 

ll /sys/bus/scsi/devices/
lrwxrwxrwx    1 root     root           79 Feb  5 10:19 1:0:0:0 ->
../../../devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.3/2-2.3:1.0/host1/1:0:0:0/
moen:/usr/src/Prog_Devel(31)#cat /sys/bus/scsi/devices/1\:0\:0\:0/vendor
Generic 
moen:/usr/src/Prog_Devel(32)#cat /sys/bus/scsi/devices/1\:0\:0\:0/model 
STORAGE DEVICE  

in /var/log/hotplug/events I can read:

HOTPLUG_TIME='Thu Feb  5 15:34:17 CET 2004'
HOTPLUG_ARGSDEVPATH=/class/scsi_host/host0
HOTPLUG_TYPE=scsi_host
ACTION­d
DEBUG=yes
SEQNUM 4

HOTPLUG_TIME='Thu Feb  5 15:34:17 CET 2004'
HOTPLUG_ARGSDEVPATH=/block/sda
HOTPLUG_TYPE=block
ACTION­d
DEBUG=yes
SEQNUM 6

HOTPLUG_TIME='Thu Feb  5 15:34:17 CET 2004'
HOTPLUG_ARGSDEVPATH=/block/sda/sda1
HOTPLUG_TYPE=block
ACTION­d
DEBUG=yes
SEQNUM 7

HOTPLUG_TIME='Thu Feb  5 15:34:18 CET 2004'
HOTPLUG_ARGSDEVPATH=/class/scsi_device/0:0:0:0
HOTPLUG_TYPE=scsi_device
ACTION­d
DEBUG=yes
SEQNUM 8

But I can't find neither a /udev/sd* nor /udev/stick* entry in /udev.
I tried it with 

BUS="usb", SYSFS_vendor="Generic", NAME="stick%n"

and 

BUS="scsi", SYSFS_vendor="Generic", NAME="stick%n"

in /etc/udev/udev.rules. I am using linux-2.6.2 and udev-016. Who can
help me? What rule I have to use in /etc/udev/udev.rules? I got the
hint, do decide it, through the occurrence of the stick under
"/sys/class/bus/usb/" or "/sys/class/bus/scsi/". But I don't have a
directory /sys/class/bus/. Under /sys/class I have only:

moen:/var/log/hotplug(33)#ll /sys/class/    
total 0
drwxr-xr-x    3 root     root            0 Feb  5 15:21 i2c-adapter/
drwxr-xr-x    4 root     root            0 Feb  5 15:21 input/
drwxr-xr-x   11 root     root            0 Feb  5 15:21 mem/
drwxr-xr-x    5 root     root            0 Feb  5 15:21 misc/
drwxr-xr-x    5 root     root            0 Feb  5 15:21 net/
drwxr-xr-x    4 root     root            0 Feb  5 15:21 pci_bus/
drwxr-xr-x    3 root     root            0 Feb  5 15:21 scsi_device/
drwxr-xr-x    3 root     root            0 Feb  5 15:21 scsi_host/
drwxr-xr-x   18 root     root            0 Feb  5 15:21 sound/
drwxr-xr-x   77 root     root            0 Feb  5 15:21 tty/
drwxr-xr-x    2 root     root            0 Feb  5 15:21 usb/
drwxr-xr-x    7 root     root            0 Feb  5 15:21 usb_host/

	Thanks, Juergen

-- 
Juergen Rose <rose@rz.uni-potsdam.de>
Max-Delbrueck-Zentrum



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2004-02-07 19:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-07 12:51 usb stick is not found under /udev Juergen Rose
2004-02-07 13:21 ` Kay Sievers
2004-02-07 14:58 ` Juergen Rose
2004-02-07 15:08 ` Kay Sievers
2004-02-07 15:37 ` Juergen Rose
2004-02-07 16:12 ` Kay Sievers
2004-02-07 19:14 ` Juergen Rose
2004-02-07 19:27 ` Greg KH

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).