1.故障现象
我的测试环境有一个NAS,之前配置都是按照测试需求在/etc/fstab里添加配置挂载选项:
vi /etc/fstab
192.168.1.2:/mnt/HD/HD_a2/Public /public nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600
创建/public目录后,直接mount挂载即可:
mkdir /public
mount -a
但今天在一套最小化安装的RHEL6.8上,挂载时遇到报错如下:
[root@test04 ~]# mount -a
mount: wrong fs type, bad option, bad superblock on 192.168.1.2:/mnt/HD/HD_a2/Public,
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
2.解决方案
解决方法是安装nfs-utils:
[root@test04 ~]# yum install nfs-utils
再次尝试挂载报错:
[root@test04 ~]# mount -a
mount.nfs