ARM development board mount Ubuntu18.04 host NFS shared folder

surroundings

ubuntu host environment: Window10 Bottoms Bottoms of VMWare ubuntu18.04LTS x64 IP 192.168.10.119
configuration of the network segment 192.168.10 Window10 the
development board: T02, ip: 192.168.10.11

1. Install NFS service in ubuntu

apt-get install nfs-common nfs-kernel-server

2. Create a shared directory

mkdir /home/cjl/nfs      此处目录可根据自己的实际情况修改

3. Configure the NFS Service

Modify the configuration file / etc / exports, add the following to the end of the file:

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

When / home / cjl / nfs as a shared directory, * indicating all machines can access the share, rw for read and write permissions, sync content expressed synchronous write memory and hard drive, no_root_squash represent the client to access the shared folder with the root, not map the root user, no_subtree_check said they did not check the parent directory permissions.

Since nfs is an RPC program, use it before, you need mapping the port, set by rpcbind, we need to restart the service:

service rpcbind restart

Once this is complete, you can use the following command to view the NFS shared folder list:

showmount -e​

In ubuntu to mount the NFS shared directory service test is working properly, the command line is as follows:

mount -t nfs 192.168.10.119:/home/cjl/nfs /mnt/test/

4. ARM development board to mount the NFS share ubuntu

Mount command is:

mount -t nfs -o intr,nolock 192.168.10.119:/home/cjl/nfs  mnt/

参考:
1.https://hideonlie.github.io/2019/08/18/Ubuntu18-04-NFS%E7%BD%91%E7%BB%9C%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F/
2.https://blog.csdn.net/weixin_42259646/article/details/90243011
3.https://blog.csdn.net/zkw12312/article/details/81006814
4.https://blog.csdn.net/thisway_diy/article/details/68067350

Guess you like

Origin www.cnblogs.com/michaelcjl/p/12168691.html