远程RedHat主机IP地址:192.168.50.115 ,NFS共享目录/opt/soft. 本机ubuntu挂载点/mnt
命令:sudo mount 192.168.50.115:/opt/soft /mnt
遇到错误:
mount: wrong fs type, bad option, bad superblock on 192.168.50.115:/opt/soft,
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
排错过程:
1.关闭RedHat防火墙 :
/etc/init.d/ip6tables stop
/etc/init.d/iptables stop
重新mount 未解决问题
2.关闭ubutnu防火墙
sudo ufw disable
重新mount未解决问题
怀疑redHat共享文件有问题换另一台问题依旧,而两台redHat主机相互mount未出现问题,故可以确定是ubuntu主机问题
3.网络搜索解决方案发现 有人从Ubuntu mount到Solaris 10的NFS也遇到相同的问题,并给出下列解决方案
安装nfs-common
sudo apt-get install nfs-common
然后重新执行mount命令即可。
按照上面解决方案解决了问题
转载于:https://blog.51cto.com/2905163/1438783