Re: Some rules do not work in udev 131 and 132

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

 



On Wed, Nov 12, 2008 at 23:37, Mikhail Kolesnik <mike@xxxxxxxxxxxxxx> wrote:
> On Wed, 12 Nov 2008 21:31:54 +0100
> "Kay Sievers" <kay.sievers@xxxxxxxx> wrote:
>
>> These rules seem to work fine here. I just replaced the serial number:
>>   ls -l /dev/usbflash*
>>   lrwxrwxrwx 1 root root 3 Nov 12 21:21 /dev/usbflash -> sdb
>>   lrwxrwxrwx 1 root root 4 Nov 12 21:21 /dev/usbflash1 -> sdb1
>>
>> What does (replace sdb with the correct name):
>>   udevadm test /class/block/sdb
>>   udevadm test /class/block/sdb1
>> print?
>
> I get "unable to open device '/class/block/sd*'" for
> any '/class/block/sd*' name. The same for "/block/sd*[0-9]":
>
> # udevadm test /block/sdc1
> run_command: calling: test
> udevadm_test: version 130
> [...]
> parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules
> file
> [...]
> parse_file: reading '/etc/udev/rules.d/99-local.rules' as rules file
> unable to open device '/block/sdc1'
> udev_unref: context 0x8064008 released
>
> Only names like '/block/sdX' seems to go beyond the parse_file part:

Your kernel has the old sysfs layout. Put the  partition devices after
the disk device:
  udevadm test /block/sdc/sdc1

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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux