NFS (Network File system), with NFS can be mounted on the virtual machine directory on the Development Board, so that when the virtual machine Linux cross-compilation will not need to use the SD card to copy the compiled executable files to the Development Board to run, saving development time.
1. First install NFS in Linux
Sudo-s
Apt-get Install Portmap
Apt-get Intsall Nfs-kernel-server
2. Edit the exports file again
Vi/etc/exports
Add a line/forlinux/root * (Rw,sync,no_root_squash)
(First Linux directory to have forlinux/root this directory)
3. Start NFS
/etc/init.d/portmap start
/ect/init.d/nfs start
Then detect if NFS is really running
/etc/init.d/portmap status
If you see the is running instructions are already running.
4. Determine the IP address of the Development Board and virtual machine Linux
Virtual machine with bridge mode
Modify the IP address of the Development Board and virtual machine so that the same network segment
You can ping the other IP in the Development Board or the virtual machine terminal, if the general rules network is normal.
5. Mount NFS on the Development Board
Enter the Linux system on the Development Board to perform MOUNT-T NFS 192.168.0.233:/forlinux/root mnt/nfs-o nolock
Virtual machine IP: Virtual machine NFS Directory mounted to the Development Board directory
You can then devolve the directory to the virtual machine at the bottom of the Mnt/nfs.
6. Use Umount/mnt/nfs to uninstall
If not uninstalled, the next time the development Board will be mounted again when the prompt is busy, you need to first umount and then mount.
enjoy!
Arm-linux Mount NFS File system