PC機-ubuntu14.04配置
- 安裝NFS服務器
sudo apt-get install nfs-kernel-server nfs-common - 配置共享目錄
打開配置文件:
sudo vim /etc/exports
在文件末尾添加如下指令:
/home/csgec/tftpboot *(rw,sync,no_subtree_check)
保存退出 - 啓動服務
sudo service nfs-kernel-server restart
#開發板
- 掛載
mount -t nfs -o nolock 192.168.1.161:/home/csgec/tftpboot /mnt - 卸載
umount /mnt
注
- 不能在開發板上掛載PC端Linux的掛載目錄