I use Places > Connect to Server...
to connect to a Windows share in my work environment (requires Kerberos authentication). When I do so, I can access the Windows share via Nautilus, but I can't figure out how to access the share from the command line without using smbclient
.
For example, the share isn't mounted under /mnt
or /media
. I also looked into ~/.gvfs
but that's empty as well.
Is it possible to access the mounted Windows share from the command line without using smbclient
?
You can use:
mount -t smbfs //servername/myshare /mnt/servername/myshare -o username=myself
mount.cifs //servername/myshare /mnt/servername/myshare -o user=username,pass=password
is another option for scripting purposes.
If it doesn't work, try cifs instead of smbfs, aparently cifs works for newer Windows servers, but I've never had to use it.
Where
//servername/myshare
is the share address, and/mnt/servername/myshare
is the mount folder in your system.Once it's mounted you can access the share at
/mnt/servername/myshare
via command line.I found the solution in this Ubuntu Forums: smbclient works, mount -t smbfs doesn't
The GVFS mount point has changed from one release to the next. On Ubuntu 12.10, it's at
/var/run/<username>/<mountname>/
.One way to easily find the path of the mount is by using the "Open Terminal" plug-in.
You'll need to log out and in for to complete the installation.
Once installed, navigate to the Windows Share folder, click "File", and then "Open in Terminal".
Another way to find the mount is to examine the output of
mount
. Look for the line that begins withgvfsd-fuse
.Go to your home directory, by running:
cd ~
Then run:
ls .*
to list files and directories in it that start with.
. This will show you all the hidden directories and config files in your home directory.Look for the
.gvfs
directory. You can go into it withcd .gvfs
.That will have all the mount points that you made inside the OS GUI.
And you can brows the mounted drives or shares from these points.