您的位置:首页 > 运维架构

挂载NFS文件提示: wrong fs type, bad option, bad super block

2016-08-17 21:24 579 查看
执行mount命令挂载一个共享的NFS文件系统时,提示如下错误:

错误现象

# mount -t nfs -o remount,rw 192.168.0.1:/mnt/share /mnt/share

mount:
wrong fs type, bad option, bad superblock on /mnt/share,

       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try

       dmesg | tail  or so

错误原因

查了原因,发现是/sbin/mount下面缺少挂载nfs格式的文件,应该是mount.nfs,而该文件由nfs-common提供,所以需要下载nfs-common工具

root@localhost:~# ls /sbin/mount

mountall          mount.lowntfs-3g  mount.ntfs-3g

解决办法

对于ubuntu系统: apt-get install nfs-common

对于其他系统  : yum install nfs-common

安装成功后,就可以看到/sbin/mount.nfs,也可以顺利挂载了!

root@localhost:~# ls /sbin/mount

mountall  mount.fuse  mount.lowntfs-3g    mount.nfs    mount.nfs4  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: