View previous topic :: View next topic |
Author |
Message |
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Thu Dec 13, 2012 12:43 pm Post subject: |
|
|
/etc/udev/rules.d/80-cdrom.conf Code: | SUBSYSTEMS=="scsi", KERNEL=="sr0", SYMLINK+="cdrom dvd" |
If you need something more sophisticated than "sr0" to identify the drive, there's documentation around on writing udev rules. |
|
Back to top |
|
|
der bastler Apprentice
Joined: 13 Apr 2003 Posts: 262
|
Posted: Wed Jan 16, 2013 7:22 pm Post subject: |
|
|
Well, my solution for /etc/udev/rules.d/80-cdrom.rules was something like this:
Code: | SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="dvd", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="dvdrw", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrw", GROUP="cdrom" |
And I could activate it with
Code: | /sbin/udevadm test /sys/block/sr0/ |
(besides this is a good idea to check if the rules are applied) _________________ Tempus fugit.
@frank@troet.cafe |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|