On Mon, Jan 05, 2004 at 04:36:14PM -0800, Greg KH wrote: > On Mon, Jan 05, 2004 at 08:13:26AM -0800, Linus Torvalds wrote: > > [ Yeah, that sounds like a singularly silly thing to do, but it's a good > > example of something where there is no actual serial number, but you can > > "identify" it automatically through its contents, and name it stably > > according to that. ] > > That was such a silly thing to do, here's a script that does it, along > with the udev rule to add to udev.rules for it. It names your cdrom > Artist_Title, and creates a symlink called cdrom that points to it, just > to be a tiny bit sane :) Hey, this is funny. I couldn't resist to give it a try and we need a few changes: - it's %2c otherwise nearly all my CD's are "good", but sure I also have bad ones :) - remove the node first, cause get_cddb() dies and leaves the old one there - remove spaces in name, cause this is our separator /udev/ |-- The_Cure-The_Peel_Sessions |-- cdrom -> ./The_Cure-The_Peel_Sessions |-- hda |-- hda1 |-- hda2 |-- hda4 thanks, Kay