天嵌 ARM开发社区

 找回密码
 注册
查看: 1626|回复: 0

AM335x(TQ335x)学习笔记——配置NFS网络文件系统

[复制链接]
freewing 发表于 2015-11-5 14:56:52 | 显示全部楼层 |阅读模式

   硬件平台:TQ335XB开发板

  1、安装NFS 服务

  :~$ sudo apt-get install nfs-kernel-server

  2、创建NFS 共享目录

  假设 NFS 共享目录是/home/nfs

  ~$ sudo mkdir /home/nfs

  3、配置NFS

  :~$ vi /etc/exports

  在/etc/exports 文件末尾加入下面一行:

  /home/nfs *(rw,sync,no_subtree_check,no_root_squash)


  如下图所示:



    允许所有用户访问 NFS 共享目录

  4、启动NFS 服务器

  启动 portmap 和nfs-kernel-server 服务:

  :~$ sudo service portmap start

  ~$ sudo service nfs-kernel-server start

  注:如果开发板不能挂载到宿主机可以试下以下方式:

  :~$ sudo exportfs –a

  :~$ sudo /etc/init.d/portmap restart

  :~$ sudo /etc/init.d/nfs-kernel-server restart

  5、本地验证NFS

  :~$ ls /home/nfs

  helloworld.c

  $sudo mount localhost:/home/nfs /mnt

  $ls /mnt

  helloworld.c


  $sudo umont /mnt



TQ335XB开发板:http://www.embedsky.com/index.php?s=/Product/show/id/86.html


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-24 12:02 , Processed in 1.062507 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表