Discussion:
mount.cifs failed to mount smb2-only shares
Kong
2011-06-10 22:26:41 UTC
Permalink
Two problems with smb2-only shares.

client: ubuntu 11.04 32-bit
I moved the original mount.cifs (version 4.5)to mount.cifs.old, and installed
mount.cifs version 5.0.

$ uname -r
2.6.38-8-generic
$ /sbin/mount.cifs -V
mount.cifs version: 5.0
$ /sbin/mount.cifs.old -V
mount.cifs version: 4.5

Server1: windows 2008 64-bit (standalone)
disable smb1 protocol to make it smb2 only (e.g., add reg value smb1 and set it
to 0, restart Lanmanserver service. see
http://blogs.technet.com/b/askperf/archive/2008/05/30/two-minute-drill-overview-of-smb-2-0.aspx)

$ sudo /sbin/mount.cifs -v -o user=user1,pass=XXXX //AA.BB.CC.DD/C$ mnt
mount.cifs kernel mount options:
ip=AA.BB.CC.DD,unc=\\AA.BB.CC.DD\C$,,ver=1,user=user1,pass=********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

syslog:
Jun 10 14:18:26 ubuntu-1104 kernel: [10703.059510] CIFS VFS: cifs_mount failed
w/return code = -112

* before I disabled smb1 on server1, the same command can mount the share of the
same machine successfully.
* same result if I used /sbin/mount.cifs.old.

Server2: Mac OS X 10.7 (LION, Preview 4)
Apple replaces samba with their own smbx which speaks SMB2.

$ sudo /sbin/mount.cifs -v -o user=user2,pass=YYYY //EE.FF.GG.HH/Misc mnt
mount.cifs kernel mount options:
ip=EE.FF.GG.HH,unc=\\EE.FF.GG.HH\Misc,,ver=1,user=user2,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

syslog:
Jun 10 14:27:06 ubuntu-1104 kernel: [11222.340976] CIFS VFS: cifs_mount failed
w/return code = -22

* same result if I used /sbin/mount.cifs.old.
* the same command works with prior version of Mac OS X (which uses Samba).

Any suggestions?

Thanks.

Kong
Steve French
2011-06-11 01:08:51 UTC
Permalink
Hi Steve,
Were you referring to
git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/smb2.git?
the latest entry is "2010-10-27 =A0 =A0 =A0 =A0 Pavel Shilovsky."
There are newer smb2 support patches which incorporate review comments
Hi!
I applied pending smb2 patches on top of current master branch and
http://git.etersoft.ru/people/piastry/packages/?p=3Dcifs-2.6.git;a=3D=
shortlog;h=3Drefs/heads/smb2-dev
I also created another branch smb2-dev-experimental and put three
commits on top of smb2-dev - it makes mount/umount work but after som=
e
http://git.etersoft.ru/people/piastry/packages/?p=3Dcifs-2.6.git;a=3D=
shortlog;h=3Drefs/heads/smb2-dev-experimental
Any thoughts/suggestions are welcome!
Current cifs.ko does not include smb2 support...but pavel recently p=
osted
links to his git tree with updated smb2 patches for testing and revi=
ew.
--=20
Thanks,

Steve

Loading...