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.10 and 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:
Firstly, open terminal either by searching from activities overview screen, or by pressing Ctrl+Alt+T on keyboard.
When terminal opens, paste the command below into it and hit run will do the trick:
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
Method 2: Configure via the graphical Dconf Editor:
For those hate Linux commands, a graphical configuration tool ‘Dconf Editor’ is present with the toggle icons.
Firstly search for and install “Dconf Editor” from Ubuntu Software Center if you don’t have it:
Then launch the tool by searching from the overview screen 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” or “Desktop Icon 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!