zoukankan      html  css  js  c++  java
  • Centos 上搭建nfs且可挂载到6410开发板

    rpm -qa | grep nfs检查是否安装tftp服务器

    yum  install nfs

    1.服务端安装:

    1.setup

    2.System Services

    3.选中* nfs

    4.service nfs restart 

    权限文件配置示例:

        1.vi /etc/exports

        2.写入/nfsroot/rootfs  172.22.17.*(rw,no_root_squash,sync)

                 /nfsroot/rootfs指本地路径

                 172.22.17.*远程IP,在那个网段的ip

                 (rw,no_root_squash,sync)读写并权限过渡 ,No_root_squash:表示客户端root用户对该目录具备写权限。

                 Sync:同步写磁盘(async:资料会先暂存于内存当中,而非直接写入硬盘)

    3./etc/init.d/nfs restart

    检查nfs是否启动成功:netstat  -a |  grep  nfs ,出现一些乱七八糟的就是成功了

    修改nfsroot的属性:chmod 777 -R /nfsroot

    4.使用mout命令挂载nfs服务器上的共享目录到本地:

    #mount -t nfs 172.22.17.20:/nfsroot/rootfs /mnt/   (要把制作好的根文件系统复制到/nfsroot/这个目录)

    注:172.22.17.20表示的是nfs服务的ip地址

    5.查看是否挂载: ls  /mnt/

    在开发板上用nfs下载的文件目录应该是在/etc/exports这个配置文件里的那个目录,所以要把uImage放入那

  • 相关阅读:
    获取comboBox里面的item使用的方法
    QT格式化代码
    按键槽的写法
    int to String
    sprintf在51单片机中的使用
    学习使用MarkDown
    分享9款超酷的jQuery/CSS3插件
    2014年展望
    操作系统面试
    web一点小结
  • 原文地址:https://www.cnblogs.com/start530/p/3834403.html
Copyright © 2011-2022 走看看