How to Hide Mounted Drives From Dock & Desktop in Ubuntu 21.04

This is a beginner’s guide shows how to hide the icons of mounted USB drive, disk partition, system volume, or other removable devices from both the Desktop and left Dock panel in Ubuntu 21.04.

In the default Gnome Desktop, when you plug-in a removable device (e.g., USB flash drive) or look through other system volume in the Files, the relevant icons will appear on both the left dock panel and the desktop.

For those do not like the feature, it’s easy to turn it off via following steps.

Hide mounted drives from the Dock:

Same to previous releases, the Dock panel is handled by the Dash-to-Dock extension, which offers an option to toggle off the feature.

Method 1: Single command to hide mounted icons from the Dock:

Open terminal by pressing Ctrl+Alt+T on keyboard. When it opens, paste the command below and hit run:

gsettings set show-mounts false

Method 2: Configure via the graphical Dconf Editor:

For those prefer a graphical configuration tool, search for and install dconf editor from Ubuntu Software.

Then launch dconf editor and do:

  • Navigate to org/gnome/shell/extensions/dash-to-dock
  • Scroll down and find out the ‘show-mounts‘ key.
  • Turn off the toggle icon and done.

Hide Mounted Drive Icons from Desktop:

Different to previous Ubuntu releases, the desktop icons is now handled by the DING extension.

Simply right-click blank area on the desktop and select “Settings” in pop-up menu.

In next window, turn off the toggle icon for “Show external drives in the desktop“. If you want, do also for “Show network drives in the desktop“.

That’s it. Enjoy!

Merilyn Ne
Hi, I'm Merilyn Ne, a geek who has been working on Ubuntu Linux for many years and would like to write useful tips for beginners. Forgive me for language mistakes. I'm not a native speaker of English.