Disable automounting in Ubuntu

16,272

From here

Uninstalling gnome-volume-manager seems really extreme... Simply turning off GVM's automounting of hot-plugged and inserted removable media would be simpler.

From the Gnome Panel, click System->Preferences->Removable Drives and Media and then uncheck the first two boxes on the storage tab. This will turn off automounting for everything not defined in /etc/fstab, and you can turn it back on if desired as easily.

If you just wanted to disable automounting of certain devices you could give them their own line in /etc/fstab, making sure that the fourth field of their line include noauto so they are never automounted.

alt text

(Or)

Run Nautilus and open Edit => Preferences > Media. Turn off "Browse media when inserted".

Share:
16,272

Related videos on Youtube

David Harris
Author by

David Harris

Updated on September 17, 2022

Comments

  • David Harris
    David Harris almost 2 years

    I am using Ubuntu 9.04 with xfce and it keeps wanting to automount drives that I plugin, is there a way to disable this?

  • Patryk
    Patryk almost 12 years
    Is there a similar tool for Ubuntu 12.04 ?