目标板挂载NFS时“rpcbind: server localhost not responding, timed out”解决

问题:

工作环境:VMWare 10.0.2 build 1744117,VMWare中安装Ubuntu12.04.4,Ubuntu中已配置好了nfs-kernel-server和portmap,更新了exports文件,并重启了nfs服务。

目标板使用广州华天正的real6410开发板,执行命令:

mount -t nfs 192.168.1.157:/nfsboot /mnt
得到错误信息:

[root@Real6410 /]# mount -t nfs 192.168.1.157:/nfsboot /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).

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).

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).

mount: mounting 192.168.1.157:/nfsboot on /mnt failed: Input/output error

[root@Real6410 /]# 

解决办法:

1. nfs_mount默认选项包括文件锁,依赖于portmap提供的动态端口分配功能;

所以,尝试禁止文件锁试一下。

执行命令:

mount -t nfs -o nolock 192.168.1.157:/nfsboot /mnt

结果是:

[root@Real6410 /]# mount -t nfs -o nolock 192.168.1.157:/nfsboot /mnt

[root@Real6410 /]# 
没有错误提示了,说明已挂载成功。

查看一下挂载后的结果:

[root@Real6410 /]# df

Filesystem           1K-blocks      Used Available Use% Mounted on

ubi0:rootfs             949256    267108    677088  28% /

df: /mnt/sdcard: No such file or directory

tmpfs                    92500         0     92500   0% /dev/shm

192.168.1.157:/nfsboot

                      19478208   4878016  13587712  26% /mnt

[root@Real6410 /]#



评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值