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

* Re: usb stick is not found under /udev
  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
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2004-02-07 13:21 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 07, 2004 at 01:51:38PM +0100, Juergen Rose wrote:
> Hi,
> 
> if I insert my usb memory stick, it found by lsusb
> 
> 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"

Please try '/sbin/udevinfo -a -p /sys/block/sda/sda1' to get the keys for the
rule.

hope that works for you,
Kay


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

* Re: usb stick is not found under /udev
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Juergen Rose @ 2004-02-07 14:58 UTC (permalink / raw)
  To: linux-hotplug

Hi Kay,

On Sat, 2004-02-07 at 14:21, Kay Sievers wrote:
> On Sat, Feb 07, 2004 at 01:51:38PM +0100, Juergen Rose wrote:
> > Hi,
> > 
> > if I insert my usb memory stick, it found by lsusb
> > 
> > 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"
> 
> Please try '/sbin/udevinfo -a -p /sys/block/sda/sda1' to get the keys for the
> rule.

I suppose the interesting information of '/sbin/udevinfo -a -p
/sys/block/sda/sda1' is:

device '/sys/block/sda/sda1' has major:minor 8:1
  looking at class device '/sys/block/sda/sda1':
    SYSFS_dev="8:1"
    SYSFS_start="33"
    SYSFS_size="511071"
    SYSFS_stat="       0        0        0        0"

follow the class device's "device"
  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.3/2-2.3:1.0/host3/3:0:0:0':
    BUS="scsi"
    ID="3:0:0:0"
    SYSFS_detach_state="0"
    SYSFS_type="0"
    SYSFS_vendor="Generic "
    SYSFS_max_sectors="240"
    SYSFS_device_blocked="0"
    SYSFS_queue_depth="1"
    SYSFS_scsi_level="3"
    SYSFS_model="STORAGE DEVICE  "
    SYSFS_rev="1.02"
    SYSFS_online="1"
...
  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.3':
    BUS="usb"
    ID="2-2.3"
    SYSFS_detach_state="0"
    SYSFS_bNumInterfaces=" 1"
    SYSFS_bConfigurationValue="1"
    SYSFS_bmAttributes="80"
    SYSFS_bMaxPower="100mA"
    SYSFS_idVendor="0781"
    SYSFS_idProduct="7101"
    SYSFS_bcdDevice="0102"
    SYSFS_bDeviceClass="00"
    SYSFS_bDeviceSubClass="00"
    SYSFS_bDeviceProtocol="00"
    SYSFS_bNumConfigurations="1"
    SYSFS_speed="12"
    SYSFS_manufacturer="SanDisk Corporation "
    SYSFS_product="Cruzer Mini "
    SYSFS_serial="00420931"
...
I tried the following rules /etc/udev/udev.rules:

BUS="scsi", SYSFS_vendor="Generic", NAME="stick%n"
BUS="usb", SYSFS_vendor="Generic", NAME="stick%n"
BUS="usb", SYSFS_product="Cruzer Mini", NAME="stick%n"

After uncommenting one of these rules in /etc/udev/udev.rules I stoped
(/etc/init.d/udev stop) and started (/etc/init.d/udev start) udev again.
But I did not get a /udev/stick* entry in /udev for any of this three
rules. What is wrong?

	Thank you 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

* Re: usb stick is not found under /udev
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2004-02-07 15:08 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 07, 2004 at 03:58:09PM +0100, Juergen Rose wrote:
> Hi Kay,
> 
> On Sat, 2004-02-07 at 14:21, Kay Sievers wrote:
> > On Sat, Feb 07, 2004 at 01:51:38PM +0100, Juergen Rose wrote:
> > > Hi,
> > > 
> > > if I insert my usb memory stick, it found by lsusb
> > > 
> > > 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"
> > 
> > Please try '/sbin/udevinfo -a -p /sys/block/sda/sda1' to get the keys for the
> > rule.
> 
> I suppose the interesting information of '/sbin/udevinfo -a -p
> /sys/block/sda/sda1' is:

>     SYSFS_vendor="Generic "

> BUS="scsi", SYSFS_vendor="Generic", NAME="stick%n"
> 
> After uncommenting one of these rules in /etc/udev/udev.rules I stoped
> (/etc/init.d/udev stop) and started (/etc/init.d/udev start) udev again.
> But I did not get a /udev/stick* entry in /udev for any of this three
> rules. What is wrong?

Hey, add the missing space character :)

Kay


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

* Re: usb stick is not found under /udev
  2004-02-07 12:51 usb stick is not found under /udev Juergen Rose
                   ` (2 preceding siblings ...)
  2004-02-07 15:08 ` Kay Sievers
@ 2004-02-07 15:37 ` Juergen Rose
  2004-02-07 16:12 ` Kay Sievers
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Juergen Rose @ 2004-02-07 15:37 UTC (permalink / raw)
  To: linux-hotplug

Hi Kay,
On Sat, 2004-02-07 at 16:08, Kay Sievers wrote:
...
> > I suppose the interesting information of '/sbin/udevinfo -a -p
> > /sys/block/sda/sda1' is:
> 
> >     SYSFS_vendor="Generic "
> 
> > BUS="scsi", SYSFS_vendor="Generic", NAME="stick%n"
> > 
> > After uncommenting one of these rules in /etc/udev/udev.rules I stoped
> > (/etc/init.d/udev stop) and started (/etc/init.d/udev start) udev again.
> > But I did not get a /udev/stick* entry in /udev for any of this three
> > rules. What is wrong?
> 
> Hey, add the missing space character :)

I have now in udev.rules:

BUS="scsi", SYSFS_vendor="Generic ", NAME="stick%n"
#BUS="usb", SYSFS_vendor="Generic ", NAME="stick%n"
#BUS="usb", SYSFS_product="Cruzer Mini", NAME="stick%n"

I restarted udev and did not get any /udev/stick* or /dev/sd* entry, I
removed the usb stick, plugged in the stick, no /udev/stick* entry.

Sorry about that.

	Regards 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

* Re: usb stick is not found under /udev
  2004-02-07 12:51 usb stick is not found under /udev Juergen Rose
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2004-02-07 16:12 UTC (permalink / raw)
  To: linux-hotplug

On Sat, 2004-02-07 at 16:37, Juergen Rose wrote:
> Hi Kay,
> On Sat, 2004-02-07 at 16:08, Kay Sievers wrote:
> ...
> > > I suppose the interesting information of '/sbin/udevinfo -a -p
> > > /sys/block/sda/sda1' is:
> > 
> > >     SYSFS_vendor="Generic "
> > 
> > > BUS="scsi", SYSFS_vendor="Generic", NAME="stick%n"
> > > 
> > > After uncommenting one of these rules in /etc/udev/udev.rules I stoped
> > > (/etc/init.d/udev stop) and started (/etc/init.d/udev start) udev again.
> > > But I did not get a /udev/stick* entry in /udev for any of this three
> > > rules. What is wrong?
> > 
> > Hey, add the missing space character :)
> 
> I have now in udev.rules:
> 
> BUS="scsi", SYSFS_vendor="Generic ", NAME="stick%n"
> #BUS="usb", SYSFS_vendor="Generic ", NAME="stick%n"
> #BUS="usb", SYSFS_product="Cruzer Mini", NAME="stick%n"
> 
> I restarted udev and did not get any /udev/stick* or /dev/sd* entry, I
> removed the usb stick, plugged in the stick, no /udev/stick* entry.

Maybe this works:
  BUS="usb", SYSFS_product="Cruzer Mini ", NAME="stick%n"

if not please do:

  make clean
  make DEBUG=true
  make install

and follow the syslog while connecting the stick.
At the end of the day, it will work :)

Grüße
Kay




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

* Re: usb stick is not found under /udev
  2004-02-07 12:51 usb stick is not found under /udev Juergen Rose
                   ` (4 preceding siblings ...)
  2004-02-07 16:12 ` Kay Sievers
@ 2004-02-07 19:14 ` Juergen Rose
  2004-02-07 19:27 ` Greg KH
  6 siblings, 0 replies; 8+ messages in thread
