14

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.

6
  • This is a note to myself, because I keep forgetting (and needing) it occasionally. Commented Jan 17, 2018 at 11:40
  • AskUbuntu is not supposed to be a memo storage! This is a community for asking and helping on questions about Ubuntu. If you just want to save code snippets for yourself use another page like Gist's on GitHub.com. Or elaborate your question and answer well so other users can take advantage of it.
    – derHugo
    Commented Jan 17, 2018 at 15:44
  • @derHugo Then why is there the possibility to answer your own question? I thought it is exactly for this kind of things - you start solving an issue, find the answer, and think somebody else could also be interested. That's my case here. Commented Jan 17, 2018 at 16:30
  • This is true if your posts are elaborated well so another user can easily find your question and understand how your solution solves the issue.
    – derHugo
    Commented Jan 17, 2018 at 16:38
  • @derHugo Ok, I've made both the question and the answer more verbose. Commented Jan 18, 2018 at 14:19

1 Answer 1

20

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
3
  • 1
    Did not work for me just now. The mount point remains unattached: $ ls /run/user/1000/gvfs ls: cannot access /run/user/1000/gvfs: Transport endpoint is not connected Commented Jun 6, 2019 at 22:33
  • 1
    Also works on XFCE: thunar -q
    – too
    Commented Feb 28, 2021 at 8:18
  • This just worked for me on Ubuntu 23.10. I was getting the "Transport endpoint is not connecting" whenever I tried to open a file on a smb mount via nautilus. Doing the above and re-opening the smb mount worked so I could open the files.
    – stuckj
    Commented Dec 4, 2023 at 3:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .