主机上: renwei@renwei-K46CM:~$ sudo ifconfig eth0 192.168.0.25 up [sudo] password for renwei: renwei@renwei-K46CM:~$ ping 192.168.0.15 PING 192.168.0.15 (192.168.0.15) 56(84)bytes of data. 64 bytes from 192.168.0.15: icmp_seq=1ttl=64 time=1.17 ms 64 bytes from 192.168.0.15: icmp_seq=2ttl=64 time=0.492 ms ^C --- 192.168.0.15 ping statistics --- 2 packets transmitted, 2 received, 0% packetloss, time 1001ms rtt min/avg/max/mdev =0.492/0.834/1.177/0.343 ms renwei@renwei-K46CM:~$ sudo /etc/init.d/rpcbind restart renwei@renwei-K46CM:~$ sudo/etc/init.d/nfs-kernel-server restart *Stopping NFS kernel daemon [OK ] *Unexporting directories for NFS kernel daemon... [ OK ] *Exporting directories for NFS kernel daemon... exportfs:/etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified forexport "192.168.0.*:/home/nfs". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x [ OK ] *Starting NFS kernel daemon [OK ] renwei@renwei-K46CM:~$ showmount -e192.168.0.15 clnt_create: RPC:Port mapper failure - Unable to receive: errno 111 (Connection refused) 开发板上: ping 192.168.0.25 PING 192.168.0.25 (192.168.0.25): 56 databytes 64 bytes from 192.168.0.25: seq=0 ttl=64time=1.0 ms 64 bytes from 192.168.0.25: seq=1 ttl=64time=0.7 ms --- 192.168.0.25 ping statistics --- 2 packets transmitted, 2 packets received,0% packet loss round-trip min/avg/max = 0.7/0.8/1.0 ms 说明可以ping通 但是 当我mount -n -o nolock,rsize=1024,wsize=1024,timeo=15192.168.0.25:/home/nfs /tmp 时 出现: nfs warning: mount version older thankernel mount: mounting 192.168.0.25:/home/nfs on/tmp failed 换一个路径: # mount -n -onolock,rsize=1024,wsize=1024,timeo=15 192.168.0.25:/home/nfs /mnt nfs warning: mount version older than kernel 但我打开开发板上的mnt和tmp文件时,什么都看不到(原来tmp文件下有些东西,现在什么都没有了) 这是我主机上的配置(用的是Ubuntu14.04) 主机IP地址:192.168.0.25 arm板ip地址:192.168.0.15 renwei@renwei-K46CM:~$ sudo ifconfig eth0 192.168.0.25 up [sudo] password for renwei: renwei@renwei-K46CM:~$ ping 192.168.0.15 PING 192.168.0.15 (192.168.0.15) 56(84)bytes of data. 64 bytes from 192.168.0.15: icmp_seq=1ttl=64 time=1.17 ms 64 bytes from 192.168.0.15: icmp_seq=2ttl=64 time=0.492 ms ^C --- 192.168.0.15 ping statistics --- 2 packets transmitted, 2 received, 0% packetloss, time 1001ms rtt min/avg/max/mdev =0.492/0.834/1.177/0.343 ms renwei@renwei-K46CM:~$ sudo /etc/init.d/rpcbind restart renwei@renwei-K46CM:~$ sudo/etc/init.d/nfs-kernel-server restart *Stopping NFS kernel daemon [OK ] *Unexporting directories for NFS kernel daemon... [ OK ] *Exporting directories for NFS kernel daemon... exportfs:/etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified forexport "192.168.0.*:/home/nfs". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x [ OK ] *Starting NFS kernel daemon [ OK] 显示我可以ping通arm板,nfs服务也启动成功,但是当我 renwei@renwei-K46CM:~$ showmount -e192.168.0.15 clnt_create: RPC: Port mapper failure -Unable to receive: errno 111 (Connection refused) 这个错误一直不能解决。。。 然后我再开发板上进行如下尝试(用的是minicom) ping 192.168.0.25 PING 192.168.0.25 (192.168.0.25): 56 databytes 64 bytes from 192.168.0.25: seq=0 ttl=64time=1.0 ms 64 bytes from 192.168.0.25: seq=1 ttl=64time=0.7 ms --- 192.168.0.25 ping statistics --- 2 packets transmitted, 2 packets received,0% packet loss round-trip min/avg/max = 0.7/0.8/1.0 ms 说明可以ping通 但我 mount -n -onolock,rsize=1024,wsize=1024,timeo=15 192.168.0.25:/home/nfs /tmp 时 出现: nfs warning: mount version older thankernel mount: mounting 192.168.0.25:/home/nfs on/tmp failed 打开tmp文件,ls显示文件夹内容为空(在主机不进行nfs服务时,tmp文件是有文件的) 求大侠帮助
|