Implementation steps:
1. Server side: sudo apt-get install Portmap
2. Server side: sudo apt-get install Nfs-kernel-server
3. Client: sudo apt-get install Nfs-common
4. Server-side configuration: sudo gedit/etc/exports
Added:/home * (Rw,sync,no_root_squash)
(Shared directory) (Allow IP)
(RW permissions are erasable, and Ro is read-only,
Sync means the data is written synchronously to the memory and hard disk, and async means that the data is staged in memory, not directly to the hard disk.
Open client uses root to operate the server's file system, then open No_root_squash, Root_squash not allowed.
5. Server-side boot: sudo/etc/init.d/portmap restart
6. Server-side boot: sudo/etc/init.d/nfs-kernel-server restart
7.arm Board Connection: Host: sudo ifconfig eth0 192.168.9.131 netmask 255.255.255.0
ARM board: ifconfig eth0 192.168.9.102 netmask 255.255.255.0
8.arm on board mount:mount-o nolock 192.168.9.131:/home//mnt/fat/
(Host IP and shared directory) (ARM Board catalog)
Automatic synchronization of files on the arm board after Mount
(
1. Problems occurred:
Reason given by Server:permission denied
Solve:
Server-side boot must be sudo boot, or start failed, service refused
2. Problems occurred:
svc:failed to register LOCKDV1 RPC service (errno 111).
Lockd_up:makesock failed, error=-111
Mount:mounting 192.168.1.101:/home/share on/mnt/hosts Failed:connection refused
Then change to:
Mount-t Nfs-o nolock 192.168.1.101:/home/share/mnt/hosts
3. Problems occurred:
Mount:mounting 192.168.1.101:/home/share on/mnt/hosts failed:device or resource busy
Solve:
This prompt appears after the Mount command on Mount and the device is running without having to mount again
If you want to mount again, you can first umount/mnt/hosts
)
NFS Server Installation configuration for Ubuntu 12.04 and ARM Development Board file sharing