File Share Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2887
Answer
File share troubleshooting separates network, protocol version, authentication, share definition and file permission problems for NFS and SMB.
Remember
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.
First checks
showmount -e <server> / exportfs -v— NFS exportsfindmnt -t nfs,nfs4,cifs— mounted network sharessmbclient -L //<server> -U <user>— SMB sharestestparm -s— Samba configuration check
Commands
findmnt -t nfs,nfs4,cifs- Operational command for List mounted NFS/CIFS file shares. Focus fields: target, source, filesystem type and mount opti…
mount -t nfs -o vers=4.2 nfs01:/srv/projects /mntfindmnt -t nfs4mount -t cifs //fs01/data /mnt -o username=alice,vers=3.1.1mount error(13)mount error(95)
Verify in this order
network → protocol → authentication → share/export → file permissions
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2887