emi
Member

Posts: 21
|
 |
« Reply #2 on: March 16, 2008, 11:44:32 pm » |
|
Thanks very much for pointing me in the right direction, John. I looked up the udev rules syntax. Simply adding:
BUS=="ide", KERNEL=="*[!0-9]", DRIVER=="ide-cdrom", NAME="%k", GROUP="cdrom", MODE="0660"
fixed the issue.
Hoever, I don't understand why this line in the default rules file failed:
BUS=="ide", KERNEL=="*[!0-9]", ENV{PHYSDEVDRIVER}=="ide-cdrom", NAME="%k", GROUP="cdrom", MODE="0660"
Where is the PHYSDEVDRIVER variable set, or is it "built in"? I notice that other lines in udev.rules that use ENV{PHYSDEVDRIVER} also fail. For instance:
BUS=="ide", KERNEL=="*[!0-9]", ENV{PHYSDEVDRIVER}=="ide-floppy*", NAME="%k", GROUP="floppy", MODE="0660"
produces:
$ ls -l /dev/fd* lrwxrwxrwx 1 root root 13 2008-03-16 22:55 /dev/fd -> /proc/self/fd/ brw-rw---- 1 root smmsp 2, 0 2005-11-21 00:29 /dev/fd0 brw-rw---- 1 root smmsp 2, 1 2005-11-21 00:29 /dev/fd1 brw-rw---- 1 root smmsp 2, 2 2005-11-21 00:29 /dev/fd2 brw-rw---- 1 root smmsp 2, 3 2005-11-21 00:29 /dev/fd3
which is just silly.
I guess all the ENV{PHYSDEVDRIVER} references need to be changed to DRIVER... why would a new kernel necessitate changing this? And what about other ENV keys, e.g. ENV{ID_SERIAL}?
Thanks, Elliot
|