From: Juergen Rose @ 2004-02-07 19:14 UTC (permalink / raw)
  To: linux-hotplug

Hi,
On Sat, 2004-02-07 at 17:12, Kay Sievers wrote:

> Maybe this works:
>   BUS="usb", SYSFS_product="Cruzer Mini ", NAME="stick%n"

No it does not.

> if not please do:
> 
>   make clean
>   make DEBUG=true
>   make install

Ha, now we are coming to reason of my problem. In /var/log/messages I
found:

Feb  7 19:42:52 moen kernel: hub 2-2:1.0: new USB device on port 4,
assigned address 4
Feb  7 19:42:52 moen default.hotplug[3867]: arguments (usb) env
(OLDPWD=/ DEVPATH=/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.4
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION­d PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUM 6 _=/usr/bin/env)
Feb  7 19:42:52 moen default.hotplug[3877]: arguments (usb) env
(OLDPWD=/
DEVPATH=/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.4/2-2.4:1.0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION­d PWD=/etc/hotplug HOME=/
SHLVL=2 DEVICE=/proc/bus/usb/002/004 INTERFACE=8/6/80
PRODUCTx1/7101/102 TYPE=0/0/0 DEBUG=yes SEQNUM 7 _=/usr/bin/env)
Feb  7 19:42:52 moen default.hotplug[3877]: invoke
/etc/hotplug/usb.agent ()
Feb  7 19:42:52 moen usb.agent[3877]: Setup usb-storage for USB product
781/7101/102
Feb  7 19:42:52 moen default.hotplug[3867]: invoke
/etc/hotplug/usb.agent ()
Feb  7 19:42:52 moen default.hotplug[3927]: arguments (scsi_host) env
(OLDPWD=/ DEVPATH=/class/scsi_host/host0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION­d PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUM 8 _=/usr/bin/env)
Feb  7 19:42:52 moen default.hotplug[3935]: arguments (scsi) env
(OLDPWD=/
DEVPATH=/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.4/2-2.4:1.0/host0/0:0:0:0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION­d PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM 9 _=/usr/bin/env)
Feb  7 19:42:52 moen default.hotplug[3927]: no runnable
/etc/hotplug/scsi_host.agent is installed
Feb  7 19:42:52 moen default.hotplug[3935]: invoke
/etc/hotplug/scsi.agent ()
Feb  7 19:42:52 moen default.hotplug[3927]: log to
/var/log/hotplug/events (scsi_host )
Feb  7 19:42:52 moen scsi.agent[3935]: how to add device type= at
/devices/pci0000:00/0000:00:09.1/usb2/2-2/2-2.4/2-2.4:1.0/host0/0:0:0:0
??
Feb  7 19:42:53 moen kernel: scsi0 : SCSI emulation for USB Mass Storage
devices
Feb  7 19:42:53 moen default.hotplug[3969]: arguments (block) env
(OLDPWD=/ DEVPATH=/block/sda PATH=/bin:/sbin:/usr/sbin:/usr/bin
ACTION­d PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM!0
_=/usr/bin/env)
Feb  7 19:42:53 moen default.hotplug[3969]: no runnable
/etc/hotplug/block.agent is installed
Feb  7 19:42:53 moen default.hotplug[3969]: log to
/var/log/hotplug/events (block )
Feb  7 19:42:53 moen default.hotplug[3982]: arguments (block) env
(OLDPWD=/ DEVPATH=/block/sda/sda1 PATH=/bin:/sbin:/usr/sbin:/usr/bin
ACTION­d PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM!1
_=/usr/bin/env)
Feb  7 19:42:53 moen default.hotplug[3990]: arguments (scsi_device) env
(OLDPWD=/ DEVPATH=/class/scsi_device/0:0:0:0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION­d PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUM!2 _=/usr/bin/env)
Feb  7 19:42:53 moen default.hotplug[3982]: no runnable
/etc/hotplug/block.agent is installed
Feb  7 19:42:53 moen default.hotplug[3990]: no runnable
/etc/hotplug/scsi_device.agent is installed
Feb  7 19:42:53 moen default.hotplug[3982]: log to
/var/log/hotplug/events (block )
Feb  7 19:42:53 moen default.hotplug[3990]: log to
/var/log/hotplug/events (scsi_device )
Feb  7 19:42:54 moen kernel:   Vendor: Generic   Model: STORAGE
DEVICE    Rev: 1.02
Feb  7 19:42:54 moen kernel:   Type:  
Direct-Access                      ANSI SCSI revision: 02
Feb  7 19:42:54 moen kernel: SCSI device sda: 512000 512-byte hdwr
sectors (262 MB)
Feb  7 19:42:54 moen kernel: sda: assuming Write Enabled
Feb  7 19:42:56 moen kernel:  sda:<7>usb-storage: queuecommand called
Feb  7 19:42:56 moen kernel: Attached scsi removable disk sda at scsi0,
channel 0, id 0, lun 0
Feb  7 19:42:56 moen kernel: Attached scsi generic sg0 at scsi0, channel
0, id 0, lun 0,  type 0
Feb  7 19:43:01 moen udev[4031]: configured rule in
'/etc/udev/udev.rules' at line 27 applied, 'sda1' becomes 'mouse2'
Feb  7 19:43:01 moen udev[4031]: creating device node '/udev/mouse2'
Feb  7 19:43:01 moen udev[4029]: configured rule in
'/etc/udev/udev.rules' at line 27 applied, 'sda' becomes 'mouse2'
Feb  7 19:43:01 moen udev[4029]: creating device node '/udev/mouse2'


