Skip to contentSkip to conversation

how to automatically create symlinks named /dev/cdrom?

DISCUSSION Norbert Kiesel 2 participants 2 messages May 9, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

started using udev and came across a problem I could not solve in a satisfactory way: I'd like to get my symlinks /dev/cdrom and /dev/dvd back. For now I added two lines to links.conf (btw, where is its file format documented?) like "L hdc cdrom", but this of course breaks as soon as the cdrom moves around. man pages and googleing did not help.

What I'm looking for is a rule stating: "whenever a media capable of playing audio CDs (or reading ISO-9660 data CDs) shows up, generate a symlink named cdrom within udev root to it". Analogous for DVD.

Currently I personally don't care that the above is broken as soon as the second of a kind shows up because I don't have a machine with 2 CD drives :-) But I could imagine either picking just the first or picking the "best" cdrom (using e.g. "speed" or user-provided data like "First pick is the Pioneer CD-ROM, else the CD-RW").

so long
Norbert

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 4 lines · Norbert Kiesel

started using udev and came across a problem I could not solve in a satisfactory way: I'd like to get my symlinks /dev/cdrom and /dev/dvd back. For now I added two lines to links.conf (btw, where is its file format documented?) like "L hdc cdrom", but this of course

It's not, it's a debian-specific thing which is documented to be undocumented and unsupported.

Anyway, this issue is being discussed in #247179, patches are welcome.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug$7179

Signature · 13 lines
ciao, |
Marco | [6178 suSAMVy6d6G3k]


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel