Ubuntu 11.04, by default, automounts a cdrom or dvd at /media/<vol_name>. I need to make the automounting system use a fixed name instead of the volume name for all CDs or DVDs inserted into this particular drive, e.g. "/media/op-drive0". A bit of searching turns up pretty much the same solution I used, successfully, on an older, gentoo box, which is to create an fdi file for hal, along the lines of the instructions at https://bbs.archlinux.org/viewtopic.php?id=91450. This doesn't seem to work on this box. Other sources say to use the gnome-mount utility to set the mounting properties. Ubuntu 11.04 doesn't know about the gnome-mount program. Any ideas?


I can't guarantee it will work under GNOME because I use KDE, but if I add a line for the DVD drive in /etc/fstab like you used to need in older Linux distributions:

/dev/dvd /media/dvd auto user,noauto,exec,utf8 0 

and ensure that the mount point /media/dvd exists, then any time I access a DVD using the Dolphin file browser, the automount happens at the fixed mount point, ignoring the volume label.

$ mount
/dev/sr1 on /media/dvd type iso9660 (ro,nosuid,nodev,utf8,user=orbweaver)

It appears that the automounting system uses the contents of /etc/fstab to override its default behaviour, but again this could be KDE-specific.

  • Thanks. I do recall trying this in Gentoo some time ago, and it didn't work. I believe automounting went away and I had to explicitly mount the medium when I inserted a CD or DVD. There are a number of commented-out lines in /etc/fstab on that box as a record of this experiment. But it looks as if things have come a long way :) I think your solution will solve my problem. – Lindsay Haisley Jul 8 '11 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.