嵌入式NFS配置

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的掛載目錄
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章