[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: usb discovery fails on initial boot



On Fri, Nov 14, 2008 at 18:44:38 +0000, Russell Gadd wrote:
> I ran this command :
> # udevtrigger --verbose --subsystem-match=block --attr-match=removable=1
> 
> Output was:
> /block/fd0
> /block/hdc
> /block/hdd
> 
> These are my floppy drive and my CD and DVD drives.

It seems that the system is really not aware of the USB stick, so we
cannot trigger the creation of its device nodes. I have seen similar
problems with external USB hard drives, for which an auto-powersave
mechanism can interfere with the device discovery during cold boots,
although I never ran into this problem with USB sticks so far.

Which output do you get from

cat /proc/bus/usb/devices | grep Product=

when your system is in this state with the USB stick not detected.

> To check if I have and /dev/sd* devices I ran
> ls -l /dev |grep "sd"
> which I presume would do it - it produced no output

Yes, that should have shown device nodes. (You can also use "ls -l
/dev/sd*".)

> I also just looked at the output of ls -l /dev which had no sd* devices but
> it did have some usb entries (not sure if this is of relevance?)
> orac:/# ls -l /dev |grep "usb"
> crw-rw---- 1 root root    442,    0 2008-11-14 17:45 usbdev1.1_ep00
> crw-rw---- 1 root root    442,    0 2008-11-14 17:45 usbdev1.1_ep81
> crw-rw---- 1 root root    442, 2048 2008-11-14 17:45 usbdev2.1_ep00
> crw-rw---- 1 root root    442, 2048 2008-11-14 17:45 usbdev2.1_ep81
> crw-rw---- 1 root root    442, 4096 2008-11-14 17:45 usbdev3.1_ep00
> crw-rw---- 1 root root    442, 4096 2008-11-14 17:45 usbdev3.1_ep81
> crw-rw---- 1 root root    442, 6144 2008-11-14 17:45 usbdev4.1_ep00
> crw-rw---- 1 root root    442, 6144 2008-11-14 17:45 usbdev4.1_ep81
> crw-rw---- 1 root root    442, 8192 2008-11-14 17:45 usbdev5.1_ep00
> crw-rw---- 1 root root    442, 8192 2008-11-14 17:45 usbdev5.1_ep81

Those are the device nodes of the USB host controllers, hubs, mouse,
keyboard, etc.

> I then decided to plug in another USB stick in another USB slot and reran
> these commands, in case this tells you something.
> 
> orac:/# ls -l /dev |grep "sd"
> brw-rw---- 1 root floppy    8,    0 2008-11-14 18:37 sda
> brw-rw---- 1 root floppy    8,    1 2008-11-14 18:37 sda1

That is indeed what we would like to see for the first stick, but it
does not tell us why this does not happen after cold boots.

> orac:/# ls -l /dev |grep "usb"

[...]

> crw-rw---- 1 root root    442, 8223 2008-11-14 18:37 usbdev5.32_ep00
> crw-rw---- 1 root root    442, 8223 2008-11-14 18:37 usbdev5.32_ep02
> crw-rw---- 1 root root    442, 8223 2008-11-14 18:37 usbdev5.32_ep81

These are new device nodes that udev created for the second stick
besides the /dev/sda* ones.

It would be interesting to see if the system recognizes the first USB
stick when you remove it and plug it in again. You should run

tail -fn0 /var/log/syslog

before you unplug it, then plug it in again and wait for at least thirty
seconds.  (Press CTRL-C to end the syslog watch.) Post the output that
you get, it might help to see how the system reacts to the unplug and to
the "replug" event.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: