Thursday, December 1, 2016

nautilus - How to restart gvfs?



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.



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

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...