How to determine if NFS mount is mounted as v3 or v4?

  • Red Hat 5/6 when I do mount it says type nfs, I would like to know how to determine version if it isn't listed in mount options or fstab. Please don't say remount it with the version option, I want to know how to determine the currently mounted NFS version. I am guessing it will default based on NFS server/client settings, but how to I determine what it is currently? I am pretty sure it's NFS v3 because nfs4_setfacl is not supported it seems.

  • slm

    slm Correct answer

    7 years ago

    Here are 2 ways to do it:


    Using mount's -v switch:

    $ mount -v | grep /home/sam
    mulder:/export/raid1/home/sam on /home/sam type nfs (rw,intr,tcp,nfsvers=3,rsize=16384,wsize=16384,addr=


    Using nfsstat -m:

    $ nfsstat -m | grep -A 1 /home/sam
    /home/sam from mulder:/export/raid1/home/sam
     Flags: rw,vers=3,rsize=16384,wsize=16384,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=mulder

    Worth noting, sometimes `nfsstat -m` shows version and more details when `mount -v` does not.

License under CC-BY-SA with attribution

Content dated before 6/26/2020 9:53 AM