【基于IMX6ULL驱动开发学习】ARM开发板nfs挂载虚拟机目录

虚拟机端
1)执行以下命令安装nfs

sudo apt-get install nfs-kernel-server portmap

2)配置nfs共享目录

配置文件为/etc/exports,打开配置文件屏配置共享目录

sudo gedit /etc/exports

修改配置文件,在文件里面增加以下内容

/home/me/Linux_ARM/IMX6ULL/hello_driver     *(rw,sync,no_root_squash,no_subtree_check)

/home/me/Linux_ARM/IMX6ULL/hello_driver 是共享目录,可以自行修改指定。

开发板端挂载虚拟机的指定目录命令

mount -t nfs -o nolock,vers=3 192.168.1.200:/home/me/Linux_ARM/IMX6ULL/hello_driver /mnt

你可能感兴趣的:(IMX6ULL,arm开发,NFS,挂载,IMX6ULL,mount)