nfs:server is not responding,still trying原因与解决方案

2023年 1月 24日 68点热度 0人点赞 0条评论

版权声明: 本文为 CSDN 博主「lanction」的原创文章, 遵循 CC 4.0 BY-SA 版权协议, 转载请附上原文出处链接及本声明.
原文链接:https://blog.csdn.net/lanction/article/details/8499108

当时搜了下发现前人已经解决了这个问题, 第一篇文章不知道是谁发的, 我看的是这个网址:

http://blog.163.com/zhengwei_668/blog/static/309628892011561058295/

我用的是 mini6410, 系统 ubuntu11.10. 想将 nfs 中的一个 2 百多 k 的东西拷到开发板的根目录下, 之前用的是这个语句:

mount -t nfs -o nolock \
      192.168.1.231:/opt/FriendlyARM/mini6410/linux/rootfs_qtopia_qt4 /mnt

传输的时候出现 nfs:server is not responding, still trying 的提示, 本以为是速度慢的缘故就傻等着, 一直就感觉传不完, 而且 ^C 退出后, 就不能通过终端控制开发板, 必须退出重启.

后来想起来上网查了下 (就是上面的 blog), 说是 NFS 的默认传输协议是 UDP, 而 PC 机与嵌入式系统通过 UPD 交互时就会出现严重的网卡丢包现象.

可用的解决方案是: 在客户端改用 TCP 协议, 使用下面的命令:

mount -t nfs                                                          \
      -o intr,nolock,rsize=1024,wsize=1024                            \
      192.168.1.231:/opt/FriendlyARM/mini6410/linux/rootfs_qtopia_qt4 \
      /mnt

可以说是瞬间就将数据给传送到开发板上.

本地环境使用的命令:


mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.213.100:/home/duhbb/nfs-boot /nfs

注意:-o intr,nolock,rsize=1024,wsize=1024 不能有空格

本文来自:https://blog.duhbb.com

本文链接地址:nfs:server is not responding,still trying原因与解决方案,英雄不问来路,转载请注明出处,谢谢。

有话想说:那就赶紧去给我留言吧。

rainbow

这个人很懒,什么都没留下

文章评论