mount – Hide Mounted Volume Icon from Dock on Ubuntu 19.10 and Later

19.10gnome-shelliconsmountubuntu-dock

I just upgraded from Ubuntu 19.04 to Ubuntu 19.10. This made that my second internal HDD show up in the launcher bar or Ubuntu Dock, which it did not before.

I read that I should mount it to /mnt instead of /media, but this device was auto-mounted years ago (I believe in Ubuntu 16.04 or so) and I have a lot of symlinks and other references to the path in /media already.

How can I remove the icon from the dock without unmounting it or having to mount it to a different location? I can not even move it to another location on the bar.

Best Answer

Open Terminal and run the following command:

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