How to Show or Hide Mounted Drives on Gnome Dock in Ubuntu

Hide Mounted Drives from Dock

# Hide Mounted Drives from Dock
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false

Show Mounted Drives on Dock

# Show Mounted Drives on Dock
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts true