9

This is the same question here (and a bit of here too), except that I'm running Debian wheezy (7.4). To clear up, these directories do not exist:

/run/user
/var/run/user
~/.cache/gvfs

And this directory is empty:

~/.gvfs/

And the GVFS mounted samba share directory is not found in:

/media/
/mnt/

Naturally, I'd be expecting the Nautilus explorer to help describe the path I'm looking at, mounted locally. Or "Open in Terminal" to work. But they foil me!


Some of the GVFS utilities show some info from the command line:

$ gvfs-mount -l
...
Mount(0): sharedir on wincomp -> smb://wincomp/sharedir/
  Type: GDaemonMount

or with gvfs-mount -li:

Mount(0): sharedir on wincomp -> smb://wincomp/sharedir/
  Type: GDaemonMount
  default_location=smb://wincomp/sharedir/
  themed icons:  [folder-remote]  [folder]
  can_unmount=1
  can_eject=0
  is_shadowed=0

But it doesn't specify where the local mount location is!

4
  • Have you checked if ~/.gvfs directory exists? Feb 17, 2014 at 17:26
  • @adc yes it exists, but is empty
    – Mike T
    Feb 17, 2014 at 18:16
  • Usually those are mounted somewhere beneath /media. You can check this with gvfs-mount.
    – bjanssen
    Feb 22, 2014 at 21:53
  • @bjanssen gvfs-mount -l shows the mount exists, but doesn't say where. And it isn't under /media.
    – Mike T
    Feb 22, 2014 at 23:07

3 Answers 3

9
+100

Ok, figured it out. The default installation of Debian Wheezy does not install the POSIX compatibility layer for GVFS. Install it:

apt-get install gvfs-fuse

Add your user to the FUSE group:

adduser <username> fuse

Reboot your machine (or switch runlevels) and now GVFS will export a FUSE-fs to /home/<username>/.gvfs/<resourcename>

Best regards.

See https://wiki.gnome.org/Projects/gvfs/doc for more information, esp. the part about the FUSE daemon.

2
  • Brilliant! Even the "Open in Terminal" feature now works too!
    – Mike T
    Feb 23, 2014 at 17:47
  • 1
    Looks like the fuse group doesn't exist on Jessie, even after installing gvfs-fuse.
    – Adambean
    Dec 27, 2016 at 12:35
9

To add to bjanssen's answer, in Debian jessie the SMB share is available at

/run/user/$UID/gvfs

The same applies to your SFTP or WEBDAV shares.

0

If you dont know where samba is mounted try to use "mount" command. You should see sth like:

//123.123.123.8/s /mnt/user/sambaShare smbfs  0 0

If you want samba share to be mount in particular directory add to "fstab"

//123.123.123.8/s  /mnt/user/sambaShare  smb  username=admin,password=pass 0 0
5
  • mount doesn't list it, but gvfs-mount shows some info for the mount.
    – Mike T
    Feb 22, 2014 at 23:08
  • This answer should be correct, unless you are somehow not fully permissioned to see the mount, or it has not actually mounted correctly. Are you running all actions ~as~ root, or through sudo? Feb 23, 2014 at 5:48
  • @GeorgeSpiceland mounted as a normal user in Nautilus (via GVFS), and works with Nautilus browser, but apparently hidden/useless to all others, including root.
    – Mike T
    Feb 23, 2014 at 8:08
  • @George Spiceland: gvfs is FUSE-based. Only the user mounting the share will see the appropriate gvfs information. I'm looking into this issue (just need to spin up a Debian Wheezy VM), because my curiosity has been spiked. Last time I had to deal with this stuff, gvfs-mount would show entries like gvfs-mount-daemon on /foo/bar etc. Apparently this has changed since Squeeze.
    – bjanssen
    Feb 23, 2014 at 10:46
  • My weakness with Debian based distro's shines through, thanks for the clarification guys, I may look into this myself. Feb 23, 2014 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.