On Wed, May 28, 2008 at 00:21:21 +0200, Bruno Voigt wrote: > Florian Kulzer wrote:
[...] > > In any case, you can use "udevtest" to see which rules are applied. Here > > is an example for a usb stick at /dev/sdc: > > > > $ udevtest /block/sdc/sdc1 | egrep 'persistent\.rules|by-id' > > parse_file: reading '/etc/udev/rules.d/z20_persistent.rules' as rules file > > udev_rules_get_name: add symlink > > 'disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' > > udev_node_update_symlinks: update symlink > > 'disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' of > > '/block/sdc/sdc1' > > udev_db_get_devices_by_name: found index directory > > '/dev/.udev/names/disk\x2fby-id\x2fusb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' > > update_link: found 1 devices with name > > 'disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' > > update_link: found '/block/sdc/sdc1' for > > 'disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' > > update_link: > > 'disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1' > > with target 'sdc1' has the highest priority 0, create it > > > > > Only the first line is shown: > > [EMAIL PROTECTED]:~# udevtest /block/uba/uba1 | egrep > 'persistent\.rules|by-id' > parse_file: reading '/etc/udev/rules.d/z20_persistent.rules' as rules file The problem seems to be that the USB stick is recognized as a USB block device (/dev/ub*) instead of an SCSI disk device (/dev/sd*). The udev rules do not contain any by-id symlink creation rules for ub* devices. > I'm using a selfcompiled kernel 2.6.25.4 (previosuly 2.6.24.4), > are there any special config options needed ? I would check if the stock Debian 2.6.25 kernel shows the same behavior for this particular USB stick. If the Debian kernel works normally then you can diff the result of "grep USB" for the two kernel configuration files to find out where the problem with your kenel is. > Here is a excerpt from the syslog after plugging the stick: > > May 27 23:47:38 host kernel: usb 1-1: new high speed USB device using > ehci_hcd and address 4 > May 27 23:47:38 host kernel: usb 1-1: configuration #1 chosen from 1 choice > May 27 23:47:38 host kernel: uba: uba1 > May 27 23:47:38 host kernel: usb 1-1: New USB device found, > idVendor=0781, idProduct=5151 > May 27 23:47:38 host kernel: usb 1-1: New USB device strings: Mfr=1, > Product=2, SerialNumber=3 > May 27 23:47:38 host kernel: usb 1-1: Product: Cruzer Micro > May 27 23:47:38 host kernel: usb 1-1: Manufacturer: SanDisk Corporation > May 27 23:47:38 host kernel: usb 1-1: SerialNumber: SNDKB749E40AD9708702 -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]