Forum
CIFS mount problems - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Testing & Experimental (/forum-21.html)
+--- Thread: CIFS mount problems (/thread-1643.html)



CIFS mount problems - Darkguy - 29th Oct, 2013 08:51 AM

Hey,

I'm currently using Beta2 with the 3.10.12 Kernel and have a problem mounting CIFS shares from a Windows 7 machine on my network from the shell. The same mount works fine from within XBMC.

Terminal
sudo mount -t cifs //192.168.0.1/MyShare /media/myshare -o username=MyUser,password=MyPass

results in:

Terminal
Unable to find suitable address.

I did create /media/MyShare before; also, once the command fails, the /media/MyShare folder also is gone and has to be re-created.

I also tried adding ,sec=ntlm to the -o parameter, since I read on the RaspBMC forums that there was an issue with NTLMv2 and the 3.10 Kernel.

Also, /var/log/samba/log.smbd features these lines:

Code:
[2013/10/28 23:07:43,  0] smbd/server.c:1053(main)
  smbd version 3.6.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/10/28 23:07:43.405712,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/10/28 23:07:43.408496,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

I've read that "Unable to find suitable address." actually might be a problem with the Samba server, not the client and might have to do with CUPS not able to start, so maybe these messages and being unable to mount CIFS shares might be related?

Also on a side note, I used vpnc to connect to a Cisco VPN and mounted a share on the remote network using the same command, and it worked like a charm - so maybe the problem involves mounting shares on Windows 7 and some sort of NTLM security/handshake issue?

Would be great if somebody solved this and knows of a solution!


RE: CIFS mount problems - IriDium - 30th Oct, 2013 03:41 AM

I do remember a problem with permissions causing a problem with Windows 7 and XBMC, it may not be the answer but it is worth checking.


RE: CIFS mount problems - Darkguy - 30th Oct, 2013 08:02 PM

Well, the mount works from within XBMC, just not from the mount command in the underlying shell.


RE: CIFS mount problems - mk01 - 31st Oct, 2013 01:07 PM

@Darkguy

I'm able to mount cifs from windows 7 (no homegroup) as :

Code:
mount -t cifs \\\\IVKA57WW\\Users\\username /mnt/tmp/ -o username=username,nounix,sec=ntlm,ip=192.168.1.106

if it doesn't work (nounix is only difference to your tries), can you install this kernel (http://xbian.brantje.com/devel/others/xbian-package-kernel1.3-6.deb) and try again?
Code:
sudo -i
cd /tmp
wget http://xbian.brantje.com/devel/others/xbian-package-kernel1.3-6.deb
dpkg -i xbian-package-kernel1.3-6.deb

you can revert to previous one with
Code:
sudo -i
apt-get install --reinstall xbian-package-kernel=1.3-5.5

(this assumes you have Beta2 installed)


AW: CIFS mount problems - Darkguy - 2nd Nov, 2013 05:45 PM

Thanks, it works now! Also, I probably was being an idiot all along and think I might have been using the wrong IP during mount (for some reason mixed it up with one the laptop used to have years ago).