I do not believe that you understood what I said. Since this is DFS it points to at least one share on a different machine, possibly more. You need to check permissions on *all* shares that this namespace points to, not just the one normal share on this one machine. -----Original Message----- From: linux-cifs-owner@xxxxxxxxxxxxxxx [mailto:linux-cifs-owner@xxxxxxxxxxxxxxx] On Behalf Of Javier Martí Monforte Sent: Monday, August 04, 2014 2:32 AM To: linux-cifs@xxxxxxxxxxxxxxx Subject: Re: Mount fileshare with prefixpath [mount error(2): No such file or directory] Hi and thank you to answer, in effect is a DFS in a MS Server, and the log I have attached is for a machine, If I try to mount directly to the DFS sometimes does not work and it has paused with the message: # sudo mount -t cifs \\\\domain.local\\data\\13908 mountPoint -o "username=myUser,uid=489689328,gid=489685505,nounix,noserverino" --verbose Password for myUser@\\domain.local\data\13908: mount.cifs kernel mount options: ip=172.27.194.67,unc=\\domain.local\data,nounix,noserverino,uid=489689328,gid=489685505,user=myUser,prefixpath=13908,pass=******** mount error(115): Operation now in progress Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and sometimes it says: # sudo mount -t cifs \\\\domain.local\\data\\13908 mountPoint -o "username=myUser,uid=489689328,gid=489685505,nounix,noserverino" --verbose Password for myUser@\\domain.local\data\13908: mount.cifs kernel mount options: ip=172.27.194.132,unc=\\domain.local\data,nounix,noserverino,uid=489689328,gid=489685505,user=myUser,prefixpath=13908,pass=******** mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) with the log [244388.448854] /build/buildd/linux-3.2.0/fs/cifs/cifsfs.c: Devname: \\domain.local\data\13908 flags: 0 [244388.448871] /build/buildd/linux-3.2.0/fs/cifs/connect.c: prefix path /13908 [244388.448875] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Username: myUser [244388.448881] /build/buildd/linux-3.2.0/fs/cifs/connect.c: file mode: 0x1ed dir mode: 0x1ed [244388.448954] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 2274 with uid: 0 [244388.448958] /build/buildd/linux-3.2.0/fs/cifs/connect.c: UNC: \\domain.local\data ip: 172.27.194.132 [244388.448977] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Socket created [244388.448981] /build/buildd/linux-3.2.0/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [244388.450494] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 2275 with uid: 0 [244388.450499] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Demultiplex PID: 14419 [244388.450504] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing smb sess not found [244388.450512] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: secFlags 0x7 [244388.450517] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 114 [244388.450521] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 82 [244388.451274] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x79 [244388.451297] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=114 mid=1 state=4 [244388.451302] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Dialect: 2 [244388.451305] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: negprot rc 0 [244388.451309] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Security Mode: 0xf Capabilities: 0x1f3fd TimeAdjust: -7200 [244388.451313] /build/buildd/linux-3.2.0/fs/cifs/sess.c: sess setup type 1 [244388.451341] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 115 [244388.451344] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 252 [244388.453454] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0xcd [244388.453477] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=115 mid=2 state=4 [244388.453482] /build/buildd/linux-3.2.0/fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release [244388.453485] /build/buildd/linux-3.2.0/fs/cifs/sess.c: UID = 2048 [244388.453488] /build/buildd/linux-3.2.0/fs/cifs/sess.c: bleft 163 [244388.453494] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverOS=Windows Server 2003 R2 3790 Service Pack 2 [244388.453498] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverNOS=Windows Server 2003 R2 5.2 [244388.453502] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverDomain=DOMAIN [244388.453506] /build/buildd/linux-3.2.0/fs/cifs/sess.c: ssetup freeing small buf ffff8800a538ca80 [244388.453509] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Session Established successfully [244388.453513] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 2275) rc = 0 [244388.453518] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_tcon as Xid: 2276 with uid: 0 [244388.453523] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 117 [244388.453528] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 108 [244388.454392] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x23 [244388.454404] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=117 mid=3 state=4 [244388.454412] Status code returned 0xc0000257 NT_STATUS_PATH_NOT_COVERED [244388.454417] /build/buildd/linux-3.2.0/fs/cifs/netmisc.c: Mapping smb error code 0xc0000257 to POSIX err -66 [244388.454421] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_tcon (xid = 2276) rc = -66 [244388.454425] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Tcon rc = -66 [244388.454429] /build/buildd/linux-3.2.0/fs/cifs/connect.c: build_unc_path_to_root: full_path=\\domain.local\data\13908 [244388.454435] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 117 [244388.454439] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 98 [244388.455251] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x38 [244388.455272] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=117 mid=4 state=4 [244388.455278] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Tcon rc = 0 ipc_tid = 38912 [244388.455281] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In GetDFSRefer the path \domain.local\data [244388.455286] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.455290] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 126 [244388.456159] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x134 [244388.456170] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=5 state=4 [244388.456178] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Decoding GetDFSRefer response BCC: 253 Offset 56 [244388.456183] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: num_referrals: 2 dfs flags: 0x3 ... [244388.456185] [244388.456202] /build/buildd/linux-3.2.0/fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: resolved: SIIS073522 to 172.27.194.65 [244388.456221] /build/buildd/linux-3.2.0/fs/cifs/connect.c: prefix path /\13908 [244388.456225] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Username: myUser [244388.456230] /build/buildd/linux-3.2.0/fs/cifs/connect.c: cifs_put_smb_ses: ses_count=1 [244388.456232] [244388.456235] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_put_smb_ses as Xid: 2277 with uid: 0 [244388.456240] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In SMBLogoff for session disconnect [244388.456245] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 116 [244388.456249] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 43 [244388.457139] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x27 [244388.457160] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=116 mid=6 state=4 [244388.457176] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 2274) rc = -66 [244388.457180] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 2278 with uid: 0 [244388.457184] /build/buildd/linux-3.2.0/fs/cifs/connect.c: UNC: \\SIIS073522\data ip: 172.27.194.65 [244388.457195] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Socket created [244388.457199] /build/buildd/linux-3.2.0/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 [244388.458594] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 2279 with uid: 0 [244388.458598] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Demultiplex PID: 14420 [244388.458602] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing smb sess not found [244388.458608] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: secFlags 0x7 [244388.458611] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 114 [244388.458614] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 82 [244388.459483] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x7b [244388.459495] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=114 mid=1 state=4 [244388.459499] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Dialect: 2 [244388.459502] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: negprot rc 0 [244388.459506] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Security Mode: 0xf Capabilities: 0x1f3fd TimeAdjust: -7200 [244388.459509] /build/buildd/linux-3.2.0/fs/cifs/sess.c: sess setup type 1 [244388.459530] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 115 [244388.459533] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 252 [244388.462417] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0xcd [244388.462451] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=115 mid=2 state=4 [244388.462455] /build/buildd/linux-3.2.0/fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release [244388.462459] /build/buildd/linux-3.2.0/fs/cifs/sess.c: UID = 20482 [244388.462462] /build/buildd/linux-3.2.0/fs/cifs/sess.c: bleft 163 [244388.462468] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverOS=Windows Server 2003 R2 3790 Service Pack 2 [244388.462473] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverNOS=Windows Server 2003 R2 5.2 [244388.462477] /build/buildd/linux-3.2.0/fs/cifs/sess.c: serverDomain=DOMAIN [244388.462481] /build/buildd/linux-3.2.0/fs/cifs/sess.c: ssetup freeing small buf ffff8800a64f9c00 [244388.462484] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Session Established successfully [244388.462488] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 2279) rc = 0 [244388.462493] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_tcon as Xid: 2280 with uid: 0 [244388.462501] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 117 [244388.462507] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 92 [244388.463490] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x3e [244388.463501] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=117 mid=3 state=4 [244388.463507] /build/buildd/linux-3.2.0/fs/cifs/connect.c: disk share connection [244388.463511] /build/buildd/linux-3.2.0/fs/cifs/connect.c: nativeFileSystem=NTFS [244388.463514] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Tcon flags: 0x3 [244388.463517] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_tcon (xid = 2280) rc = 0 [244388.463520] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Tcon rc = 0 [244388.463524] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSDeviceInfo [244388.463528] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.463532] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 72 [244388.464887] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x40 [244388.464898] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=4 state=4 [244388.464905] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSAttributeInfo [244388.464909] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.464913] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 72 [244388.465616] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4c [244388.465626] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=5 state=4 [244388.465636] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.465640] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 128 [244388.466502] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x23 [244388.466507] /build/buildd/linux-3.2.0/fs/cifs/connect.c: invalid transact2 word count [244388.466514] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=6 state=4 [244388.466522] Status code returned 0xc0000257 NT_STATUS_PATH_NOT_COVERED [244388.466526] /build/buildd/linux-3.2.0/fs/cifs/netmisc.c: Mapping smb error code 0xc0000257 to POSIX err -66 [244388.466530] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Send error in QPathInfo = -66 [244388.466534] /build/buildd/linux-3.2.0/fs/cifs/connect.c: build_unc_path_to_root: full_path=\\SIIS073522\data\\13908 [244388.466539] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 117 [244388.466543] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 96 [244388.467249] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x38 [244388.467259] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=117 mid=7 state=4 [244388.467265] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS Tcon rc = 0 ipc_tid = 12289 [244388.467269] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In GetDFSRefer the path \SIIS073522\data\\13908 [244388.467273] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.467277] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 124 [244388.468784] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x11c [244388.468797] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=8 state=4 [244388.468805] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Decoding GetDFSRefer response BCC: 229 Offset 56 [244388.468809] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: num_referrals: 1 dfs flags: 0x2 ... [244388.468811] [244388.468827] /build/buildd/linux-3.2.0/fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: resolved: machine1.domain.local to 172.27.194.152 [244388.468849] /build/buildd/linux-3.2.0/fs/cifs/connect.c: prefix path /13908 [244388.468852] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Username: myUser [244388.468856] /build/buildd/linux-3.2.0/fs/cifs/connect.c: cifs_put_tcon: tc_count=1 [244388.468858] [244388.468861] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_put_tcon as Xid: 2281 with uid: 0 [244388.468864] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In tree disconnect [244388.468868] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 113 [244388.468872] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 39 [244388.469694] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x23 [244388.469704] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=113 mid=9 state=4 [244388.469710] /build/buildd/linux-3.2.0/fs/cifs/connect.c: cifs_put_smb_ses: ses_count=1 [244388.469712] [244388.469715] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_put_smb_ses as Xid: 2282 with uid: 0 [244388.469718] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In SMBLogoff for session disconnect [244388.469722] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 116 [244388.469726] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 43 [244388.470707] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x27 [244388.470717] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=116 mid=10 state=4 [244388.470732] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 2278) rc = 0 [244388.470736] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 2283 with uid: 0 [244388.470739] /build/buildd/linux-3.2.0/fs/cifs/connect.c: UNC: \\domain.local\data ip: 172.27.194.152 [244388.470744] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing tcp session with server found [244388.470748] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 2284 with uid: 0 [244388.470752] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing smb sess found (status=1) [244388.470756] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 2284) rc = 0 [244388.470759] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Found match on UNC path [244388.470762] /build/buildd/linux-3.2.0/fs/cifs/connect.c: cifs_put_smb_ses: ses_count=2 [244388.470764] [244388.470766] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSDeviceInfo [244388.470770] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.470774] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 72 [244388.471570] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4a [244388.471594] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=3684 state=4 [244388.471601] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSAttributeInfo [244388.471605] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.471608] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 72 [244388.472495] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4c [244388.472510] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=3685 state=4 [244388.472519] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.472523] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 164 [244388.473273] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0xdc [244388.473807] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=3686 state=4 [244388.473814] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 2283) rc = 0 [244388.473822] /build/buildd/linux-3.2.0/fs/cifs/cifsfs.c: Use existing superblock [244388.473828] /build/buildd/linux-3.2.0/fs/cifs/connect.c: cifs_put_tcon: tc_count=2 [244388.473830] [244388.473929] /build/buildd/linux-3.2.0/fs/cifs/cifsfs.c: Get root dentry for \\machine1.domain.local\data\13908 [244388.473939] /build/buildd/linux-3.2.0/fs/cifs/dir.c: CIFS VFS: in cifs_lookup as Xid: 2285 with uid: 0 [244388.473944] /build/buildd/linux-3.2.0/fs/cifs/dir.c: parent inode = 0xffff88006c498070 name is: machine1.domain.local and dentry = 0xffff8800566ae000 [244388.473949] /build/buildd/linux-3.2.0/fs/cifs/dir.c: NULL inode in lookup [244388.473952] /build/buildd/linux-3.2.0/fs/cifs/dir.c: Full path: \\machine1.domain.local\data\machine1.domain.local inode = 0x (null) [244388.473957] /build/buildd/linux-3.2.0/fs/cifs/inode.c: Getting info on \\machine1.domain.local\data\machine1.domain.local [244388.473964] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 [244388.473967] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending smb: total_len 212 [244388.474865] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x23 [244388.474872] /build/buildd/linux-3.2.0/fs/cifs/connect.c: invalid transact2 word count [244388.474884] /build/buildd/linux-3.2.0/fs/cifs/transport.c: cifs_sync_mid_result: cmd=50 mid=3687 state=4 [244388.474888] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND [244388.474894] /build/buildd/linux-3.2.0/fs/cifs/netmisc.c: Mapping smb error code 0xc0000034 to POSIX err -2 [244388.474898] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Send error in QPathInfo = -2 [244388.474903] /build/buildd/linux-3.2.0/fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 2285) rc = 0 The folder \\domain.local\data exists with permissions for the user and the folder \\domain.local\data\13908 also with permissions, in fact if I use: # sudo mount -t cifs \\\\domain.local\\data mountPoint -o "username=myUser,uid=489689328,gid=489685505,nounix,noserverino" --verbose It works and I can navigate to mountpoint/13908 without problems. -Javier Martí El 01/08/14 a las #4, Bob Balsover escribió: > Hello Javier, > > It is not the cause of your problem but if you are connecting to a MS server add nounix and noserverino to the command line to remove some of the messages from your log, I believe Unix type extensions are not applicable to MS servers and I found that I cannot mount an Apple SMB/X share without them on the command line. > > I am working with an older kernel so my suggestions might be a little out of date. I see your code returning from cifs_mount multiple times with rc=0 which would indicate a successful mount. I only see your command line parameters once with multiple calls to cifs_mount so is this a DFS share? If this is a DFS share did you compile in DFS support? A problem that I have seen is that while the username/password used on the server that holds the namespace might be valid, the server that you are referred to may not recognize that user and it causes problems. If this is DFS then try mounting all of the servers that it might be referred to directly and see if you are successful. I have also seen a problem where the MS server that holds the namespace supports one type of sec= setting, the server that it refers you to supports a different setting and the mount will fail. ie. In my case it was a MS server using sec=ntlmsspi, referred server which is an old NAS running Linux using sec=ntlm (the default). The setting on the namespace server and the referred server must match when using mount.cifs. > > In the case of a normal share it might also be the case that the user does not have adequate permissions for both the directory and the sub directory, if the user can't read the parent directory then they probably can't see the subdirectory but that is just a guess. > > -Bob > > -----Original Message----- > From: linux-cifs-owner@xxxxxxxxxxxxxxx > [mailto:linux-cifs-owner@xxxxxxxxxxxxxxx] On Behalf Of Javier Martí > Monforte > Sent: Friday, August 01, 2014 1:43 AM > To: linux-cifs@xxxxxxxxxxxxxxx > Subject: Mount fileshare with prefixpath [mount error(2): No such file > or directory] > > Hello list, > > I have a problem with mounting a cifs share with prefix path, I run > ubuntu 12.04 Precise Pangolin and I have updated mount.cifs package to > cifs-utils Version: 2:6.0-1ubuntu2 > > The command: > # sudo mount -t cifs \\\\machine.server.es\\datos\\13908 > /home/myuser/mountpoint -o "username=myuser,uid=489689328,gid=489685505" > --verbose > > mount.cifs kernel mount options: > ip=172.27.194.152,unc=\\machine.server.es\datos,uid=489689328,gid=4896 > 85505,user=d24399776l,prefixpath=13908,pass=******** > mount error(2): No such file or directory Refer to the mount.cifs(8) > manual page (e.g. man mount.cifs) > > > The results: > > # uname -r > 3.2.0-67-generic > > # mount.cifs -V > mount.cifs version: 6.0 > > And a dmesg with debugging activated: > > [72758.230822] /build/buildd/linux-3.2.0/fs/cifs/cifsfs.c: Devname: > \\machine.server.es\datos\13908 flags: 0 [72758.230835] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: prefix path > /13908 > [72758.230839] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Username: > d24399776l > [72758.230845] /build/buildd/linux-3.2.0/fs/cifs/connect.c: file mode: > 0x1ed dir mode: 0x1ed > [72758.230918] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 2668 with uid: 0 [72758.230922] /build/buildd/linux-3.2.0/fs/cifs/connect.c: UNC: > \\machine.server.es\datos ip: 172.27.194.152 [72758.230928] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing tcp session with server found [72758.230932] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 2669 with uid: 0 [72758.230936] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing smb sess found (status=1) [72758.230940] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: > leaving cifs_get_smb_ses (xid = 2669) rc = 0 [72758.230944] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Found match on UNC path [72758.230947] /build/buildd/linux-3.2.0/fs/cifs/connect.c: > cifs_put_smb_ses: ses_count=2 > [72758.230949] > [72758.230951] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In > QFSDeviceInfo [72758.230958] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 > [72758.230962] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 72 > [72758.231651] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4a [72758.231682] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=137 state=4 [72758.231688] > /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSAttributeInfo > [72758.231692] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For > smb_command 50 [72758.231696] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 72 > [72758.232463] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4c [72758.232485] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=138 state=4 [72758.232492] /build/buildd/linux-3.2.0/fs/cifs/connect.c: > build_unc_path_to_root: full_path=\\machine.server.es\datos\13908 > [72758.232520] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In > GetDFSRefer the path \machine.server.es\datos [72758.232527] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 > [72758.232530] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 148 > [72758.233686] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x140 [72758.233709] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=139 state=4 [72758.233714] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Decoding GetDFSRefer response BCC: 265 Offset 56 [72758.233718] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: > num_referrals: 1 dfs flags: 0x3 ... > [72758.233720] > [72758.233736] /build/buildd/linux-3.2.0/fs/cifs/dns_resolve.c: > dns_resolve_server_name_to_ip: resolved: machine.server.es to > 172.27.194.152 [72758.233752] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: prefix path > /\13908 > [72758.233755] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Username: > d24399776l > [72758.233758] /build/buildd/linux-3.2.0/fs/cifs/connect.c: > cifs_put_tcon: tc_count=2 > [72758.233760] > [72758.233763] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: > leaving cifs_mount (xid = 2668) rc = 0 [72758.233767] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 2670 with uid: 0 [72758.233770] /build/buildd/linux-3.2.0/fs/cifs/connect.c: UNC: > \\machine.server.es\datos ip: 172.27.194.152 [72758.233774] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing tcp session with server found [72758.233778] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 2671 with uid: 0 [72758.233782] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Existing smb sess found (status=1) [72758.233785] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: > leaving cifs_get_smb_ses (xid = 2671) rc = 0 [72758.233789] /build/buildd/linux-3.2.0/fs/cifs/connect.c: Found match on UNC path [72758.233791] /build/buildd/linux-3.2.0/fs/cifs/connect.c: > cifs_put_smb_ses: ses_count=2 > [72758.233793] > [72758.233795] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In > QFSDeviceInfo [72758.233799] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 > [72758.233802] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 72 > [72758.234429] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4a [72758.234443] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=140 state=4 [72758.234448] > /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In QFSAttributeInfo > [72758.234452] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For > smb_command 50 [72758.234455] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 72 > [72758.235508] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x4c [72758.235521] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=141 state=4 [72758.235528] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: For smb_command 50 > [72758.235532] /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 166 > [72758.236337] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0xde [72758.236358] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=142 state=4 [72758.236366] /build/buildd/linux-3.2.0/fs/cifs/connect.c: CIFS VFS: > leaving cifs_mount (xid = 2670) rc = 0 [72758.236382] > /build/buildd/linux-3.2.0/fs/cifs/inode.c: CIFS VFS: in cifs_root_iget > as Xid: 2672 with uid: 0 [72758.236385] > /build/buildd/linux-3.2.0/fs/cifs/inode.c: Getting info on > [72758.236389] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For > smb_command 50 [72758.236392] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 78 > [72758.237078] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 header 0x86 [72758.237092] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=143 state=4 [72758.237098] > /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: In GetSrvInodeNum for > [72758.237102] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For > smb_command 50 [72758.237105] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 78 > [72758.237773] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 > header 0x23 [72758.237778] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: invalid > transact2 word count > [72758.237789] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=144 state=4 [72758.237792] Status code returned 0xc0000001 NT_STATUS_UNSUCCESSFUL [72758.237798] /build/buildd/linux-3.2.0/fs/cifs/netmisc.c: Mapping smb error code 0xc0000001 to POSIX err -5 [72758.237802] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: error -5 in QueryInternalInfo [72758.237805] /build/buildd/linux-3.2.0/fs/cifs/inode.c: GetSrvInodeNum rc -5 [72758.237809] CIFS VFS: Autodisabling the use of server inode numbers on \\machine.server.es\datos. This server doesn't seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the "noserverino" option to silence this message. > [72758.237815] /build/buildd/linux-3.2.0/fs/cifs/inode.c: looking for > uniqueid=7310 > [72758.237821] /build/buildd/linux-3.2.0/fs/cifs/inode.c: > cifs_revalidate_cache: revalidating inode 7310 [72758.237824] /build/buildd/linux-3.2.0/fs/cifs/inode.c: > cifs_revalidate_cache: inode 7310 is new [72758.237828] > /build/buildd/linux-3.2.0/fs/cifs/inode.c: inode > 0xffff880072b4ad10 old_time=0 new_time=4313081855 [72758.237834] > /build/buildd/linux-3.2.0/fs/cifs/cifsfs.c: Get root dentry for > \\machine.server.es\datos\\13908 [72758.237840] > /build/buildd/linux-3.2.0/fs/cifs/dir.c: CIFS VFS: in cifs_lookup as > Xid: 2673 with uid: 0 [72758.237844] > /build/buildd/linux-3.2.0/fs/cifs/dir.c: parent inode = > 0xffff880072b4ad10 name is: machine.server.es and dentry = > 0xffff8800a3f59900 > [72758.237849] /build/buildd/linux-3.2.0/fs/cifs/dir.c: NULL inode in lookup [72758.237853] /build/buildd/linux-3.2.0/fs/cifs/dir.c: Full path: > \\machine.server.es\datos\machine.server.es inode = 0x (null) > [72758.237857] /build/buildd/linux-3.2.0/fs/cifs/inode.c: Getting info > on \\machine.server.es\datos\machine.server.es > [72758.237863] /build/buildd/linux-3.2.0/fs/cifs/transport.c: For > smb_command 50 [72758.237866] > /build/buildd/linux-3.2.0/fs/cifs/transport.c: Sending > smb: total_len 212 > [72758.238723] /build/buildd/linux-3.2.0/fs/cifs/connect.c: RFC1002 > header 0x23 [72758.238728] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: invalid > transact2 word count > [72758.238738] /build/buildd/linux-3.2.0/fs/cifs/transport.c: > cifs_sync_mid_result: cmd=50 mid=145 state=4 [72758.238742] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND [72758.238747] /build/buildd/linux-3.2.0/fs/cifs/netmisc.c: Mapping smb error code 0xc0000034 to POSIX err -2 [72758.238751] /build/buildd/linux-3.2.0/fs/cifs/cifssmb.c: Send error in QPathInfo = -2 [72758.238755] /build/buildd/linux-3.2.0/fs/cifs/dir.c: CIFS VFS: > leaving cifs_lookup (xid = 2673) rc = 0 [72758.238844] > /build/buildd/linux-3.2.0/fs/cifs/connect.c: > cifs_put_tcon: tc_count=2 > [72758.238846] > > Anyone can help? > > Thank you > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" > in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo > info at http://vger.kernel.org/majordomo-info.html > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" > in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo > info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html