How to check if a nfs mountpoint is mounted

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux

Issue

  • How to check if a nfs mountpoint is mounted

Resolution

  • Run the following commands :
# mount -l | grep nfs
  • Another way to check the mounted NFS filesystems is :
# cat /proc/mounts | grep nfs
  • nfsstat command can be used to get more information of the mountpoints. If no NFS filesystem is mounted the following message will be given :
# nfsstat 
Error: No Client Stats (/proc/net/rpc/nfs: No such file or directory). 

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments