问题:
AT91SAM9261开发板挂载UBUNTU12.04主机上的nfs文件系统,提示:
# mount -t nfs 192.168.1.125:/home/myhost/nfs /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.1.125:/home/myhost/nfs on /mnt failed: Input/output error
- 网络没问题,可以
ping
通 - 开发板和主机的nfs都已经打开
cat /proc/filesystems
可以看到nfsd
一切都是那么的完美,意外就在不经意的拐角处。
参考David_xtd的专栏,解决方法挂载时增加-o nolock
,即
mount -t nfs -o nolock myhost-ip:/to/nfs /mnt
原因不是很懂,先记下来,
nfs_mount默认选项包括文件锁,依赖于portmap提供的动态端口分配功能
完了