itsonlyme
Posts: 131
Joined: Sun Feb 12, 2012 12:43 pm

Re: Mounting Windows Share

Sun Apr 29, 2012 11:23 am

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

tomtor
Posts: 44
Joined: Sun Apr 08, 2012 2:19 am
Contact: Website

Re: Mounting Windows Share

Sun Apr 29, 2012 2:13 pm

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

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Mounting Windows Share

Sun Apr 29, 2012 2:29 pm

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.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

tomtor
Posts: 44
Joined: Sun Apr 08, 2012 2:19 am
Contact: Website

Re: Mounting Windows Share

Sun Apr 29, 2012 2:44 pm

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.

linker3000
Posts: 62
Joined: Thu Mar 08, 2012 1:41 pm

Re: Mounting Windows Share

Sun Apr 29, 2012 2:47 pm

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.

itsonlyme
Posts: 131
Joined: Sun Feb 12, 2012 12:43 pm

Re: Mounting Windows Share

Sun Apr 29, 2012 3:34 pm

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.

Return to “Beginners”