打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
mount常见的错误。

mount常见的错误。

(2011-08-27 22:44:36)
标签:

杂谈

1、mount时出现错误,原因是主机防火墙没有关闭。
/ # mount -t nfs 192.168.3.101:/initrd /mnt
mount: RPC: Unable to receive; errno = No route to host
mount: mounting 192.168.3.101:/initrd on /mnt failed: Bad filedescriptor
/ # route add default gw 192.168.3.1 dev eth0
/ # mount -t nfs 192.168.3.101:/initrd /mnt
mount: RPC: Unable to receive; errno = No route to host
mount: mounting 192.168.3.101:/initrd on /mnt failed: Bad filedescriptor
/ # mount -t nfs 192.168.3.101:/initrd /mnt
mount: RPC: Unable to receive; errno = No route to host
mount: mounting 192.168.3.101:/initrd on /mnt failed: Bad filedescriptor

 

在网上找到关闭防火墙的方法:

1、永久性关闭

lokkit --disabled
2、 即时生效,重启后失效

service 方式
开启: service iptables start
关闭: service iptables stop

iptables方式

查看防火墙状态:
/etc/init.d/iptables status

暂时关闭防火墙:
/etc/init.d/iptables stop

重启iptables:
/etc/init.d/iptables restart

 

2、在解决上面的问题后面一个可能碰到的问题就是下面这个了,网上的解决办法是加上-o的选项。
/ # mount -t nfs 192.168.3.101:/initrd /mnt

rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
lockd_up: makesock failed, error=-5
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
mount: mounting 192.168.3.101:/initrd on /mnt failed: Input/outputerror

加入-o nolock选项,root:# mount -o nolock -t nfs192.168.100.21:/home/cnh01994/nfsroot /mnt/nfs则工作正常。

 

至此,我们就可以通过单板mount主机上的目录了。调试就方便多了。

下一步计划是NFS启动,这样的话调试就方便许多了。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Debian下NFS安装及配置
解决客户端挂载mount网络文件系统nfs共享资源路径报''mount.nfs: Connection...
修复Initrd
数据中心数据异地备份方案-NFS RSYNC
nfs服务部署记录
nfs
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服