ubuntu下NFS的配置
- nfs 安裝
(1)apt-get install nfs-kernel-server apt-get install portmap nfs-common (2)編輯/etc/exports /home/jgyang/nfsroot *(rw,sync,no_root_squash) (3) 修改掛載點的屬性 chmod 777 /home/jgyang/rootfs (4) 重啓nfs sudo /etc/init.d/nfs-kernel-server restart sudo /etc/init.d/portmap restart (5) 在本機上測試 showmount -e mount 172.20.149.190:/home/jgyang/nfsroot /mnt ls -l /mnt 注:能夠經過一個符號連接來export NFS目錄,但在/etc/exports下所添加的掛載點應爲真正的目錄。好比建一符號連接 ln -s /home/pub/work/freerunner/out/target/product/freerunner /home/jgyang/nfsroot  這樣在開發板上設置的內核命令行中設置的NFS目錄就但是:/home/jgyang/nfsroot,但在/etc/exports文件中 export出的目錄應當是實際的NFS所在的目錄,即/home/pub/work/freerunner/out/target/product/freerunner。 這樣有兩個好處,一是能夠省去開發板中啓動參數命令過長的麻煩;二是在從新編譯android以後能夠直接使用生成的NFS,而沒必要再從新拷貝一份。