安装过nfs服务:
apt-get install nfs-kernel-server //安装nfs服务
在虚拟机上:
/etc/init.d/nfs-kernel-server restart 重启nfs
vi /etc/exports 修改配置,路径要相对应
里面的配置:
/armnfs *(sync,rw)
/root/share 192.168.1.* (rw,sync,no_root_squash) ??/root/share是虚拟机的共享(不要在#行上,#是注释的意思)点
??192.168.0.*是同网段的,*任意地址都行
在开发板上:
mount -t nfs -o nolock 192.168.1.109:/root/share /mnt/nfs ??192.168.0.105是虚拟机的IP,可通过ifconfig指 令查询,/mnt/nfs是开发板的挂在点
注意事项:
1、检查网络,电脑与虚拟的,虚拟与开发板的都要互拼一下!显示64位的代码算是通啦!
遇到nfs:server is not responding,still trying 原因与解决方案
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.1.109:/root/share /mnt/nfs
今天&#x
apt-get install nfs-kernel-server //安装nfs服务
在虚拟机上:
/etc/init.d/nfs-kernel-server restart 重启nfs
vi /etc/exports 修改配置,路径要相对应
里面的配置:
/armnfs *(sync,rw)
/root/share 192.168.1.* (rw,sync,no_root_squash) ??/root/share是虚拟机的共享(不要在#行上,#是注释的意思)点
??192.168.0.*是同网段的,*任意地址都行
在开发板上:
mount -t nfs -o nolock 192.168.1.109:/root/share /mnt/nfs ??192.168.0.105是虚拟机的IP,可通过ifconfig指 令查询,/mnt/nfs是开发板的挂在点
注意事项:
1、检查网络,电脑与虚拟的,虚拟与开发板的都要互拼一下!显示64位的代码算是通啦!
遇到nfs:server is not responding,still trying 原因与解决方案
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.1.109:/root/share /mnt/nfs
今天&#x