您尚未登录。

楼主 #1 2020-01-15 17:28:03

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,204
积分: 1140.5

挂载nfs文件目录不成功。

挂载命令如下:
mount -o vers=4 192.168.1.121:/home/any/imx6ul/nfs /home/imx6ul/mountnfs

结果:
mount: wrong fs type, bad option, bad superblock on 192.168.1.121:/home/any/imx6ul/nfs,
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-common,发现已经安装了,而且/sbin/mount.nfs文件也存在。

最近编辑记录 Gentlepig (2020-01-15 17:32:29)

离线

#2 2020-01-15 18:05:00

cityf
会员
注册时间: 2017-11-03
已发帖子: 195
积分: 195

Re: 挂载nfs文件目录不成功。

ping没有问题吧?

是不是应该加一个文件类型的参数 -t nfs ?

离线

#3 2020-01-16 08:16:53

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,238
积分: 9197

Re: 挂载nfs文件目录不成功。

https://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error

有可能是 没加 -t nfs, 或者 /sbin/mount.nfs 这个命令不存在.





离线

楼主 #4 2020-01-16 10:48:52

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,204
积分: 1140.5

Re: 挂载nfs文件目录不成功。

mount -t nfs 192.168.1.121:/home/any/imx6ul/nfs /mnt

尝试这个命令,结果一样。
/sbin/mount.nfs这个命令存在的。

离线

#5 2020-01-16 10:53:47

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,238
积分: 9197

Re: 挂载nfs文件目录不成功。

这就尴尬了,只能换个电脑试一试了。





离线

#6 2020-08-11 16:35:37

240011814
会员
注册时间: 2020-08-11
已发帖子: 6
积分: 1

Re: 挂载nfs文件目录不成功。

https://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error

有可能是 没加 -t nfs, 或者 /sbin/mount.nfs 这个命令不存在.

离线

楼主 #7 2022-04-26 16:55:27

Gentlepig
会员
注册时间: 2018-10-24
已发帖子: 1,204
积分: 1140.5

Re: 挂载nfs文件目录不成功。

忘了当时是怎么解决的,当时是解决了这个问题能挂载nfs的。

今年又走了一遍,这次是改成vers=3解决的,不确定上次是不是也是因为这个原因。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn