From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pitt Date: Thu, 18 Mar 2010 08:51:51 +0000 Subject: Re: How is /dev/bus/usb created - /dev/bus/usb lost during system Message-Id: <20100318085151.GD2077@piware.de> List-Id: References: <1268875500.9683.64.camel@epsilon> In-Reply-To: <1268875500.9683.64.camel@epsilon> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hello Petr, Petr Kub=E1nek [2010-03-18 2:24 +0100]: > I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10) > on Watcher telescope control computer (@Boyden observatory, South > Africa). >=20 > 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. >=20 > 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-defa= ult.rules:4 udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rule= s:62 udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /l= ib/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=3D/devices/pci0000:00/0000:00:1d.7/usb1/1-8 udevadm_test: DEVNAME=3D/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 --=20 Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)