Nfs file system is short for NetworkFileSystem, which is a network file system. NFS allows a system to share directories and files with others on the network. By using NFS, users and programs can access files on the remote system just like accessing local files. There are two types of applications in the embedded Linux system: 1. mount a directory of the virtual machine to a directory of the Development Board through the network to modify and compile the virtual machine, run and verify on the development board 2. Mount the embedded root stored on the virtual machine through the network
Introduction to nfs file systems
NFS is short for Network File System, which allows a System to share directories and files with others on the Network. By using NFS, users and programs can access files on the remote system just like accessing local files.
There are two types of applications in the embedded Linux system:
1. mount a virtual machine directory to a directory on the Development Board through the network to modify and compile the virtual machine, and run and verify the directory on the Development Board.
2. Mount the embedded root file system directly stored on the virtual machine through the network to verify and modify the root file system and applications.
In either case, the virtual machine or Linux on the physical machine is used as the server, and the configuration process is the same. We use Red Hat AS5 as an example to explain the configuration process, for other versions of Linux, please search for information for configuration.
RedHatAS5 nfs server configuration
1. Select the following options during system installation:
2. After the installation is complete, you can see the following options in the System Menu:
2. Enable NFS:
System -- Management -- server settings -- service
Check, start, and save the nfs service
3. Configure the nfs server shared folder
4. nfs service restart (optional)
Sometimes it takes a long time. Due to the network environment, the nfs service cannot be normally executed. You can run the following command to restart the nfs service.
# Service nfs restart
5. Service Test-local mounting
Run the following command on the terminal to test whether the nfs server works correctly.
# Mount-o nolock 192.168.220.XX:/home/mnt
// Run on the local machine or another machine, mount the home directory, and access the/mnt directory. If you can see the files in the/home directory, the nfs server works properly.
Note:
Because the/directory is set earlier, all directories can be mounted.