WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PiCore 6 Release SSH (3.12.36-piCore+ kernel) Mount CIFS share not working  (Read 4187 times)

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Hi Everyone.

Have successfully installed PiCore 6 Release SSH on my Model A+ with Wifi and samba fileserver.

However, I cannot seem to use CIFS shares.

I have cifs-utils loaded
I have tried filesystems-3.12.36-piCore+.tcz
I have tried filesystems-3.18.10-piCore+.tcz
I have tried filesystems-3.18.6-piCore+.tcz
I have tried filesystems-3.18.9-piCore+.tcz

Closest I have come is loading filesystems-3.12.36-piCore+.tcz, which throws error in dmesg:

[ 3526.845055] CIFS VFS: mdfour: Crypto md4 allocation error -2
[ 3526.845088] CIFS VFS: Error -2 during NTLM authentication
[ 3526.845125] CIFS VFS: Send error in SessSetup = -2
[ 3526.845579] CIFS VFS: cifs_mount failed w/return code = -2


Command I'm using is:

mount.cifs //192.168.0.1/e$ /mnt/shared1 -o user=*******,pass=*****,dom=*****,sec=ntlm


I've also tried various sec= settings

but nothing works.....?

Help!

Cheers,

Glenn.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Is it a Linux Samba or Windows share?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Hi sixgunz
Maybe it doesn't like the $ sign. What happens with:
Code: [Select]
mount.cifs //192.168.0.1/e\$ /mnt/shared1 -o user=*******,pass=*****,dom=*****,sec=ntlmor:
Code: [Select]
mount.cifs "//192.168.0.1/e$" /mnt/shared1 -o user=*******,pass=*****,dom=*****,sec=ntlm

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
You can't mount hidden Windows shares (ending with $), only regular shares. For example my Windows machines shares:

Code: [Select]
Domain=[WIN7DESKTOP] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      TA!vfelA1gyelet
        C               Disk
        C$              Disk      AlapA©rtelmezett megosztA!s
        D$              Disk      AlapA©rtelmezett megosztA!s
        F$              Disk      AlapA©rtelmezett megosztA!s
        IPC$            IPC       TA!voli IPC
        Users           Disk

Only C and Users are mountable, which are enabled manually. Open Windows Explorer and go to network to check mountable shares.

Command to mount Users dir to /1 is

Code: [Select]
sudo mount.cifs -o username=xxxxx,password=xxxxx //192.168.0.100/Users /1
Works with RPi2 and a standalone WIN7 desktop PC. Mount command may be different in a more compex Win environment with different authentication than simple login/password. But it is not TC specific.
« Last Edit: June 10, 2015, 03:15:21 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Hi Béla and Rich!

Thank you both very much for your replies!

Rich - have tried your solution of adding the slash, but that has no effect - still the same error.

Béla - The share is a windows share.  I have tried also mounting to a visible share, but again, still same error

Funny thing is I am also using tinycore on a virtual x86 machine through virtualbox and that has no problems in accessing the very same hidden shares.....?

The tcz I am using for that is "filesystems-3.16.6-tinycore.tcz" with the latest tinycore x86

I noted in another forum that there were some extra modules needed to make cifs work:

http://forum.tinycorelinux.net/index.php?topic=16151.0

Are they included in the final 6.0 release of picore?

I have done an lsmod and the cifs module is loaded but not the mentioned others....?

Cheers,

Glenn.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Glenn

I'm using piCore-6.1beta1 it is worth to try. I can connect to both WIN7 and Samba shares. Also tried mounting WIN7 shares using a CentOS-7.1 box, result is exactly the same as in piCore.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Hi guys. Have installed 6.1 beta and all is working fine now apart from persistency setting. Were automatically set to install on second partition but 6.1 defaults to cloud mode installing modules in top alongside the loop folders....

Sent from my SM-N9005 using Tapatalk