If you frequently use USB sticks or other USB storage devices, it may become annoying that they are automatically mounted whenever you insert them into your Ubuntu Linux system. This is especially the case with multi-partitioned USB drives.
In this tutorial, we will go over the step by step instructions to disable USB automount on Ubuntu Linux by using the dconf-editor GUI program. Read on to learn how.
In this tutorial you will learn:
- How to install dconf-editor on Ubuntu
- How to disable USB automount
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the
|Conventions||# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
Disable USB Automount
The simplest way to prevent USB devices from mounting automatically is with the dconf-editor GUI program. It’s very easy to install and use on Ubuntu. Follow the steps below to complete the procedure.
- First, open up a terminal and use the following command to install dconf-editor with your system’s package manager.
$ sudo apt install dconf-editor
- Next, you can open dconf-editor editor in the application launcher or simply type the following command in your terminal to open the application.
- In this program, navigate through the folders in this order:
org > YOUR DESKTOP MANAGER > desktop > media-handling
- Then, simply flip the automount option off, then you may close the program.
That’s all there is to it. Your changes will be saved when you close the dconf-editor program. You can verify it works by inserting your USB media to see if it still mounts automatically, but it shouldn’t. The dconf-editor is handy to control other system settings as well, but only tinker with it if you know what you’re doing, since configuring certain options could have unpredictable effects.