Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?
Asked
Active
Viewed 6.5k times
5 Answers
80
Turns out, it is. You will need dconf-editor
tool, which can be installed by with sudo apt-get install dconf-tools
. Run dconf-editor
in your terminal. Browse to org -> gnome -> desktop - media-handling. Uncheck automount-open
.

Anton Cherkashyn
- 4,044
- 3
- 20
- 18
-
3On Ubuntu 14.10, you just need to install "dconf Editor" (dconf-editor). Run it once it's been added to your Launcher. Then do the same thing. – colan Jan 03 '15 at 01:48
21
The setting corresponding to izx's to disable automatically launching nemo
in the cinnamon
desktop is:
gsettings set org.cinnamon.desktop.media-handling automount-open false

kynan
- 2,207
1
For MATE Desktop Environment, which uses the Caja file manager:
gsettings set org.mate.media-handling automount-open false
or use Caja File Management Preferences (caja-file-management-properties
) - on Media tab uncheck Browse media when inserted checkbox.
Not for Gnome or Cinnamon desktop environments, however MATE/Caja is a close relative.
-1
Using GUI in debian gnome desktop:
Open dconf-editor
then go to org -> gnome -> desktop - media-handling
.
There uncheck automount.

Marc Vanhoomissen
- 2,204

SHIVA
- 109
- 2
-
This will disable auto-mounting altogether. OP only wants do disable the pop-up windows after auto-mount. -1 – David Foerster Nov 29 '17 at 11:59
-
yes, it disables the auto-mounting also. my answer is only for disabling pop-up window. – SHIVA Nov 29 '17 at 12:55
-
No, it's not. Please read the description of the Dconf key
org.gnome.desktop.media-handling.automount
(“If set to true, then Nautilus will automatically mount media such as user-visible hard disks and removable media on start-up and media insertion.”) as opposed to.automount-open
(“If set to true, then Nautilus will automatically open a folder when media is automounted.”). – David Foerster Nov 29 '17 at 15:33
dconf
solution did. – fouric May 14 '15 at 03:08sudo
, it may not work, Why? – Honghe.Wu Apr 18 '17 at 02:23gsettings set org.cinnamon.desktop.media-handling automount-open false
for me. Socinnamon
instead ofgnome
. Presumably this would have to changed also if you use Mate instead. Etc etc ... – 0xC0000022L Nov 27 '17 at 23:17gsettings
with descriptions:gsettings list-recursively | while read path name value; do echo "$path.$name=$value"; gsettings describe "$path" "$name"; echo; done
– Mikko Rantalainen Jun 13 '19 at 14:48