I really don't have a /etc/hotplug/block.agent or
/etc/hotplug/scsi_device.agent. Should I have?
Line 27 of /etc/udev/udev.rules is:

BUS="usb", PLACE="2.4", NAME="mouse2"

Now I can mount and access my usb stick with 

mount /udev/mouse2 /mnt/hd ,

that's nice. This is not, what I expect my hardware recognition. If I
comment line 27 of /etc/udev/udev.rules and restart udev I find finally
the /udev/stick* entries. But, is this commenting of line 27, the best
way to do it?

There is still something interesting. If I try to redirct the output of
/etc/init.d/udev start to a file by:

/etc/init.d/udev start 2>&1 | tee -a /var/log/hotplug/hotplug_debug.log

using udev, compiled with 'make DEBUG=true', it needs very long time or
it even not finishes. Without redirection there is no problem.

	Regards 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

* Re: usb stick is not found under /udev
  2004-02-07 12:51 usb stick is not found under /udev Juergen Rose
                   ` (5 preceding siblings ...)
  2004-02-07 19:14 ` Juergen Rose
@ 2004-02-07 19:27 ` Greg KH
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2004-02-07 19:27 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 07, 2004 at 08:14:11PM +0100, Juergen Rose wrote:
> 
> I really don't have a /etc/hotplug/block.agent or
> /etc/hotplug/scsi_device.agent. Should I have?

No, that has nothing to do with udev.

> Line 27 of /etc/udev/udev.rules is:
> 
> BUS="usb", PLACE="2.4", NAME="mouse2"
> 
> Now I can mount and access my usb stick with 
> 
> mount /udev/mouse2 /mnt/hd ,

Heh.  I suggest getting rid of a rule that does not work, like this one
:)

> that's nice. This is not, what I expect my hardware recognition. If I
> comment line 27 of /etc/udev/udev.rules and restart udev I find finally
> the /udev/stick* entries. But, is this commenting of line 27, the best
> way to do it?

Um, why would you want that rule?  It's incorrect for your system it
seems.

> There is still something interesting. If I try to redirct the output of
> /etc/init.d/udev start to a file by:
> 
> /etc/init.d/udev start 2>&1 | tee -a /var/log/hotplug/hotplug_debug.log
> 
> using udev, compiled with 'make DEBUG=true', it needs very long time or
> it even not finishes. Without redirection there is no problem.

With DEBUG=true, and adding all devices in your system, udev takes a
long time.  There's a lot of messages getting spit out to the system
log.  Go away and it will eventually finish...

thanks,

greg k-h


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