Development board mount & NFS

These are most likely wrong and are just for spit. Many are copied from others. Copy this great god https://blog.csdn.net/tennysonsky/article/details/43485703

 

Mount the file system or partition

Then mount the Ubuntu directory of the PC on the development board, you must communicate, uart is too low. Generally, it is a network. The NFS network file system developed for the Internet can realize the access between devices on the network.
NFS is a network service, which in turn complies with the Linux file system format requirements.

To mount the ubuntu directory file of the PC to the development board, the steps are as follows: 1) Install the NFS service sudo apt-get install nfs-kernel-server /nfs-common
in Linux (ubuntu) on the PC side

2) Configure NFS service
sudo vi /etc/exports


Add /home *(rw,sync,no_root_squash) to the last line in the exports file

Let the /home directory have the following attributes:
rw: read/write permission, the parameter of read-only permission is ro;
sync: data is written to the memory and hard disk synchronously, or async can be used, in which case the data will be temporarily stored in the memory , without writing to the hard disk immediately.
no_root_squash: The attribute of the NFS server shared directory user. If the user is root, then the shared directory has root permissions.

3) Restart the NFS server
sudo service nfs-kernel-server restart

4) Test whether the NFS server is successfully installed on the PC.
We mount the ubuntu home directory \home\edu to the local \tmp directory. Finally, if we are in the /tmp directory, what we see is ?ubuntu home directory\ home\edu, that means the mount was successful.
sudo mount -o nolock 192.168.7.213:/home/edu /tmp

5) Write the corresponding mount command on the development board (operate on the development board terminal)
mount -o nolock,wsize=1024,rsize=1024 192.168.7.213:/home/hbx /tmp
1192.168.7.213 is the directory to be mounted ip, here is the ip of ubuntu

6) Write a mount script (development board operation)


7) After mounting, what should I do to uninstall it?

sudo umount /tmp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324771922&siteId=291194637