Friday, October 20, 2017

Error mounting NFS volume

If you got error to mount NFS volume in CentOS like below:

#mount -t nfs  /mnt/test                                             
mount: wrong fs type, bad option, bad superblock on,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount. helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

To solve this problem, you need to install nfs-utils package:

#yum install nfs-utils

In debian-based distros, you can try install nfs-common package:

#apt install nfs-common

That's all there is to it!

Have fun :)