How is /dev/bus/usb created - /dev/bus/usb lost during system
Hi,
I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10) on Watcher telescope control computer (@Boyden observatory, South Africa).
I do not see /dev/bus/usb, and lsusb does not show anything. It worked before, USB devices are present in dmesg, so I think USB subsystem is working properly.
To debug this it will help me to know how udev creates and populates /dev/bus/usb - which rule(s) does this, how to debug what might be wrong.
We hit some problems during system upgrade, and I am pretty sure this is related to them. I just need to debug the machine, which is while I am in Europe and machine is in South Africa a bit difficult (and dangerous to change anything, as it might not boot and then I have a problem again..).
Thanks a lot for any hint.
Petr
Quoted 5 lines · Petr Kub?nek
Hi,
I lost
/dev/bus/usbduring remote system upgrade (Ubuntu 9.04 -> 9.10) on Watcher telescope control computer (@Boyden observatory, South Africa).
Why not file a bug with Ubuntu? This sounds like a system configuration problem on their part.
thanks,
greg k-h
Hello Petr,
Petr Kubánek [2010-03-18 2:24 +0100]:
Quoted 11 lines
I lost
/dev/bus/usbduring remote system upgrade (Ubuntu 9.04 -> 9.10) on Watcher telescope control computer (@Boyden observatory, South Africa).I do not see
/dev/bus/usb, and lsusb does not show anything. It worked before, USB devices are present in dmesg, so I think USB subsystem is working properly.To debug this it will help me to know how udev creates and populates
/dev/bus/usb- which rule(s) does this, how to debug what might be wrong.
Those are just created by udev, there is no particular rule for it (it's using the kernel default name).
$ udevadm test /bus/usb/devices/1-8 [...] udev_rules_apply_to_event: LINK 'char/189:2' /lib/udev/rules.d/50-udev-default.rules:4 udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rules:62 udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-hal.rules:2 udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/003' [...] udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8 udevadm_test: DEVNAME=/dev/bus/usb/001/003 [...]
My best guess is that you are running a custom kernel which perhaps has CONFIG_SYSFS_DEPRECATED_V2 set, or something similar? What does "uname -a" say?
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Hi,
no custom kernel - 2.6.26-18-server #59
What I found different running
udevadm test /bus/usb/devices/1-0:1.0
on watcher:
udevadm_test: UDEV_LOG=6udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0udevadm_test: DEVTYPE=usb_interfaceudevadm_test: DRIVER=hubudevadm_test: DEVICE=/proc/bus/usb/001/001udevadm_test: PRODUCT6b/2/206udevadm_test: TYPE=9/0/0udevadm_test: INTERFACE=9/0/0udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00udevadm_test: ACTIONdudevadm_test: SUBSYSTEM=usbudevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'
on my laptop, running 2.6.31:
udevadm_test: UDEV_LOG=6udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0udevadm_test: DEVTYPE=usb_interfaceudevadm_test: DRIVER=hubudevadm_test: PRODUCT6b/2/206udevadm_test: TYPE=9/0/0udevadm_test: INTERFACE=9/0/0udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00udevadm_test: ACTIONdudevadm_test: SUBSYSTEM=usbudevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'
e.g. DEVICE is missing. /proc/bus/usb is empty on Watcher and missing on my laptop (where lsusb works). Any ideas? I
checked /boot/config-2.6.28-18-server, and it does not have SYSFS_DEPRECATED set.
Petr
Martin Pitt pÃÅ¡e v ÄŒt 18. 03. 2010 v 09:51 +0100:
Quoted 35 lines
Hello Petr,
Petr Kubánek [2010-03-18 2:24 +0100]:
Quoted 11 lines
I lost
/dev/bus/usbduring remote system upgrade (Ubuntu 9.04 -> 9.10) on Watcher telescope control computer (@Boyden observatory, South Africa).I do not see
/dev/bus/usb, and lsusb does not show anything. It worked before, USB devices are present in dmesg, so I think USB subsystem is working properly.To debug this it will help me to know how udev creates and populates
/dev/bus/usb- which rule(s) does this, how to debug what might be wrong.Those are just created by udev, there is no particular rule for it (it's using the kernel default name).
$ udevadm test /bus/usb/devices/1-8 [...] udev_rules_apply_to_event: LINK 'char/189:2' /lib/udev/rules.d/50-udev-default.rules:4 udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rules:62 udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-hal.rules:2 udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/003' [...] udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8 udevadm_test: DEVNAME=/dev/bus/usb/001/003 [...]My best guess is that you are running a custom kernel which perhaps has
CONFIG_SYSFS_DEPRECATED_V2set, or something similar? What does "uname -a" say?Martin
Quoted 4 lines · Petr Kubánek
udevadm test /bus/usb/devices/1-0:1.0
e.g. DEVICE is missing.
/proc/bus/usbis empty on Watcher and missing on my laptop (where lsusb works).
DEVICE is a property of the deprecated usbfs, it is not related to udev and can be ignored.
You need to run "udevadm test" on a usb-device, not on a usb-interface. Interfaces have no device nodes. There must be no ":" in the device name.
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Ok, running
udevadm test /bus/usb/devices/2-1
still shows DEVICE=xxx
It looks that the upgrade was left in some strange state. I am finishing it, hopefully it will help..
Petr
Kay Sievers píše v Čt 18. 03. 2010 v 11:21 +0100:
Quoted 14 lines · Petr Kubánek
Quoted 4 lines
udevadm test /bus/usb/devices/1-0:1.0
e.g. DEVICE is missing.
/proc/bus/usbis empty on Watcher and missing on my laptop (where lsusb works).DEVICE is a property of the deprecated usbfs, it is not related to udev and can be ignored.
You need to run "udevadm test" on a usb-device, not on a usb-interface. Interfaces have no device nodes. There must be no ":" in the device name.
Kay
Petr Kubánek [2010-03-18 11:03 +0100]:
Quoted 1 line
no custom kernel - 2.6.26-18-server #59
Ubuntu has never shipped 2.6.26 in any release.
Ubuntu 9.10 uses 2.6.31 (linux-image-2.6.31-14-server). Perhaps you removed the linux-image-server metapackage?
Please try and install linux-image-server, boot that, and check that /dev/bus/usb is back.
Anyway, this is not an upstream bug, and not an Ubuntu one either. Can you please refer to https://answers.launchpad.net/ for further questions?
Thanks,
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Quoted 8 lines · Petr Kubánek
Ok, running
udevadm test /bus/usb/devices/2-1
still shows DEVICE=xxx
It looks that the upgrade was left in some strange state. I am finishing it, hopefully it will help..
No, DEVICE means nothing, just ignore it, as mentioned in the earlier mail. It should not even be there if the deprevated usbfs is not enabled. You look for DEVNAME!
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Sorry, I should copy&paste instead of see&write - of course it is 2.6.28.
I do agree it is not Ubuntu bug. Something went wrong during upgrade, and I just would like to discover what was it. I am finishing upgrade, hopefully this will help.
Petr
Martin Pitt píše v Čt 18. 03. 2010 v 11:37 +0100:
Quoted 17 lines
Petr Kubánek [2010-03-18 11:03 +0100]:
Quoted 1 line
no custom kernel - 2.6.26-18-server #59
Ubuntu has never shipped 2.6.26 in any release.
Ubuntu 9.10 uses 2.6.31 (linux-image-2.6.31-14-server). Perhaps you removed the linux-image-server metapackage?Please try and install linux-image-server, boot that, and check that
/dev/bus/usbis back.Anyway, this is not an upstream bug, and not an Ubuntu one either. Can you please refer to https://answers.launchpad.net/ for further questions?
Thanks,
Martin
Hi,
whatever it was, it is gone - I upgraded to 2.6.31-20, which fixed the problem. /dev/bus/usb is back, lsusb works.
Thanks a lot for all suggestions.
Petr
Kay Sievers píše v Čt 18. 03. 2010 v 11:41 +0100:
Quoted 15 lines · Petr Kubánek
Quoted 8 lines
Ok, running
udevadm test /bus/usb/devices/2-1
still shows DEVICE=xxx
It looks that the upgrade was left in some strange state. I am finishing it, hopefully it will help..
No, DEVICE means nothing, just ignore it, as mentioned in the earlier mail. It should not even be there if the deprevated usbfs is not enabled. You look for DEVNAME!
Kay
Quoted 2 lines · Petr Kubánek
no custom kernel - 2.6.26-18-server #59
2.6.26 is well below the supported kernel version for Ubuntu 9.10
Ubuntu 9.10 shipped with 2.6.31, we fully support that kernel and newer kernel versions - not older ones
Scott
Signature · 2 lines
Scott James Remnant [email protected]