From mboxrd@z Thu Jan 1 00:00:00 1970 From: Norbert Kiesel Date: Sun, 09 May 2004 03:58:29 +0000 Subject: how to automatically create symlinks named /dev/cdrom? Message-Id: <20040509035829.GA16229@tbdnetworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel