LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-08-2010, 11:48 AM   #1
knighttof3
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
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?
 
Old 01-08-2010, 12:17 PM   #2
lbutler
LQ Newbie
 
Registered: Feb 2007
Location: Edinburgh, UK
Distribution: debian gnu/linux lenny
Posts: 6

Rep: Reputation: 0
Please post the output of mount.

The filesystem should be mounted under /media. Have you tried the command
ls -l /media to see if it is there?
 
Old 01-08-2010, 12:23 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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:

Quote:
//i-think/Pictures /mnt/Pictures cifs username=% 0 0
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.
 
Old 01-08-2010, 02:55 PM   #4
knighttof3
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lbutler View Post
Please post the output of mount.

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)

$ ls -l /media
total 10
lrwxrwxrwx 1 root root 6 2010-01-04 05:06 cdrom -> cdrom0/
drwxr-xr-x 2 root root 4096 2010-01-04 05:06 cdrom0/
dr-xr-xr-x 1 root root 2048 2010-01-04 16:23 cdrom1/
lrwxrwxrwx 1 root root 7 2010-01-04 05:06 floppy -> floppy0/
drwxr-xr-x 2 root root 4096 2010-01-04 05:06 floppy0/
 
Old 01-08-2010, 03:00 PM   #5
knighttof3
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by camorri View Post
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?
 
Old 01-08-2010, 03:06 PM   #6
knighttof3
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knighttof3 View Post
$ mount

gvfs-fuse-daemon on /home/knighttof3/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=knighttof3)
D'oh!
That's it. Eyes completely skipped over this line until now.
 
Old 01-08-2010, 03:40 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,229

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
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.

The output of mount will show mounts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
mount.cifs credentials=/path-to-passwd-file not parsing xxx_anuj_xxx Linux - Server 1 11-10-2009 03:44 AM
Mounting CIFS share causes the mount point to be destroyed kenneho Linux - Server 13 06-19-2009 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration