Quick Tip: How to hide mounted drives from the Ubuntu Dock

Do you want to get rid of the mounted volumes on your Ubuntu Dock? Here's how.

The Ubuntu dock is a beneficial feature for all users. That look of Ubuntu is completed only by its iconic dock and its application shortcuts. That being said, often users do not want to have specific shortcuts there. The applications can be easily edited out, just by unpinning them.

What we are going to discuss here are the shortcuts for mounted volumes. For example, if your system has more partitions than the ones in use while running Ubuntu, the shortcuts for those partitions appear after that being mounted. Other than that, external storage devices appear there, too.

Here’s a short guide showing:

How to disable Ubuntu Dock shortcuts for mounted volumes

Since Ubuntu uses the GNOME desktop environment, and the dock comes under that, we are going to use the command line utility of GNOME, named gsettings to achieve the said goal.

Step 1) Launch the Terminal.

Step 2) Copy and paste the following command and hit enter.

gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false

Step 3) This is going to disable the mounted volumes immediately. Below is a graphical comparison showing the result (the system has a partition, and an external USB mounted):

Dock before disabling mounted volumes shortcuts
Dock before disabling mounted volumes shortcuts.

Dock after disabling mounted volumes shortcuts
Dock after disabling mounted volumes shortcuts.

How to enable Ubuntu Dock shortcuts for mounted volumes

If you want to reverse the process and allow the shortcuts to for mounted volumes again, you can use the following command:

Fire-up the Terminal and enter the following command:

gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts true

This should bring back the mounted volumes shortcuts.


The dock is an excellent feature of Ubuntu, not only because it increases productivity but more because of the extensive customization options it avails to the users. If you might have any questions regarding this article, feel free to ask us in the comments section.

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software, and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its innumerable distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.


Please enter your comment!
Please enter your name here




In this article, we will take a look at 10 of the best PDF editors and tools out there in 2019 that are available for Linux platforms. The editors are going to be judged on the basis of their functionalities, portability, ease of installation, price, and convenience.
Ubuntu 19.10 beta overview
It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.
clean virus ubuntu live CD
In this tutorial, we are going to show you how to clean your Windows machine from infected viruses using an Ubuntu live USB or CD and the ClamAV antivirus. The ClamAV is a free, open-source antivirus that can be used on Ubuntu.