NFS (shared by Linux and Linux)

Source: Internet
Author: User
NFS (Linux and Linux sharing)-General Linux technology-Linux technology and application information. For more information, see. NFS (shared by Linux and Linux)
First turn off the Firewall
Enter iptables-F on the terminal
Or
System -- manage -- firewall -- disable

Create and configure the NFS service.
(1) set the shared directory
Run commands
# Gedit/etc/exports
Edit the nfs service configuration file (Note: The file is empty when it is opened for the first time) and add the following content:
/Home/boot * (rw, sync, no_root_squash)
/Home/wangzhen * (rw, async) (my settings)
Where:
/Home/boot indicates the nfs shared directory, which can be used as the root file system of the Development Board.
Mounted through nfs;
* Indicates that all clients can mount the directory.
Rw indicates that the Client Connected to this directory has the permission to read and write the directory.
No_root_squash indicates that the Client Connected to this directory is allowed to have the root identity of the host.
(In linux, right-click the permission to change the boot directory-properties)
(2) start and stop the nfs service
Run the following command line:
#/Etc/init. d/nfs start or service nfs start
This will start the nfs service. You can enter the following command to check whether the nfs service is started.
# Mount-t nfs:/home/boot/mnt
If no error message is displayed, you can view the content in the/mnt directory and
/Home/boot is consistent.
Use this command to stop the nfs service:
#/Etc/init. d/nfs stop or service nfs stop
You can enter
# Setup
System Service, find the nfs service option box in the left column, select it, and click File-> Save
Changes Save settings


# Exportfs-rv // re-export once
# Exportfs-au // Uninstall all

The most important way to debug applications in Embedded LINUX is to run applications on the NFS mount host hard disk, and to debug the applications by observing the information printed on the serial port terminal. In this process, there is a permission problem, that is, after the disk is mounted to the host machine, the NFS mount operation is not performed with the root permission by default, therefore, if you do not have the permission to execute the program on the hard disk of the host machine, you must execute the chmod 777 app on the host machine. The app is the name of the executable file of the application. In fact, this phenomenon is easy for developers to solve, because when executing an application, minicom will report an error, permision denied, or unknown error 4. However, in some cases, the permission issue may not be easily identified:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.