≡ Menu

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

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 9 comments… add one }
  • Prakash March 13, 2009, 9:29 pm

    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.?


  • neeraj sinha July 31, 2009, 6:13 pm

    what should be done in order to enable selfmounting of partitions in ubuntu 9.04?

  • Travis Low November 1, 2009, 5:20 am

    The two commands from above did NOT work:

    $ 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

    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.

  • Tim McCormack March 1, 2010, 12:53 am

    The new location for these config options seems to be /apps/nautilus/preferences/media_automount — don’t know when this changed.

  • Tim McCormack March 1, 2010, 1:07 am

    On Ubuntu 9.10 “Karmic Koala”, I was able to do this using gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount false.

  • Nigel A June 17, 2010, 11:38 pm

    Great. Thanks.

    I’ve spent hours and hours trying to work out how to configure one single thing in this gnome system and this thread is only thing I’ve managed to find that has given me the clue as to how to do it, and even how to properly invoke gconftool. I may have ignored some search results that would have been relevent of course.

    Just venting a bit as I’ve spent so much time since installing one of these new fangled systems saying “I’ve never come across such bad/lacking documentation on XYZ”. Next someone will be telling me how sysv init scripts aren’t fit for purpose and I need to use some complicated upstart thing to achieve what I’ve been doing for 20yrs without it.

  • Nigel A June 17, 2010, 11:47 pm


    That is actually pretty close to what I’m trying to achieve. I’m also trying to disable the Nautilus popup sometimes, since it’s nice to have that sometimes it completely screws the media system I use.

  • Andras K August 11, 2011, 10:52 am

    Thank you for the useful description!

    Are you aware of a possibility to change the actual mount point?

    Regards, Andras

  • ganesh September 27, 2013, 11:10 am

    how to disable the pen drive in fedora 16

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , ,