From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Thu, 26 Jan 2006 19:16:35 +0000 Subject: Re: 082 cdsymlinks Message-Id: <200601262216.36677.arvidjaar@mail.ru> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 26 January 2006 22:09, Aaron Griffin wrote: > Hello all, > With the removal of %e in udev 082, what do you all do with your > cdsymlinks? > > You can't really remove them efficiently, because quite alot of apps > default to /dev/cdrom0 or something similar. > > Using a small script to attach the appropriate number (i.e. cdrom2) > doesn't work either because udev doesn't honor any sort of device > order, so an end user may end up placing a cd in 3 different drives to > get xmms to play some audio, for example. > > I've noticed none of the 'big distros' have solved this problem yet. > Does anyone have a solution or any ideas at all? > Well, I recently posted here a suggestion (with small patch) to create persistent links for CD-ROMs in /dev/cd (actually in /dev/$env{ID_TYPE}). This also solves the problem of pam_console - unfortunately it can match on device name only and removing /dev/cdrom* removed also any distinguishing name. Having disks in /dev/disk and CD-ROMs in /dev/cd looks more logical and gives you persistent names for CD-ROMs. See also recent discussion on lkml on how to enumerate all available CD-ROMs :) - -andrey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD2SAUR6LMutpd94wRAmA9AJ4ibQwzNY/mimz6jnfnfV7yxZKLKQCeILw1 ZurGl/pApzwxTvwRE0kBFh8=wUU6 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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