Page 1 of 1

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 11:23 am
by itsonlyme
I am trying to mount some windows shares on my Pi. Despite having tried numerous methods I am getting nowhere. Samba is installed on my Pi, but not on my Windows machine.

Presently I am trying the command:-

mount.cifs//192.168.xxx.xxx/documents /mnt/recurring -o

I am getting the response "command not found".

As the files can be seen by "go network places" in the file manager, and I can see pi from my windows machine, there does not appear to be a network problem.

Any help appreciated.

Thanks

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 2:13 pm
by tomtor
Samba allows the other way around. When you add to the end of file /etc/samba/smb.conf eg:

[data]
comment = Data
path = /media/data
browseable = yes
read only = no
guest ok = no

then you can access the directory /media/data on your Pi from windows.

You can try:

sudo apt-get install cifs-utils smbclient smbfs

which installs additional programs needed for client smb.

After that you'll find the file /sbin/mount.cifs, but you'll need kernel module support as well

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 2:29 pm
by Joe Schmoe
Another "YX problem" response from Tor.

To the OP: The error you are getting is "Command not found", which suggests the following possibilities:

1) It looks like there is no space between "mount_cifs" and "//".

2) The usual method is that users don't run any of the "mount_*" commands directly.  You're supposed to just run "mount" and let it figure out which "helper" program to call.

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 2:44 pm
by tomtor
Joe Schmoe said:


Another "YX problem" response from Tor.

To the OP: The error you are getting is "Command not found", which suggests the following possibilities:

1) It looks like there is no space between "mount_cifs" and "//".

2) The usual method is that users don't run any of the "mount_*" commands directly.  You're supposed to just run "mount" and let it figure out which "helper" program to call.



@smart ass Schmoe

The op installed samba on the Pi which installs the programs which act as a samba server on the Pi, not the parts which are needed for acting as a CIFS client.

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 2:47 pm
by linker3000
As Joe says, check that command spacing. Just tried to mount my NAS onto my RPi and it worked first time, no extra apps to load:

mount.cifs //192.168.3.10/data /mnt/nas -o user=linker3000

Also try specifying a valid user name as per the example above.

Re: Mounting Windows Share

Posted: Sun Apr 29, 2012 3:34 pm
by itsonlyme
linker3000 solved the problem. Just needed to amend his command line.

Many thanks for helping me to resolve this basic problem which I have been trying to sort for a few days.