I am trying to mount a share (D$) from Debian (running inside Hyper-V) on my Windows 8 computer, using the following command:

sudo mount -v -t cifs //$ /media/d -ocredentials=/home/emi.smbcredentials,sec=ntml

However, the command fails with the following output:

enter image description here

The share works fine from other computers, username/password/domain are correctly set and network connectivity is there. Additionally, I can see the following in the Windows Event Log:

enter image description here

In the kernel log on Debian, I can see the following errors:

Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13

What would be the right approach to find the issue here?

2 Answers 2


Only admins can access disk hidden shares. Try to share again volume D on the windows box using sharename "diskd" or similar, add permissions for user emi to the share and retry to connect to the new share from linux. Check for ntfs permissions too. Only share permission are not enough to read shared directories.

  • I'll try, thanks. "emi" is in group Administrators, however.
    – Emiswelt
    Dec 24, 2014 at 22:13

See if it is an encryption issue, try Set-SmbServerConfiguration -EncryptData 0

(with this as 1 on my windows server I get identical errors on a synology trying to mount a windows CIFS share)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.