Saturday, January 12, 2013

Samba: Empty .gvfs XUbuntu 12.10

Problem: Unable to navigate to and/or access remote smb (samba) shares via the bash shell.

It seems something changed when I upgraded from XUbuntu 12.04 to 12.10. I used to be able to open gigolo (which was set to automatically mount remote smb shares), and then work with them in bash by navigating to them with:

cd ~/.gvfs
Running an ls command would display all the remote shared folders and away we go

Now, even though the shares are mounted (I can navigate to them with my file manager), there is nothing in ~/.gvfs

Solution: After mounting the remote shares, you will find them under:

/run/user/username/gvfs/smb-share:server=smbServer,share=shareName,user=username

To save time, create symbolic links to the shares (which of course will only work when the share is mounted):

ln -s /run/user/username/gvfs/smb-share:server=smbServer,share=shareName,user=username shareLink

Distro: XUbuntu 12.10
File Manager: Thunar 1.4.0
Samba Connection Manager: gigolo 0.4.1

No comments: