Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev configuration problem for cdrom/dvd
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Thu Dec 13, 2012 12:43 pm    Post subject: Reply with quote

/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
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 257

PostPosted: Wed Jan 16, 2013 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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