Yesterday I upgraded to 5.14 to have samba shares. And it works just fine with Windows clients. But I can't to mount that shares in Linux (Ubuntu if that matters). Funny thing is that smbclient works, but mount -t cifs not. It looks like this:
Smbclient
Code: Select all
# smbclient -U alchemyx \\\\<hostname>\\archiwum <password>
Domain=[MSHOME] OS=[Unix] Server=[MikrotikSMB]
smb: \> ls
. D 0 Fri Apr 20 14:00:48 2012
.. D 0 Thu Apr 19 21:13:13 2012
ZSI-2.1-a1.tar.gz 932958 Fri Apr 20 14:00:48 2012
15552 blocks of size 4096. 19929 blocks available
Code: Select all
# mount -t cifs -ouser=alchemyx,password=<password> \\\\<hostname>\\archiwum\\ /mnt/ --verbosemount.cifs
kernel mount options: ip=<ip>,unc=\\<hostname>\archiwum,,ver=1,user=alchemyx,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
# dmesg -
[114456.139775] /build/buildd/linux-3.0.0/fs/cifs/cifsfs.c: Devname: \\<hostname>\archiwum\ flags: 0
[114456.139781] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Username: alchemyx
[114456.139785] /build/buildd/linux-3.0.0/fs/cifs/connect.c: file mode: 0x1ed dir mode: 0x1ed
[114456.139841] /build/buildd/linux-3.0.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 156 with uid: 0
[114456.139843] /build/buildd/linux-3.0.0/fs/cifs/connect.c: UNC: \\<hostname>\archiwum ip: <ip>
[114456.139858] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Socket created
[114456.139859] /build/buildd/linux-3.0.0/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[114456.140375] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Error -111 connecting to server
[114456.140385] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Socket created
[114456.140387] /build/buildd/linux-3.0.0/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6
[114456.140807] /build/buildd/linux-3.0.0/fs/cifs/transport.c: Sending smb: total_len 72
[114456.142860] /build/buildd/linux-3.0.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 157 with uid: 0
[114456.142865] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Demultiplex PID: 1239
[114456.142869] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Existing smb sess not found
[114456.142874] /build/buildd/linux-3.0.0/fs/cifs/connect.c: rfc1002 length 0x82000004
[114456.142877] /build/buildd/linux-3.0.0/fs/cifs/cifssmb.c: secFlags 0x7
[114456.142880] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Good RFC 1002 session rsp
[114456.142883] /build/buildd/linux-3.0.0/fs/cifs/transport.c: For smb_command 114
[114456.142886] /build/buildd/linux-3.0.0/fs/cifs/transport.c: Sending smb: total_len 82
[114456.143825] /build/buildd/linux-3.0.0/fs/cifs/connect.c: rfc1002 length 0x51
[114456.143836] /build/buildd/linux-3.0.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=114 mid=1 state=4
[114456.143841] /build/buildd/linux-3.0.0/fs/cifs/cifssmb.c: Dialect: 2
[114456.143844] /build/buildd/linux-3.0.0/fs/cifs/cifssmb.c: negprot rc 0
[114456.143848] /build/buildd/linux-3.0.0/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x258 TimeAdjust: 10800
[114456.143852] /build/buildd/linux-3.0.0/fs/cifs/sess.c: sess setup type 1
[114456.143881] /build/buildd/linux-3.0.0/fs/cifs/transport.c: For smb_command 115
[114456.143885] /build/buildd/linux-3.0.0/fs/cifs/transport.c: Sending smb: total_len 180
[114456.144849] /build/buildd/linux-3.0.0/fs/cifs/connect.c: rfc1002 length 0x27
[114456.144862] /build/buildd/linux-3.0.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=115 mid=2 state=4
[114456.144867] Status code returned 0xc000000d NT_STATUS_INVALID_PARAMETER
[114456.144872] /build/buildd/linux-3.0.0/fs/cifs/netmisc.c: Mapping smb error code 0xc000000d to POSIX err -22
[114456.144876] /build/buildd/linux-3.0.0/fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[114456.144880] /build/buildd/linux-3.0.0/fs/cifs/sess.c: ssetup freeing small buf ffff8800879b68c0
[114456.144884] CIFS VFS: Send error in SessSetup = -22
[114456.144888] /build/buildd/linux-3.0.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 157) rc = -22
[114456.160068] /build/buildd/linux-3.0.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 156) rc = -22
[114456.160071] CIFS VFS: cifs_mount failed w/return code = -22