Disable GNOME Automounting

How do I disable automounting under Fedora Linux GNOME desktop?

The GNOME, runs the program gnome-volume-manager to mount devices and removable media (such as DVDs, CDs and USB flash drives) whenever they are inserted into the system.

Use gconftool-2 GNOME configuration tool to disable or enable settings related to GNOME desktop. Each preference in the GConf repository is expressed as a key-value pair. A GConf preference key is an element in the GConf repository that corresponds to an application prefer-ence. Preference keys typically have simple values such as strings, integers, or lists of strings and integers.

List current settings

Type the following command:
$ gconftool-2 -R /desktop/gnome/volume_manager

Gnome Disable automounting

Type the following command:
$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/volume_manager/automount_media false
$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/volume_manager/automount_drives false

The automount drives and automount media settings should be set to false to avoid automounting. Read gconftool-2 man page for further details:
$ man gconftool-2

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.