Ubuntu – How to restart gvfs

gvfsnautilus

How to restart the whole gvfs "subsystem", when I've e.g. killed a frozen gvfs-sftp process and want to use it again?

GVFS is the subsystem that takes care about mounting/unmounting drives when you click them in Nautilus, including network drives.

The problem is that sometimes the transfer freezes and I need to kill the frozen "provider" (e.g. the gvfs-sftp). But then I can no longer connect to any network drives in Nautilus using SFTP. Restarting the whole computer helps, but there probably is a better way.

I searched the whole /etc in my computer to find out how is this gvfs system started, but I didn't succeed.

Best Answer

It shows that gvfs is automatically started with the first Nautilus instance (I still don't know how, but it does).

So to restart gvfs, just kill all the remaining process (killing the "master" gvfsd daemon is enough), make sure all instances of nautilus are closed, and then open a new one.

killall gvfsd
nautilus -q  # Close all Nautilus windows/instances
nautilus