Use it when a share does not mount, is slow, or denies access.
File Share Troubleshooting
File share troubleshooting separates network, protocol version, authentication, share definition and file permission problems for NFS and SMB.
1. Reachability: nc -vz <server> 2049 / 445.
2. Share/export visible (showmount -e, smbclient -L).
3. Mount with verbose options and read dmesg.
4. After mount: ls -ln — IDs as expected?
5. Server logs and SELinux denials.
network → protocol → authentication → share/export → file permissions
For File Services → File Share Troubleshooting, continue with the first unproven Topic check: Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation. If that boundary is healthy, advance to the adjacent check: Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
findmnt -t nfs,nfs4,cifsPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload
Healthy evidence: the original failure is reproduced, client/server evidence identifies one first failing step, correction restores fresh I/O for the intended identity and neighboring access remains correct
Step 2 Commands Verify boundary
showmount -e server
smbclient -L //server -U user
dmesg -T | grep -iE 'nfs|cifs'
Step 3 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation.
- Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions.
- Correlate client/server/service/security evidence for one fresh operation and locate the first failure.
- Apply the smallest persistent cause-specific change, reconnect if required, then repeat original and regression operations.
Verification chain. symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: stale mount/session is mistaken for health, tests switch users or clients, server-local access is treated as remote evidence, permissions are changed broadly, or reconnect/restart masks the cause
Step 5 Common mistakes Narrow the fault
- Not checking firewall ports (2049, 445).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Error type points the way: timeout → network/firewall; protocol/version errors → negotiate the version; access denied → export/share list or credentials; permission denied after mount → file ownership, ID mapping or SELinux.
showmount -e <server> / exportfs -v— NFS exportsfindmnt -t nfs,nfs4,cifs— mounted network sharessmbclient -L //<server> -U <user>— SMB sharestestparm -s— Samba configuration check
ReferenceHow it works1 section · depth on demand
How it works
How it works: systemd resolves unit files/drop-ins, dependencies/order, conditions and environment, then forks/execs or activates the service and tracks its main process/readiness according to Type.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Troubleshooting is resolved when the first failed share boundary is confirmed and the original client operation succeeds after a minimal persistent correction without collateral access regression.
In depth
NFS server: what is actually exported
# exportfs -v
/srv/projects 10.0.10.0/24(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
# exportfs -r # re-read /etc/exports and /etc/exports.d
# exportfs -s # current exports in /etc/exports format
The exportfs manual documents -v (show exports with options), -r (re-export everything, syncing with /etc/exports and /etc/exports.d) and -s (print current exports in exports-file format). Editing /etc/exports without exportfs -r changes nothing.
NFS client checks
| Check | Command |
|---|---|
| Server reachable, exports visible | showmount -e nfs01 (NFSv3) |
| Mount with explicit version | mount -t nfs -o vers=4.2 nfs01:/srv/projects /mnt |
| Mount options in use | nfsstat -m, findmnt -t nfs4 |
| Retransmits / timeouts | nfsstat -rc (retrans), mountstats |
| Symptom | Cause |
|---|---|
access denied by server while mounting | Client IP not in the export, or wrong path for NFSv4 pseudo-root |
Files owned by nobody | NFSv4 ID mapping domain mismatch (/etc/idmapd.conf Domain=) or root_squash |
| Root cannot write | root_squash (default) — intended |
| Hangs, processes in D state | Server unreachable with hard mounts — the client waits forever by design |
| Stale file handle | Export path changed/recreated on the server — remount |
SMB (Samba) equivalents
| Check | Command |
|---|---|
| Configuration valid | testparm -s |
| Shares and connections | smbclient -L //fs01 -U alice, smbstatus |
| Client mount | mount -t cifs //fs01/data /mnt -o username=alice,vers=3.1.1 |
| Permission mapping | valid users, force user, file system ACLs on the server |
Firewall and ports
NFSv4 needs only TCP 2049; NFSv3 also needs rpcbind (111) and dynamic mountd/statd ports unless they are pinned. Samba uses TCP 445.
*The exportfs listing illustrates NFS export options and does not describe a deployed file share.*
How it works at runtime
File Share Troubleshooting is part of File Services → File Share Troubleshooting. File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.
Topic-specific state model. File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.
Interpretation rule. - Mounted/connected state ≠ fresh share I/O.
- Authentication success ≠ filesystem authorization.
- Server-local access ≠ remote mapped-identity access.
- Restart/remount recovery ≠ durable root-cause remediation.
Method
File share troubleshooting:
| Symptom | Check |
|---|---|
NFS access denied by server | Export list, client IP/hostname, exportfs -v |
NFS files owned by nobody | idmap domain mismatch |
| NFS mount hangs | Firewall, server down (hard mount), rpcbind for v3 |
CIFS mount error(13) | Credentials, domain, NTLM disabled (use Kerberos) |
CIFS mount error(95) | SMB dialect mismatch (vers=) |
| Samba access denied | Share valid users, filesystem perms, SELinux label |
mount -v -t nfs4 nfs01:/srv/projects /mnt/t
dmesg | grep -iE 'cifs|nfs' | tail
smbclient -L //fs01 -k -d3
Limits and how it fails
Primary failure point. Troubleshooting is resolved when the first failed share boundary is confirmed and the original client operation succeeds after a minimal persistent correction without collateral access regression.
DNS success does not show protocol reachability.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. File Share Troubleshooting owns isolation and hands off to NFS, Samba/SMB, Networking, Storage, Permissions or Security once the failing step is identified.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in File Services → File Share Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.samba.org/samba/docs/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
File Share Troubleshooting operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for File Share Troubleshooting.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact client/server + time + request/file operation → identify authoritative configuration → read back effective service/listener/session state → trace protocol selection/auth/identity → verify backend/upstream boundary → correlate logs → make smallest persistent change → repeat original workload + regression check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Troubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux web/file-service evidence can establish this proof path: symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove unobserved clients, names, identities, routes, sessions, backends or time periods. Troubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven service boundary, capture adjacent effective state and protocol/application evidence, make only the demonstrated persistent change, then repeat the original client workload plus a regression check. | Continue to the next unresolved boundary while preserving the original test condition. |
File Share Troubleshooting · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | File Share Troubleshooting |
|---|---|
| Topic path | File Services → File Share Troubleshooting |
| Runtime state | File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O. |
| Fast checks | - Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation. - Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions. - Correlate client/server/service/security evidence for one fresh operation and locate the first failure. - Apply the smallest persistent cause-specific change, reconnect if required, then repeat original and regression operations. |
| Verification chain | symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Troubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression. Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |