Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I usually charge my phone through a USB connection. Due to Ubuntu 13.04 detecting and mounting it, Nautlius automatically opens the mounted folder. Can I stop Nautlius from automatically opening the folder of some mounted devices?

share|improve this question

marked as duplicate by Warren Hill, karel, bain, Richard, nux Jul 8 '14 at 9:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

On Xubuntu, I do xfconf-query -c thunar-volman -p /automount-drives-enabled -s false but I heavily suspect it won't work in "plain" Ubuntu, because this command recalls XFCE and Thunar. – ignis May 2 '13 at 21:04
up vote 13 down vote accepted

Click on Applications->System Tools->dconf Editor

In the window which opens, Select org from the side bar, then gnome and then desktop and then media-handling Uncheck the automount-open from the right side bar.

See the picture.

enter image description here

share|improve this answer
Thank you. But can I also change it for one device only? – MeinAccount May 2 '13 at 18:27
worth noting that you have to do this as the user you're logged in as, not neccessarily root – stu Sep 17 '15 at 13:26
You're a life saver! – Akbar Sha Ebrahim Mar 2 at 12:58

Install Ubuntu Tweak. Open it up. Go to Tweaks -> File Manager and you'll see the option there.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.