1.安装NFS服务
$ sudo apt-get install nfs-kernel-server
2. 配置NFS
$ sudo dpkg-reconfigure portmap
对Should portmap be bound to the loopback address? 选N.
3.配置/etc/hosts.deny
$ sudo gedit /etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
4.配 置/etc/hosts.allow
$ sudo gedit /etc/hosts.allow
portmap: 192.168.1.
lockd: 192.168.1.
rquotad: 192.168.1.
mountd: 192.168.1.
statd: 192.168.1.
5.重启portmap daemon
$ sudo /etc/init.d/portmap restart
6.配置/etc/exports
$ sudo gedit /etc/exports
/nfsboot *(rw,sync,no_root_squash)
7.重启nfs服务
$ sudo /etc/init.d/nfs-kernel-server restart
8.nfs文件夹添加
$sudo mount 192.168.1.129:/nfsboot /mnt
9.查看结果
$ df
10.编辑U盘,userinfo.txt
Mountpath="/nfsboot"
11.手动挂载开发板的nfs
$ mount -t nfs -o nolock 192.168.1.129:/nfsboot /mnt/nfs
12.手动卸载开发板的nfs
$ umount /mnt/nfs
参考
http://mwtx.blog.163.com/blog/static/38939129201021510022295/