26

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.

1
  • Why not set the location where you want it to be, ie. making an entry for it in your file system table (/etc/fstab) – guiverc Oct 18 '19 at 8:01
44

Open Terminal and run the following command:

gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
10
  • 2
    I was getting this message GLib-GIO-Message: 10:56:36.397: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. and stackoverflow.com/a/45223897/9318372 fixed it. – Hyperplane Oct 29 '19 at 9:58
  • @Hyperplane I tried with sudo and didn't get it anymore. – Matthieu Nov 8 '19 at 10:16
  • Running Ubuntu 19.10 and using this command returns no errors, but does not remove the icons from the dock. – DankyNanky Nov 17 '19 at 10:04
  • 4
    I'm using Ubuntu 19.10 and tried the above command. It works perfectly. It removed from the dock immediately. – Anbuselvan Rocky Nov 17 '19 at 14:40
  • 2
    Not working on 20.04 – ironzionlion May 31 '20 at 10:32
1

In /etc/fstab locate the line that mounts your drive and remove x-gvfs-show

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"

enter image description here

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"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.