What forces a file manager to show unmounted partitions in the left pane?
That is - what process is it that causes filemanagers to show drives - it's not fstab - I can show that here, I know that inserting a mountable volume makes it show.
I'm trying to understand what it is that actually gives the filemanager the signal to show the partition in the first place.
The name of the program causing Nautilus to show partition in the left side bar is
gvfs-gdu-volume
. To kill this process, run this command to see the PID of the programIn my system, the output is
So, I know the PID is
6642
, it may vary by time to time.Kill that process with
Or as a one liner, try this
Open nautilus to see the magic !
This image is from thunar in Xubuntu 12.04 LTS.
Note: The solution isn't permanent. Whenever you open a file in Gedit or something like that, The drive icon all appears again. To permanently disable this, follow the below work around.
Workaround to disable this permanently.
Open a terminal and do this command:
This command renamed the culprit file to show the drive icon with adding a
.bak
extension. That's it.If you want to revert the change, use this command
Note: This is not a decent solution, but this works perfectly, and I am happy with this.
My drive icon has gone, How can I mount them now
Don't cry. Here is your trusted friend terminal. Open a terminal and do this command to mount
/dev/sda1
partition. It will do what nautilus does.To find the
/dev/sdaX
number of desired partition, dosudo blkid
on the terminal.Update for 12.10
It seems Ubuntu 12.10 is using
udisks2
program and the responsible program for showing the drive icon is also changed. It is nowgvfs-udisks2-volume
. You should kill this process instead of oldergvfs-gdu-volume
program.2: 1: http://i.stack.imgur.com/WIjuK.png
The partition has to be mountable by the user. In practice that means either on a removable volume or listed in the /etc/fstab.