[Samba] Cannot mount a remote volume after system upgrade

Jeremy Allison jra at samba.org
Mon Jun 9 17:47:49 MDT 2014


On Mon, Jun 09, 2014 at 04:19:03PM -0700, James Moe wrote:
> On 06/09/2014 12:28 PM, Günter Kukkukk wrote:
> 
>   I tried adding the "ip" and "port" options. It made no difference; it
> fails to mount.
> 
> >
> > echo 7 > /proc/fs/cifs/cifsFYI
> > This enables the highest cifs module debug level, which you then can watch (during mount) with
> >    tail -f /var/log/messages
> > 
>   Here is an excerpt of the trace; I have the complete trace if you
> would like to see that.
> 
> .../connect.c: build_unc_path_to_root: full_path=\\sma-server1\pub-data
> .../transport.c: For smb_command 117
> .../transport.c: Sending smb: smb_len=72
> .../connect.c: RFC1002 header 0x2d
> .../misc.c: checkSMB Length: 0x31, smb_buf_length: 0x2d
> .../transport.c: cifs_sync_mid_result: cmd=117 mid=4 state=4
> .../connect.c: Tcon rc = 0 ipc_tid = 33
> .../cifssmb.c: In GetDFSRefer the path \sma-server1\pub-data
> .../transport.c: For smb_command 50
> .../transport.c: Sending smb: smb_len=92
> .../connect.c: RFC1002 header 0x21
> 
> .../misc.c: checkSMB Length: 0x25, smb_buf_length: 0x21
> .../smb1ops.c: invalid transact2 word count
> 
> .../transport.c: cifs_sync_mid_result: cmd=50 mid=5 state=4
> .../netmisc.c: Mapping smb error code 0x10002 to POSIX err -5
> .../cifssmb.c: Send error in GetDFSRefer = -5
> 
> This corresponds with the Wireshark trace excerpt:
> 
> 192.168.69.249	192.168.69.115 SMB Tree Connect AndX Response
> 192.168.69.115	192.168.69.249 SMB Trans2 Request, GET_DFS_REFERRAL,
> File: \sma-server1\pub-data
> 192.168.69.249	192.168.69.115 SMB Trans2 Response,
> GET_DFS_REFERRAL[Malformed Packet]
> 192.168.69.115	192.168.69.249 SMB Logoff AndX Request
> 
>   However, I do not really have a clue what to infer from the above.
> There appears to be a level of error checking in the newer version of
> SMB that did not exist in samba v3.6.3.

OS/2 totally doesn't know *anything* about DFS referrals :-).

If you can stop the client doing that it might help.

Jeremy.


More information about the samba mailing list