Below are status codes you might encounter when mounting the NFS and CIFS/SMB file
systems:
Common mount error codes (Both NFS and CIFS)
Exit code
|
Errno name
|
Description
|
NFS scenario
|
CIFS/SMB scenario
|
0 | Success | Operation completed successfully | Mount succeeded | Mount succeeded |
1 | EPERM | Operation not permitted | No root privileges | No root privileges |
2 | ENOENT | No such file or directory | Mount point is missing | Mount point or share is missing |
5 | EIO | Input/output error | Generic I/O error | Generic I/O error |
13 | EACCES | Permission denied | Export permission denied | Authentication failed |
16 | EBUSY | Device or resource busy | Mount point in use | Mount point in use |
20 | ENOTDIR | Not a directory | Mount point is not a directory | Mount point is not a directory |
22 | EINVAL | Invalid argument | Invalid mount options | Invalid mount options |
101 | ENETUNREACH | Network unreachable | Cannot reach NFS server | Cannot reach SMB server |
110 | ETIMEDOUT | Connection timed out | NFS server not responding | SMB server not responding |
111 | ECONNREFUSED | Connection refused | NFS service not running | SMB service not running |
112 | EHOSTDOWN | Host is down | NFS server down | SMB server down |
113 | EHOSTUNREACH | No route to host | Network routing issue | Network routing issue |
NFS-specific error codes
Exit code
|
Errno name
|
Description
|
Common scenario
|
6 | ENXIO | No such device or address | NFS export does not exist |
32 | EPIPE | Broken pipe | Connection to NFS server broken |
74 | EBADMSG | Bad message | RPC message format error |
116 | ESTALE | Stale file handle | NFS file handle no longer valid |
118 | ENOTSUPP | Protocol not supported | Unsupported NFS version |
121 | EREMOTEIO | Remote I/O error | I/O error on NFS server |
122 | EDQUOT | Quota exceeded | User quota exceeded on NFS server |
CIFS / SMB-specific error codes
Exit code
|
Errno name
|
Description
|
Common scenario
|
95 | EOPNOTSUPP | Operation not supported | Unsupported CIFS protocol version |
121 | EREMOTEIO | Remote I/O error | Windows error (often authentication) |
126 | ENOKEY | Required key not available | Missing Kerberos ticket |
127 | EKEYEXPIRED | Key has expired | Kerberos ticket expired |
128 | EKEYREVOKED | Key has been revoked | Credentials revoked |