Use it when mounting NFS shares, or when mounts hang, fail at boot or show permission errors.
NFS Client
An NFS client mounts exports with mount -t nfs or /etc/fstab entries (server:/path /mnt nfs4 defaults,_netdev 0 0), or on demand with autofs/systemd automount.
1. mount -v -t nfs4 <server>:/path /mnt — error?
2. access denied → export client list; timeout → network/firewall.
3. nfsstat -m — version and options.
4. Boot hangs → _netdev,nofail or automount.
5. Permission denied → UID/GID or root_squash.
mount requested → server reachable → export permits client → mounted → file access by UID/GID
For File Services → NFS Client, continue with the first unproven Topic check: Pin client namespace, server/export, NFS version/options, mountpoint and real workload identity. If that boundary is healthy, advance to the adjacent check: Confirm route/name resolution, effective mount source/options and kernel NFS state. 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 nfs4Verification & 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
client resolver/route → server NFS endpoint → version/options → mount request → kernel NFS client/session → mount namespace → file operation → application
Healthy evidence: client resolves/reaches server, negotiates intended version/options, mount maps to expected export and fresh reads/writes/metadata succeed with acceptable behavior
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Pin client namespace, server/export, NFS version/options, mountpoint and real workload identity.
- Confirm route/name resolution, effective mount source/options and kernel NFS state.
- Perform a fresh metadata/read/write operation and correlate client/server evidence.
- Correct the first failed client/server boundary, remount only when required and repeat the original workload.
Verification chain. client resolver/route → server NFS endpoint → version/options → mount request → kernel NFS client/session → mount namespace → file operation → application
Step 3 Commands Verify boundary
mount -t nfs4 nfs01:/export/data /mnt/data
findmnt -t nfs4
nfsstat -m
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: mount is stale/hung, DNS points elsewhere, wrong version/options alter behavior, automount/fstab differs from manual test, or application identity cannot access despite root test success
Step 5 Common mistakes Narrow the fault
- Missing
_netdevin fstab, hanging boot. softmounts for data that must not be lost.
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.
Use _netdev (and nofail for non-critical mounts) in fstab so boot does not hang. hard mounts wait forever on a dead server; processes stuck in D state point there. Check the negotiated version with nfsstat -m.
nfsstat -m— mounted NFS optionsshowmount -e <server> / exportfs -v— NFS exportsfindmnt -t nfs,nfs4,cifs— mounted network sharessmbclient -L //<server> -U <user>— SMB sharestestparm -s— Samba configuration check
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
NFS client health is confirmed by fresh I/O through the intended mount using the real application identity; a mounted path alone is stale-prone evidence.
In depth
Mounting NFS on clients
Linux clients mount NFS with mount -t nfs4, or through fstab or autofs. The nfs(5) manual page documents the client options:
vers=pins a version (otherwise 4.2 is tried first).hard(the default) orsoft.timeoandretranscontrol retries.rsize/wsize(negotiated up to 1 MiB) andnconnect(up to 16 connections).sec=selects sys or the Kerberos flavours.
Its fstab examples show both a plain entry and one with sec=krb5.
fstab entries
| Entry | Purpose |
|---|---|
nas1:/srv/nfs/home /home nfs4 defaults,_netdev 0 0 | Standard; mounted after the network |
nas1:/srv/nfs/projects /srv/projects nfs4 vers=4.2,nconnect=4,_netdev,nofail 0 0 | Faster; boot doesn't stop if the NAS is down |
nas1:/srv/nfs/secure /srv/secure nfs4 sec=krb5p,_netdev 0 0 | Kerberos, with encryption |
nas1:/srv/nfs/archive /srv/archive nfs4 ro,noauto,x-systemd.automount 0 0 | Mounted on first access |
Automounting
| Method | Configuration |
|---|---|
| systemd | noauto,x-systemd.automount,x-systemd.idle-timeout=10min in fstab |
| autofs | /etc/auto.master + maps, e.g. /home /etc/auto.home with * nas1:/srv/nfs/home/& |
Automounting avoids boot delays, and only mounts shares that are actually used.
Identity on the client
With sec=sys, the client sends its numeric UID and GID. They must match the server's. Otherwise files appear with the wrong owners, or access is denied. With NFSv4, an ID-mapping domain (Domain= in /etc/idmapd.conf) must also match on client and server. If it doesn't, owners show as nobody.
host$ sudo mount -t nfs4 -o vers=4.2,nconnect=4 nas1.example.net:/srv/nfs/projects /srv/projects
host$ findmnt /srv/projects -o TARGET,SOURCE,FSTYPE,OPTIONS
host$ ls -ln /srv/projects | head -3
drwxrws--- 4 1003 1020 4096 Nov 28 10:12 q4
host$ ls -l /srv/projects | head -3
drwxrws--- 4 nobody nobody 4096 Nov 28 10:12 q4
host$ grep -E "^Domain" /etc/idmapd.conf
Domain = localdomain
host$ sudo sed -i 's/^#\?Domain = .*/Domain = example.net/' /etc/idmapd.conf && sudo nfsidmap -c
host$ ls -l /srv/projects | head -2
drwxrws--- 4 alice projects 4096 Nov 28 10:12 q4
Reading the example
The numeric listing shows the correct UID and GID, but names appear as nobody. The ID-mapping domain differs from the server's. Setting the same Domain on both sides and clearing the cache with nfsidmap -c makes the names resolve correctly.
Documented example, not captured output.
How it works at runtime
NFS Client is part of File Services → NFS Client. NFS Client operation spans name/path reachability, protocol negotiation, mount options, kernel NFS session state, local mount namespace and the application I/O performed through the mount.
Topic-specific state model. NFS Client operation spans name/path reachability, protocol negotiation, mount options, kernel NFS session state, local mount namespace and the application I/O performed through the mount.
Interpretation rule. - findmnt showing NFS ≠ fresh I/O succeeds.
- Manual root access ≠ service-account access.
- Ping/TCP reachability ≠ export authorization.
- One manual mount ≠ persistent fstab/automount behavior is correct.
Quick reference
NFS client mounts:
mount -t nfs4 -o vers=4.2,hard,timeo=600,noatime nfs01:/srv/projects /mnt/projects
nfsstat -m
# /etc/fstab with automount
nfs01:/srv/projects /mnt/projects nfs4 _netdev,nofail,x-systemd.automount,x-systemd.idle-timeout=600 0 0
hard mounts hang processes until the server returns (protects data); soft returns errors and can corrupt writes. nconnect=8 (kernel 5.3+) opens several TCP connections for higher throughput. Processes stuck in D state point at an unreachable server.
Limits and how it fails
Primary failure point. NFS client health is confirmed by fresh I/O through the intended mount using the real application identity; a mounted path alone is stale-prone evidence.
DNS success does not show protocol reachability.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. NFS Client owns client mount/session behavior; NFS Server owns export authorization and backend state.
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 → NFS Client. 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
NFS Client operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for NFS Client.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | NFS Client operation spans name/path reachability, protocol negotiation, mount options, kernel NFS session state, local mount namespace and the application I/O performed through the mount. | 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 | client resolver/route → server NFS endpoint → version/options → mount request → kernel NFS client/session → mount namespace → file operation → application | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | NFS client health is proven by fresh I/O through the intended mount using the real application identity; a mounted path alone is stale-prone evidence. | 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: client resolver/route → server NFS endpoint → version/options → mount request → kernel NFS client/session → mount namespace → file operation → application | 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. NFS client health is proven by fresh I/O through the intended mount using the real application identity; a mounted path alone is stale-prone evidence. | 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. |
NFS Client · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | NFS Client |
|---|---|
| Topic path | File Services → NFS Client |
| Runtime state | NFS Client operation spans name/path reachability, protocol negotiation, mount options, kernel NFS session state, local mount namespace and the application I/O performed through the mount. |
| Fast checks | - Pin client namespace, server/export, NFS version/options, mountpoint and real workload identity. - Confirm route/name resolution, effective mount source/options and kernel NFS state. - Perform a fresh metadata/read/write operation and correlate client/server evidence. - Correct the first failed client/server boundary, remount only when required and repeat the original workload. |
| Verification chain | client resolver/route → server NFS endpoint → version/options → mount request → kernel NFS client/session → mount namespace → file operation → application Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | NFS client health is proven by fresh I/O through the intended mount using the real application identity; a mounted path alone is stale-prone evidence. 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. |