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
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 02/24/09



{ 3 comments… read them below or add one }
Hello ,
I am currently trying Fedora 10 after as a Debian/buntu Luser(;) ) for so many years.In Fedora 10 ,the damn thing(HAL) automounts all partitions.will this a fix for that problem?Can I manually mount by clicking on the partition shown in LHS side of nautilus.?
Thanks
what should be done in order to enable selfmounting of partitions in ubuntu 9.04?
The two commands from above did NOT work:
I ran those commands and then I rebooted the machine.
I am trying to run several virtual Windows machines using VMWare. The automounting is a huge problem for me because as soon as I insert a flash drive, Ubuntu grabs it and then it is not accessible to the virtual machines. That is a huge problem because I can’t really use any of my virtual machines unless I can access local media, especially flash drives and DVDs.
I tried unmounting the drives but that doesn’t seem sufficient to let VMWare make them visible to the virtual machine. I’m not sure if that’s because the umount is too late, or if there is some other process that runs that keeps VMWare from making them available to the virtual machine.
The nicest solution would let me decide on-the-fly if I want to mount a removable media or not. The next best solution is to disable automounting altogether, and I’ll just mount devices as I need them. But I have yet to figure out how to disable automounting.
I have many years experience with linux so I’ll take any solution, even if it means I have to edit configuration files somewhere. Thanks for any help.