All we need is an easy explanation of the problem, so here it is.
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
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.
How to solve :
I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.
Open Terminal and run the following command:
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
/etc/fstab locate the line that mounts your drive and remove
This can also be done in the
Disks GUI, select the HDD, choose the options gear and select "Edit Mount Options", specify the options you want and uncheck "Show in user interface"
This will allow other removable media, like USB sticks and external HDD to show up, but your "permanent" extra drives to be hidden as "normal"
Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