CIFS Mount Failed With Return Code: Causes and Fixes
-13 means Linux received a permission-denied result while mounting a CIFS/SMB share; -115 means “Operation now in progress,” usually because a connection attempt has not completed cleanly. The final CIFS VFS: cifs_mount failed w/return code line is a Linux-side summary, not the full reason for the failure. Read the earlier kernel messages, test the share with a protected credentials file, and only then make the mount persistent.
Use this table to match the error pattern to the next action.
| Symptom or Log Message | Likely Cause | Best Next Action |
|---|---|---|
mount error(13): Permission denied |
Bad username, password, or domain; account lacks access to the share | Check the kernel log for an SMB status, then use separate username=, password=, and domain= fields in a credentials file |
NT_STATUS_LOGON_FAILURE or Send error in SessSetup |
Authentication failed before the share was opened | Correct the account, password, and domain or identity provider configuration |
CIFS Tcon rc = -13 |
Login may have succeeded, but the user cannot access the requested share | Verify the share name and server-side share and filesystem permissions |
mount error(115): Operation now in progress |
Connection setup is incomplete, stalled, or being handled asynchronously | Check name resolution, routing, firewall access, and TCP port 445 |
host is down |
The client cannot reach the SMB service at the supplied address | Verify the server name or IP address and test connectivity to TCP port 445 |
Mount monitor thread: cifs mount failed |
A background service attempted the mount and reported the failure | Find the earlier CIFS kernel messages; they contain the actionable error |
What a CIFS Mount Failure Means
CIFS is the Linux client implementation used to mount SMB file shares, including shares hosted by Windows Server, Samba, NAS appliances, and many storage systems. Although people still say “CIFS,” current servers commonly use SMB protocols.
The command-line helper, mount.cifs, passes a mount request to the Linux kernel CIFS client. The kernel then performs several separate tasks:
- Resolves and connects to the server.
- Negotiates a compatible SMB protocol and authentication method.
- Authenticates the supplied user.
- Opens the requested share.
- Attaches that share to the local mount point.
A failure at any of those stages can end with cifs_mount failed w/return code, so the last line alone does not tell you whether the problem is a password, domain, network route, firewall, share name, or server policy.
The last cifs_mount failed line is a summary; the earlier kernel status tells you which layer rejected the request.
The shortened search term cfs is usually a typo for CIFS. It refers to the same Linux SMB-mount troubleshooting path.
How to Fix a CIFS Mount Failure
Work through these steps in order. Start with a manual mount so you can prove the connection and credentials work before changing /etc/fstab.
Step 1: Read the Kernel Message Before Changing Options
- Capture kernel messages from the current boot that mention CIFS, SMB, or status:
sudo journalctl -k -b --no-pager | grep -Ei 'cifs|smb|status'
- Look for the lines directly before the final mount failure. Common examples include: –
NT_STATUS_LOGON_FAILURE: the server rejected the credentials. –Send error in SessSetup: authentication failed during session setup. –CIFS Tcon rc: the connection reached the share-opening stage, where a bad share name or share permissions can fail. – Connection, timeout, or host errors: the client could not establish a usable SMB session. - Confirm that
//SERVER/SHAREis the exact server and share name supplied by the storage or Windows administrator. A Windows folder path such asD:\Filesis not necessarily an SMB share name; the share may be published under a different name.
If the server name might be wrong or DNS is unreliable, check that the name resolves:
getent hosts SERVER
Then, if Netcat is installed, test whether the SMB service is reachable on TCP port 445:
nc -vz SERVER 445
A successful TCP connection does not prove the password or permissions are correct. It only confirms that the client can reach the SMB service.
Step 2: Create a Credentials File With Separate Domain Details
Putting credentials directly in a mount command or in /etc/fstab exposes them through shell history, process listings, or readable system configuration. Use a root-owned credentials file instead.
- Create the root-owned directory that will hold the credentials file:
sudo mkdir -p /root/.sharecredentials
- Open the credentials file in the root-owned directory for editing:
sudoedit /root/.sharecredentials/credentials
- Add the SMB credentials in this format, with one value on each line:
username=USERNAME
password=PASSWORD
domain=DOMAIN
Use the actual SMB account name, password, and domain or directory domain. If the account is local to the SMB server rather than a domain account, omit the domain= line unless the server documentation says otherwise.
Keeping domain= separate matters. A combined value such as DOMAIN\Username in the username field can be interpreted differently by different clients and servers, while separate fields make the intended identity clear.
- Apply permission mode 600 recursively to the root-owned credentials directory and file:
sudo chmod -R 600 /root/.sharecredentials
This root-owned layout is intended for mounts performed with sudo or at system startup. Do not store this file in a shared home directory or commit it to source control.
Step 3: Test a Manual Mount
Use a local directory as the mount point for the remote share. There is no required mount-point name; /mnt/windowsshare is a conventional example. For this example, create the local mount point at /mnt/windowsshare:
sudo mkdir -p /mnt/windowsshare
Mount the share using the credentials file:
sudo mount -t cifs //SERVER/SHARE /mnt/windowsshare -o credentials=/root/.sharecredentials/credentials
If it succeeds, verify that Linux sees a CIFS filesystem:
findmnt -t cifs
Then list the mounted directory:
ls -la /mnt/windowsshare
If the mount works but files cannot be listed or opened, the server may allow authentication but deny access to the share or to underlying filesystem paths. That is a server-side permission issue, not a Linux mount-point problem.
Step 4: Add the Working Mount to /etc/fstab
Only make the mount persistent after the manual command works.
- Open /etc/fstab, the system mount configuration, for editing:
sudoedit /etc/fstab
- Add this persistent-mount entry with the tested server, share, mount point, and credentials-file location:
//SERVER/SHARE /mnt/windowsshare cifs credentials=/root/.sharecredentials/credentials,_netdev 0 0
The path /root/.sharecredentials/credentials must be the path where you created the credentials file.
- Unmount the manual test mount before testing the /etc/fstab entry:
sudo umount /mnt/windowsshare
- Test the system mount configuration, including the new CIFS entry:
sudo mount -a
- Confirm that the persistent configuration produced an active CIFS mount:
findmnt -t cifs
If mount -a fails, remove or correct the new /etc/fstab line before restarting the machine. A malformed network mount entry can delay or complicate boot.
Fixing Permission-Denied Mount Failures
A permission-denied mount failure is usually an authentication or authorization problem. The code indicates that the server rejected something, but the surrounding messages tell you what.
Authentication Failed During Session Setup
Messages such as NT_STATUS_LOGON_FAILURE and Send error in SessSetup point to failed authentication. Check these items:
- The password is current and not expired.
- The account name is spelled exactly as the server expects.
- The domain is supplied in its own
domain=field when applicable. - The account is enabled and allowed to use SMB.
- The credentials file has no accidental spaces before or after values.
- The server is not requiring a different authentication method than the Linux client is allowed to use.
Do not solve an authentication-policy mismatch by enabling plaintext passwords or weakening system-wide SMB security settings. Older servers that require obsolete authentication should be upgraded or reconfigured where possible. If you administer neither side, ask the server administrator which SMB protocol and authentication method the service requires.
The Account Authenticates but Cannot Open the Share
When the log reaches a tree connection error such as CIFS Tcon rc, the user may have passed login but been denied access to the specific share.
Check with the server administrator that:
- The share name is correct.
- The account has permission on the share itself.
- The account has permission on the underlying directory or storage volume.
- The account is not blocked by a group-policy, NAS access rule, or network-based access control list.
Windows and Samba environments can apply permissions at more than one layer. A user may be allowed to authenticate to the server but still be denied a particular share.
Understanding Return Code -115 and Mount Monitor Errors
Linux error code -115 corresponds to “Operation now in progress.” With a CIFS mount, that usually means the connection setup has not completed normally rather than that the remote share is confirmed to be mounted.
Check the lines before the error for a timeout, DNS failure, socket error, or authentication message. Then verify:
SERVERresolves to the intended address.- The client has a route to that address.
- A firewall allows SMB traffic on TCP port 445.
- The SMB service is running and listening on the target server.
- A VPN, corporate network, or split-DNS setup is connected when required.
A Mount monitor thread: cifs mount failed message typically comes from an automounting or monitoring process. It is reporting that the background attempt failed; it is not the root cause. The useful evidence is usually the earlier kernel CIFS log entry from the same attempt.
Other CIFS Mount Problems That Look Similar
Similar CIFS mount errors can result from incorrect hostname resolution, missing routes, blocked TCP port 445, protocol differences, or share ACLs.
Host Is Down Does Not Always Mean the Server Is Off
host is down can mean the hostname resolved incorrectly, the route is missing, a VPN is disconnected, or TCP port 445 is blocked. It can also mean the SMB service is stopped even while the server itself responds to ping or other services.
Test the actual SMB path rather than relying only on ICMP ping. SMB needs a reachable service endpoint on TCP port 445.
SMB Client Tests and CIFS Mounts Can Behave Differently
A share might work in a graphical file manager or with an SMB client tool while mount.cifs fails. Those clients can negotiate different protocol versions, authentication methods, saved credentials, or Kerberos tickets.
Treat a successful alternate client as evidence that the server is reachable and the account may be valid, but still inspect the CIFS kernel logs and compare the identity and target share used by the mount command.
Dell and NAS Hardware Does Not Change the Linux Diagnosis
A Dell server, NAS appliance, Windows host, or Samba host can all expose SMB shares. The manufacturer matters less than the SMB service configuration: hostname, port reachability, protocol compatibility, identity provider, and share ACLs.
How to Confirm the Mount Is Healthy
After a successful mount, confirm more than the absence of an error.
findmnt -t cifslists the mounted SMB filesystem.ls -lashows the expected directory contents.- A user or service that needs the mount can read the required files.
- The mount survives an
sudo mount -atest after being added to/etc/fstab. - Kernel logs contain no repeated CIFS reconnect, authentication, or permission errors.
For a production service, also make sure the service starts only after the network and required mount are available. A network share can disappear temporarily during VPN changes, server maintenance, or network outages, so applications should handle unavailable paths rather than assuming the mount is permanent.
Frequently Asked Questions
What Does CIFS Mean in Linux?
CIFS is the Linux client interface for mounting SMB network file shares. It lets a Linux directory represent a remote share hosted by Windows, Samba, a NAS device, or another SMB-capable server. The modern protocol is generally called SMB, but Linux logs and mount tools still commonly use the CIFS name.
How Do I Mount a CIFS Share in Linux?
Create a local mount directory and store the SMB username and password in a protected credentials file. Then use mount -t cifs with the server share path and local mount point. Test the manual mount first, then add the same working settings to /etc/fstab if the share should reconnect after startup.
Does “Host Is Down” Mean the SMB Server Is Powered Off?
No. “Host is down” means the Linux client cannot establish the required network connection to the SMB service. Check DNS resolution, routing, VPN connectivity, firewall rules, and TCP port 445 before concluding that the server itself is offline.
Why Does a Mount Monitor Thread Report a CIFS Failure?
A mount monitor thread is a background process that attempted to mount or maintain the share. Its failure message is a notification, not the detailed cause. Check the preceding kernel CIFS messages for authentication, share-access, DNS, timeout, or network errors, then correct that underlying condition.
