---restore content starts---
Zai Root Huanjingxiachaozhuo
$ su
First, build NFS
1. Execute command:sudo apt-get installnfs-kernel-server
2. Execute command:mkdir-p/opt/friendlyarm/mini210/linux/rootfs_mini210 Create a dedicated folder for NFS services
# chmod 777/opt/friendlyarm/mini210/linux/rootfs_mini210
3. After setting up the folder, execute the command:sudo vim/etc/exports Configure NFS
4. Add in the last line:
/opt/friendlyarm/mini210/linux/rootfs_mini210 * (Sync,rw,no_root_squash)
The meaning of this line is:
/OPT/FRIENDLYARM/MINI210/LINUX/ROOTFS_MINI210: Directory shared with the NFS service client, this path must match the path of the file you set up earlier!
*: Allow all network segments to be accessed or use specific IP
RW: Clients hooking up this directory have read and write access to the shared directory
Sync: Data is written to memory and hard disk synchronously
No_root_squash:root users have full administrative access to the root directory.
No_subtree_check: The permissions of the parent directory are not checked. More parameter Description I posted it under the article!
5. After modifying the above configuration file, save exit.
6. Execute the command:
Restart the Rpcbind service.
7. Execute the command :
#/etc/init.d/nfs-kernel-server Restart
Restart the NFS service.
# mkdir/mnt/nfs# Mount 192.168.1.101:/opt/friendlyarm/mini210/linux/rootfs_mini210/mnt/nfs# Ls/mnt/nfs
Arm Linux CmdLine
Root=/dev/nfs nfsroot=192.168.1.101:/opt/friendlyarm/mini210/linux/rootfs_mini210 ip= 192.168.1.102:192.168.1.101:192.168.1.1:255.255.255.0:linux.arm9.net:eth0:off INIT=/LINUXRC console=ttySAC0, 115200
---restore content ends---
Build NFS under Ubuntu and mount it on the Development Board