本机用虚拟机、Ubuntu12.04 Desktop版本,目标板为ARM9
1.安装nfs
apt-get install nfs-kernel-server
apt-get install portmap nfs-common
2.修改配置文件
/etc/exports
/home/jgyang/nfsroot *(rw,sync,no_root_squash)
3.重启服务
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/portmap restart
4.在本机上测试
showmount -e
mount 172.20.149.190:/home /mnt
这个里面表示mount后面第一个表示IP,冒号后面表示共享目录的绝对路径,后面的是需要挂载到的路径。
ls /mnt
查看一下
5.板子上同样的命令就好