udev creates a wrong link for the cdrom device
Hey,
I've some problems setting up the udev rules for my cdrom-drive. Actually the settings should work but the /dev/cdrom device is always linked to /dev/sda2 though my cdrom is /dev/hdb.
lrwxrwxrwx 1 root root 4 Dec 27 17:10 /dev/cdrom -> sda2
brw-rw---- 1 root disk 3, 64 Dec 27 17:10 /dev/hdb
my udev-rules look like this:
ACTION="add", SUBSYSTEM="block", ENV(ID_TYPE)="cd", SYMLINK+="cdrom dvd", GROUP="cdrom"
I've already tried to use ENV(ID_MODEL) and ENV(ID_SERIAL) but it didnt worked either.
I've noticed that it doesnt take any effect if I comment this rule, so maybe udev doesnt recognize it. The rule is placed in /etc/udev/rules.d/82-cdrom.rules, the same place where all the other rules are.
So maybe Im just too stupid to see the failure or maybe its a but. I hope someone of you can help me.
Thanks in advance,
Jonathan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
At Wed, 27 Dec 2006 17:30:34 +0100 (MET),
Quoted 18 lines · jonathan
Hey,
I've some problems setting up the udev rules for my cdrom-drive. Actually the settings should work but the
/dev/cdromdevice is always linked to/dev/sda2though my cdrom is/dev/hdb.lrwxrwxrwx 1 root root 4 Dec 27 17:10
/dev/cdrom-> sda2
brw-rw---- 1 root disk 3, 64 Dec 27 17:10/dev/hdbmy udev-rules look like this:
ACTION="add", SUBSYSTEM="block", ENV(ID_TYPE)="cd", SYMLINK+="cdrom dvd", GROUP="cdrom"
I've already tried to use
ENV(ID_MODEL)andENV(ID_SERIAL)but it didnt worked either.
Quoted 7 lines
I've noticed that it doesnt take any effect if I comment this rule, so maybe udev doesnt recognize it. The rule is placed in
/etc/udev/rules.d/82-cdrom.rules, the same place where all the other rules are.So maybe Im just too stupid to see the failure or maybe its a but. I hope someone of you can help me.
How about this one?
Replace from ( ) to { }.
ACTION="add", SUBSYSTEM="block", ENV{ID_TYPE}="cd", SYMLINK+="cdrom dvd", GROUP="cdrom"
^ ^
Thanks,
MUNE
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel