finding mount point path for Windows CIFS volume visible in Ubuntu file browser
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
finding mount point path for Windows CIFS volume visible in Ubuntu file browser
Hi,
using Ubuntu file browser, I browsed my Windows network and logged on to a Windows PC. Now Ubuntu file browser shows me "C$ on WinPC" as a folder. I can open it, read/write files, etc.
But from bash prompt, I don't see anything of type CIFS/SMBFS listed in the output of "mount". Only the usual suspects (like local CDROM). How can refer to Windows files from Linux commandline?
I suspect you do not have the windows share mounted on your Ubuntu system, unless you manually mounted the remote file system. That takes a mount command to be issued by you, in a terminal.
If the share was being mounted because of an entry in /etc/fstab, you would have an entry that looks like this:
The first part is the remote system name, followed by the shared directory. Next is the mount point. On my system, I mount the remote directory at /mnt/Pictures. That directory structure is on my system, I made the 'Pictures' part, /mnt was there from the install. Those directories are there, even when the share is not mounted. When mounted, the remote file system shows up.
You are correct, it could be a cifs file system, or smbfs, either can work.
To get it mounted, create an empty directory were you want the mount to occur. Then create the /etc/fstab entry. As root you can issue a 'mount -a' ( without quotes ) command to cause the entries in fstab to be mounted.
Once you have it mounted, just use the 'cd' command to put yourself at the mount point, and a 'ls' command will show the files.
The filesystem should be mounted under /media. Have you tried the command
ls -l /media to see if it is there?
$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-26-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/scd0 on /media/cdrom1 type iso9660 (ro,nosuid,nodev,utf8,user=knighttof3)
gvfs-fuse-daemon on /home/knighttof3/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=knighttof3)
I suspect you do not have the windows share mounted on your Ubuntu system, unless you manually mounted the remote file system. That takes a mount command to be issued by you, in a terminal.
If the share was being mounted because of an entry in /etc/fstab, you would have an entry that looks like this:
The first part is the remote system name, followed by the shared directory. Next is the mount point. On my system, I mount the remote directory at /mnt/Pictures. That directory structure is on my system, I made the 'Pictures' part, /mnt was there from the install. Those directories are there, even when the share is not mounted. When mounted, the remote file system shows up.
You are correct, it could be a cifs file system, or smbfs, either can work.
To get it mounted, create an empty directory were you want the mount to occur. Then create the /etc/fstab entry. As root you can issue a 'mount -a' ( without quotes ) command to cause the entries in fstab to be mounted.
Once you have it mounted, just use the 'cd' command to put yourself at the mount point, and a 'ls' command will show the files.
OK, I am really confused now.
I did not manually mount anything. I clicked on the Ubuntu tab Places > Network > Windows Network and navigated to my WinPC from there.
Perhaps my question should be; does whatever backend (smbclient?) used by Ubuntu file browser actually mount the CIFS volume on some local Linux pathname or not? If yes, how can I find that pathname?
OK, I am really confused now.
I did not manually mount anything. I clicked on the Ubuntu tab Places > Network > Windows Network and navigated to my WinPC from there.
I didn't mean to confuse you, sorry if I did. You can navigate to a remote share without mounting it to your file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.