On Thu, Nov 13, 2008 at 12:50, Mikhail Kolesnik <mike@xxxxxxxxxxxxxx> wrote: > On Wed, 12 Nov 2008 23:55:51 +0100 > "Kay Sievers" <kay.sievers@xxxxxxxx> wrote: > >> [...] >> Your kernel has the old sysfs layout. Put the partition devices after >> the disk device: >> udevadm test /block/sdc/sdc1 > > udevadm_test: version 130 > parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file > parse_file: reading '/lib/udev/rules.d/55-lfs.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file > parse_file: reading '/etc/udev/rules.d/60-vboxdrv.rules' as rules file > parse_file: reading '/lib/udev/rules.d/61-cdrom.rules' as rules file > parse_file: reading '/lib/udev/rules.d/61-persistent-storage-edd.rules' as rules file > parse_file: reading '/etc/udev/rules.d/65-pcmcia.rules' as rules file > parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file > parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules file > parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file > parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file > parse_file: reading '/lib/udev/rules.d/79-fstab_import.rules' as rules file > parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file > parse_file: reading '/lib/udev/rules.d/81-firmware.rules' as rules file > parse_file: reading '/etc/udev/rules.d/90-hal.rules' as rules file > parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file > parse_file: reading '/etc/udev/rules.d/99-fuse.rules' as rules file > parse_file: reading '/etc/udev/rules.d/99-local.rules' as rules file > import_uevent_var: import into environment: 'MAJOR=8' > import_uevent_var: import into environment: 'MINOR=33' > import_uevent_var: import into environment: 'DEVTYPE=partition' > import_uevent_var: import into environment: 'PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/host5/target5:0:0/5:0:0:0' > import_uevent_var: import into environment: 'PHYSDEVBUS=scsi' > import_uevent_var: import into environment: 'PHYSDEVDRIVER=sd' > udevadm_test: looking at device '/block/sdc/sdc1' from subsystem 'block' > udev_rules_get_name: add symlink 'block/8:33' > match_rule: '/sys/block/sdc/sdc1/whole_disk' does not exist > udev_rules_get_name: add symlink 'disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' > udev_rules_get_name: add symlink 'disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' > udev_node_mknod: mknod(/dev/.tmp-8-33, 060600, (8,33)) > udev_node_mknod: chmod(/dev/.tmp-8-33, 060600) > udev_node_mknod: chown(/dev/.tmp-8-33, 0, 0) > run_program: 'vol_id --export /dev/.tmp-8-33' > run_program: '/lib/udev/vol_id' (stderr) 'libudev: udev_new: context 0x804d008 created' > run_program: '/lib/udev/vol_id' (stderr) 'libudev: udev_new: log_priority=6' > run_program: '/lib/udev/vol_id' (stderr) 'libudev: udev_new: config_file='/etc/udev/udev.conf'' > run_program: '/lib/udev/vol_id' (stderr) 'libudev: udev_new: dev_path='/dev'' > run_program: '/lib/udev/vol_id' (stderr) 'libudev: udev_new: sys_path='/sys'' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_USAGE=filesystem' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_TYPE=vfat' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_VERSION=FAT32' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_UUID=482D-DBA5' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_UUID_ENC=482D-DBA5' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_LABEL=' > run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_LABEL_ENC=' > run_program: '/lib/udev/vol_id' returned with status 0 > udev_rules_get_name: add symlink 'disk/by-uuid/482D-DBA5' > run_program: 'fstab_import sdc1 block/8:33 disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1 disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1 disk/by-uuid/482D-DBA5 mapper/' > run_program: '/lib/udev/fstab_import' (stderr) 'libudev: udev_new: context 0x804c008 created' > run_program: '/lib/udev/fstab_import' (stderr) 'libudev: udev_new: log_priority=6' > run_program: '/lib/udev/fstab_import' (stderr) 'libudev: udev_new: config_file='/etc/udev/udev.conf'' > run_program: '/lib/udev/fstab_import' (stderr) 'libudev: udev_new: dev_path='/dev'' > run_program: '/lib/udev/fstab_import' (stderr) 'libudev: udev_new: sys_path='/sys'' > run_program: '/lib/udev/fstab_import' returned with status 1 > udev_rules_get_name: add symlink 'usbflash1' > udev_rules_get_name: rule applied, 'sdc1' becomes 'sdc1' > udev_device_event: device '/block/sdc/sdc1' already in database, cleanup > udev_node_add: creating device node '/dev/sdc1', major=8, minor=33, mode=0660, uid=0, gid=104 > udev_node_update_symlinks: update symlink 'block/8:33' of '/block/sdc/sdc1' > udev_db_get_devices_by_name: found index directory '/dev/.udev/names/block\x2f8:33' > update_link: found 1 devices with name 'block/8:33' > update_link: found '/block/sdc/sdc1' for 'block/8:33' > update_link: compare (our own) priority of '/block/sdc/sdc1' 0 >= 0 > update_link: 'block/8:33' with target 'sdc1' has the highest priority 0, create it > udev_node_update_symlinks: update symlink 'disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' of '/block/sdc/sdc1' > udev_db_get_devices_by_name: found index directory '/dev/.udev/names/disk\x2fby-id\x2fusb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' > update_link: found 1 devices with name 'disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' > update_link: found '/block/sdc/sdc1' for 'disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' > update_link: compare (our own) priority of '/block/sdc/sdc1' 0 >= 0 > update_link: 'disk/by-id/usb-Corsair_Flash_Voyager_A500000000025423-0:0-part1' with target 'sdc1' has the highest priority 0, create it > udev_node_update_symlinks: update symlink 'disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' of '/block/sdc/sdc1' > udev_db_get_devices_by_name: found index directory '/dev/.udev/names/disk\x2fby-path\x2fpci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' > update_link: found 1 devices with name 'disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' > update_link: found '/block/sdc/sdc1' for 'disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' > update_link: compare (our own) priority of '/block/sdc/sdc1' 0 >= 0 > update_link: 'disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0-part1' with target 'sdc1' has the highest priority 0, create it > udev_node_update_symlinks: update symlink 'disk/by-uuid/482D-DBA5' of '/block/sdc/sdc1' > udev_db_get_devices_by_name: found index directory '/dev/.udev/names/disk\x2fby-uuid\x2f482D-DBA5' > update_link: found 1 devices with name 'disk/by-uuid/482D-DBA5' > update_link: found '/block/sdc/sdc1' for 'disk/by-uuid/482D-DBA5' > update_link: compare (our own) priority of '/block/sdc/sdc1' 0 >= 0 > update_link: 'disk/by-uuid/482D-DBA5' with target 'sdc1' has the highest priority 0, create it > udev_node_update_symlinks: update symlink 'usbflash1' of '/block/sdc/sdc1' > udev_db_get_devices_by_name: found index directory '/dev/.udev/names/usbflash1' > update_link: found 1 devices with name 'usbflash1' > update_link: found '/block/sdc/sdc1' for 'usbflash1' > update_link: compare (our own) priority of '/block/sdc/sdc1' 0 >= 0 > update_link: 'usbflash1' with target 'sdc1' has the highest priority 0, create it > udevadm_test: run: 'socket:/org/freedesktop/hal/udev_event' > udevadm_test: run: 'socket:@/org/kernel/udev/monitor' > udev_unref: context 0x8064008 released > > udevadm_test: version 131 > parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file > parse_file: reading '/lib/udev/rules.d/55-lfs.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file > parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file > parse_file: reading '/etc/udev/rules.d/60-vboxdrv.rules' as rules file > parse_file: reading '/lib/udev/rules.d/61-cdrom.rules' as rules file > parse_file: reading '/lib/udev/rules.d/61-persistent-storage-edd.rules' as rules file > parse_file: reading '/etc/udev/rules.d/65-pcmcia.rules' as rules file > parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file > parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules file > parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file > parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file > parse_file: reading '/lib/udev/rules.d/79-fstab_import.rules' as rules file > parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file > parse_file: reading '/lib/udev/rules.d/81-firmware.rules' as rules file > parse_file: reading '/etc/udev/rules.d/90-hal.rules' as rules file > parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file > parse_file: reading '/etc/udev/rules.d/99-fuse.rules' as rules file > parse_file: reading '/etc/udev/rules.d/99-local.rules' as rules file > udev_rules_new: shrunk to 12540 bytes tokens (1045 * 12 bytes), 10421 bytes buffer > udev_device_new_from_syspath: device 0x806f448 has devpath '/block/sdc/sdc1' > udev_rules_apply_to_event: LINK 'block/8:33' /lib/udev/rules.d/50-udev-default.rules:3 > udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:64 > udev_rules_apply_to_event: MODE 0660 /lib/udev/rules.d/55-lfs.rules:86 > udev_rules_apply_to_event: IMPORT 'vol_id --export /dev/block/8:33' /lib/udev/rules.d/60-persistent-storage.rules:63 > util_run_program: 'vol_id --export /dev/block/8:33' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_USAGE=filesystem' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_TYPE=vfat' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_VERSION=FAT32' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_UUID=482D-DBA5' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_UUID_ENC=482D-DBA5' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_LABEL=' > util_run_program: '/lib/udev/vol_id' (stdout) 'ID_FS_LABEL_ENC=' > util_run_program: '/lib/udev/vol_id' returned with status 0 > udev_rules_apply_to_event: LINK 'disk/by-uuid/482D-DBA5' /lib/udev/rules.d/60-persistent-storage.rules:66 > udev_rules_apply_to_event: IMPORT 'fstab_import sdc1 block/8:33 disk/by-uuid/482D-DBA5 mapper/' /lib/udev/rules.d/79-fstab_import.rules:1 > util_run_program: 'fstab_import sdc1 block/8:33 disk/by-uuid/482D-DBA5 mapper/' > util_run_program: '/lib/udev/fstab_import' returned with status 1 > udev_rules_apply_to_event: RUN 'socket:/org/freedesktop/hal/udev_event' /etc/udev/rules.d/90-hal.rules:2 > udev_rules_apply_to_event: RUN 'socket:@/org/kernel/udev/monitor' /lib/udev/rules.d/95-udev-late.rules:7 > udev_event_execute_rules: no node name set, will use kernel name 'sdc1' > udev_device_new_from_syspath: device 0x8070518 has devpath '/block/sdc/sdc1' > udev_device_read_db: device 0x8070518 filled with db file data > udev_device_update_db: created db file for '/block/sdc/sdc1' in '/dev/.udev/db/\x2fblock\x2fsdc\x2fsdc1' > udev_node_add: creating device node '/dev/sdc1', devnum=8:33, mode=0660, uid=0, gid=6 > update_link: '/dev/block/8:33' with target '/dev/sdc1' has the highest priority 0, create it > update_link: '/dev/disk/by-uuid/482D-DBA5' with target '/dev/sdc1' has the highest priority 0, create it > udevadm_test: run: 'socket:/org/freedesktop/hal/udev_event' > udevadm_test: run: 'socket:@/org/kernel/udev/monitor' Hmm, strange, your rules still work here. Care to try if tracing shows if reading the sysfs value goes wrong? It shows here: readlink("/sys/.../usb5/5-2/subsystem", "../../../../../bus/usb"..., 1024) = 22 lstat("/sys/.../usb5/5-2/serial", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 open("/sys/.../usb5/5-2/serial", O_RDONLY) = 3 read(3, "000000009407\n", 512) = 13 close(3) = 0 This creates a "udev-trace" file: strace -s 256 -o udev-trace /sbin/udevadm test /block/sdc/sdc1 Can you send this to me? Thanks, Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html