/dev/cdrom and /dev/cdrw

Florian Diesch diesch at spamfence.net
Fri Jun 30 17:24:03 UTC 2006


"OOzy Pal" <oozypal at gmail.com> wrote:

> Both of my /dev/cdrom & /dev/cdrw point to my CDRW how can I make
> /dev/cdrom point to my CDR?

They are created by udev. To change it you need to modify
/etc/udev/rules.d/60-symlinks.rules.

Maybe changing the line
 ENV{ID_CDROM}=="?*",                    SYMLINK+="cdrom"
to
 ENV{ID_CDROM}=="?*", ENV{ID_CDROM_CD_RW}!="?*" SYMLINK+="cdrom"
works (I never tried it)

If it doesn't work please post the output of
  /lib/udev/cdrom_id /dev/XYZ
for both of the drives (replace XYZ with the device name)


   Florian
-- 
<http://www.florian-diesch.de/>




More information about the ubuntu-users mailing list