Ubuntu linux development of ARM in the NFS mount configuration, Ubuntu and ARM development board to achieve a shared folder

I. Introduction

NFS (Network File System, Network File System) is one of the mainstream platform for heterogeneous shared file system currently.
NFS can be used for different types of computers, network file operating system, network architecture, and transport protocol operating environment for remote access and sharing.
In general, we use it to achieve the Ubuntu file and ARM development board shared

  • 1.ubuntu:18.04
  • 2.ARM development board: linux system

Second, the configuration of ubuntu

  • 1. Install nfs server
linux@ubuntu:~$ sudo apt-get install nfs-kernel-server
  • 2. Create a folder for sharing (already existing folder too)
linux@ubuntu:~$ mkdir nfs
  • 3. Configure / etc / exports
linux@ubuntu:~$ sudo vi /etc/exports

Figure:

  • 4. Restart nfs server
linux@ubuntu:~$ sudo service nfs-kernel-server restart

Check whether to restart the success of
Linux @ Ubuntu: ~ $ dmesg | tail -5
[18565.869903] NFSD: Starting 90-SECOND, Grace period (NET f0000099)
the restart

Three, ARM development board configuration

  • 1. Make sure the Ubuntu ARM development board and are connected on the network, the same network segment, and
  • 2. My ubuntu the ip: 192.168.2.150
    ip my ARM development board: 192.168.2.158
  • 3. Create a folder for shared files folder to mount ubunt
[root@GEC6818 /pxy]#mkdir nfs
  • 4. Mount the shared file folder Ubuntu
[root@GEC6818 /pxy]#mount -o nolock 192.168.2.150:/home/linux/nfs /pxy/nfs

If you want to cancel mount: mounted and unmounted should quit need to mount the folder

[root@GEC6818 /pxy]#umount /pxy/nfs

Guess you like

Origin www.cnblogs.com/risesource/p/12001675.html