Hello,
Does anybody know where Caja mounts a samba share? When I mount the share (in Caja, File->Connect to Server...) I can see the icon on my desktop and I can browse and open files on my samba server. However, when I look at folder /home/myUserName/Desktop in a shell command line I see nothing like my samba directory. Then, I look at /mnt or /media but there is nothing there either...
Thanks,
dd058
Where does Caja mount a samba share?[SOLVED]
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Where does Caja mount a samba share?[SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Where does Caja mount a samba share?
It depends on which version of Mint you are using. It's either here in a hidden directory:
OR here in a non-hidden directory:/home/your-user-name/.gvfs
/run/user/your-user-name/gvfs
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Where does Caja mount a samba share?
I am using Linux Mint Debian Edition. There is nothing in /home/my-user-name/.gvfs and /run/user/ does not exist at all...
Re: Where does Caja mount a samba share?
Didn't realize I was posting the the LMDE part of the forum, sorry about that.
You need to install some stuff. Actually, just so we don't have to come back to this you might as well add all of the samba related stuff that Debian leaves out:
Then add yourself to the fuse group:
Log out and log in again for the group memebership to take affect and see if the .gvfs folder holds your mount point when you use Connect to Server.
You need to install some stuff. Actually, just so we don't have to come back to this you might as well add all of the samba related stuff that Debian leaves out:
Code: Select all
sudo apt-get install gvfs-fuse
sudo apt-get install libsmbclient
sudo apt-get install smbclient
sudo apt-get install python-smbc
Code: Select all
sudo gpasswd -a your-user-name fuse
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Where does Caja mount a samba share?[SOLVED]
Only packages gvfs-fuse and python-smbc had to be installed. The other two you mentioned were already installed. I sorted my group permission, rebooted and the samba share appears in the ~/.gvfs directory.
The mount command is not empty anymore which makes me happy
Thanks for the help. I hope this helps someone else, too.
A small note.
This whole thing started by me wanting to:
1. be able to use mint's graphical 'Backup Tool' to backup to a samba share
2. be able to do a backup with a shell script (so I started looking for the mount point that caja uses for network shares).
The answer to no 1: it is still not possible because the backup tool does not allow you to choose a hidden destination folder (~./gvfs). Ha!
The answer to no 2: You can set up the samba share to be mounted wherever you like at the start of your backup shell script and then do your backup. You don't need ~/.gvfs.
Thanks again
dd058
The mount command is not empty anymore which makes me happy
Code: Select all
mount -l | grep gvfs
gvfs-fuse-daemon on /home/dd058/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
A small note.
This whole thing started by me wanting to:
1. be able to use mint's graphical 'Backup Tool' to backup to a samba share
2. be able to do a backup with a shell script (so I started looking for the mount point that caja uses for network shares).
The answer to no 1: it is still not possible because the backup tool does not allow you to choose a hidden destination folder (~./gvfs). Ha!
The answer to no 2: You can set up the samba share to be mounted wherever you like at the start of your backup shell script and then do your backup. You don't need ~/.gvfs.
Thanks again
dd058
Re: Where does Caja mount a samba share?[SOLVED]
One of the advantages - perhaps the only advantage - of the new gvfs mount point in the latest Ubuntu based Mint is that it's no longer in a hidden directory and it's no longer in the user's home directory: /run/user/$USER/gvfs. But like many things in life with the good comes the bad. Instead of an actual mount point that looks like this:
You get this butt-ugly thing:$USER/.gvfs/share-name on server-name
At least now it has no spaces in the path./run/user/$USER/gvfs/smb-share:server=server-name,share=share-name
Just out of curiosity did you change the mount point with a:The answer to no 2: You can set up the samba share to be mounted wherever you like at the start of your backup shell script and then do your backup. You don't need ~/.gvfs.
Or did you go old-school with a "sudo mount -t cifs ..."/usr/lib/gvfs/gvfs-fuse-daemon /path/to/new/moutpoint
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Where does Caja mount a samba share?[SOLVED]
I wasn't aware that you can change the mount point the gvfs-fuse-daemon uses. I haven't done any work on this so far (too busy with my 'daytime' work) but I will go for the old fashioned 'mount' command, I think. What would you do? Are there any benefits of using the daemon method?
Re: Where does Caja mount a samba share?[SOLVED]
To be honest I always thought changing the path to the .gvfs folder this way was kludgey. The user has to add it to his autostart applications list for it to work consistently which is why I considered it an improvement that they made it non-hidden and outside the users home directory in current releases. So I don't see any advantage over the classic way of doing this.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.