This simple tutorial shows Ubuntu beginners 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 20.10 Groovy Gorilla.
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 (Nautilus file browser), the relevant icons will appear on the left dock panel and the desktop in Ubuntu 20.10.
For those don’t like this feature, here’s step by step guide shows how to remove them.
Hide mounted drives from the left Dock panel:
Method 1: Single command to hide mounted icons from Dock:
The left dock is handled by Dash-to-Dock extension. Open
terminal via Ctrl+Alt+T and run command to change the setting:
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
Tip: You can drag and drop the code into terminal to do the copy and paste easily.
Method 2: Do the change via 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 Desktop Icons:
Method 1: Run single command to hide the desktop icon:
Open terminal (Ctrl+Alt+T) and run command to change the setting for the Desktop Icon extension:
gsettings set org.gnome.shell.extensions.desktop-icons show-mount false
Method 2: Do the change via Gnome Tweaks:
For those prefer a graphical configuration tool, search for and install Gnome Tweaks from Ubuntu Software.
Then launch Gnome Tweaks and do:
- Navigate to Extensions in left pane.
- Click on the gear icon to launch settings for the ‘Desktop Icons’.
- Turn off ‘Show mounted drives in the desktop’ toggle icon.
That’s it. Enjoy!