NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
CD names under udevI'm running Debian Unstable/Sid, and I love the udev stuff. Automatically mounting my CDs and USB sticks? Brilliant. Using the CD names for it? Not so much. I mean, it looks neat that the CDROM is under /media/AOE2 when I insert my Age of Empires II main disk. And when I go run WINE, it should install. But when I want to add the Conquerors expansion, WINE can't find the CD any more. Because now it's /media/AOECON (or whatever). It would still be okay if /media/cdrom0 was also symlinked. But it's not. And I dread trying to get a multi-CD install to work. I tried to check out the Debian Admin's Guide, but I'm awash in data. Can udev be configured to either mount on both paths, or to mount without CD aliases? |
CD names under udev
maybe you could edit /etc/fstab file
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /media/usb0 auto rw,user,noauto 0 0
and make a symlink from /media/cdrom0/1 to your desktop?
CD names under udev
The rule which causes all the trouble is:
/etc/udev/rules.d/z75_cd-aliases-generator.rules
This invokes the script at:
/lib/udev/write_cd_rules
You can start by commenting out the rule that invokes 'write_cd_rules' and instead put in your own simple rules.
You might also want to look at:
/etc/udev/rules.d/z25_persistent-cd.rules
(it's generated by that write_cd_rules script)
Then again the previously mentioned 'fstab' solution works - it's just that you have to manually issue a 'mount' command - or else modify udev rules to do it.
Have fun. :)
CD names under udev
Thanks, pinniped. I've already got the fstab rule, and I've been using it to manually mount the CD since it mysteriously stopped automounting the day after I asked for help. (Of course, aoe2setup.exe has been crashing on me since then too, but hey... one step at a time.)
I'll try out modifying the write_cd_rules script first; I'm much more comfortable with scripting than udev rules. My end goal is to get the CD to mount automatically under /media/cdrom or /media/cdrom0, with a symlink to the /media/{CD-name}.