Pcornel
Linux · File Services

File Share Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2887

Back to the Topic

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 exports
  • findmnt -t nfs,nfs4,cifs — mounted network shares
  • smbclient -L //<server> -U <user> — SMB shares
  • testparm -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 /mnt
findmnt -t nfs4
mount -t cifs //fs01/data /mnt -o username=alice,vers=3.1.1
mount 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

Confirmation

Confirm action

Continue?