解决客户端挂载nfs是出现如下报错问题:
mount: wrong fs type, bad option, bad superblock on 172.16.1.9:/home/addam, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so
首先到nfs服务器端查看NFS服务是否正常:
root@addam:~# /etc/init.d/nfs-kernel-server status nfsd running
nfs服务是正常的,接下来查看一下是否有共享目录
root@addam:~# showmount -e
Export list for jacob.accad.sjs.year100.com: /home/addam 172.16.1.14 172.16.1.8
ok,服务端看来没什么问题,接下来的问题可能就是客户端了,但是我只是挂载一个nfs共享怎么会报错?经过一番Google,最后找到一个解决方法,特此记录,以供参考:
yum install showmount