F13: Do not mount CD/DVD when inserted into drive

Tom Horsley horsley1953 at gmail.com
Thu May 27 22:08:53 UTC 2010


On Thu, 27 May 2010 17:50:35 -0400
Bill Davidsen wrote:

> > System -> Preferences -> File Management -> Media
> >   
> Does this really work for you? I have mine set that way and when I put in a CD 
> it is still read, mounted, the ISO label is read off the disk, and an icon 
> displayed on the desktop with filesystem label. The media is left unmounted, but 
> that certainly doesn't fit the "do nothing" choice the menu offers.

You can do lower level magic with udev rules and udisks. For instance, I have
a file named /etc/udev/rules.d/99-zzz-local.rules with lines like this:

ENV{ID_FS_LABEL}=="BACKUP", ENV{UDISKS_PRESENTATION_HIDE}="1"

That one keeps my usb disk drive partition with the label "BACKUP"
from showing up at all.

A CD drive is obviously different than a label, but there are
probably things other than ENV{ID_FS_LABEL} that you can
check (how to find out what things, I have no idea :-).

P.S. This is only on fedora 13 with udisks, on fedora 12
it was called DeviceKitDisks and the names were DKD_ instead
of UDISKS_, and prior to fedora 12 a completely different scheme
was required with hal rules written in xml.


More information about the users mailing list