Ubuntu 12.04 installation configuration diagram under NFS

Source: Internet
Author: User
Tags parent directory

I've heard of the NFS service before, but it has not been used, in learning to make the root file system, is really used it, I feel it is good, through it "mount" the production of a good root file system. Its role in the embedded is illustrated with the following picture!

With a network cable will host and Development Board connection, the host after the NFS service, you can transfer files like TFTP to the Development Board, some people will ask, rather than directly with TFTP, but NFS can also mount the root file system Ah! I wait for the cock to compare this first (this article is mainly to record the installation of the use of steps)!

Related reading:

Ubuntu 12.04 Installing NFS server http://www.linuxidc.com/Linux/2012-09/70728.htm
NFS Server Installation configuration for Ubuntu 12.04 with arm file sharing http://www.linuxidc.com/Linux/2012-10/73159.htm
Ubuntu Build NFS Server http://www.linuxidc.com/Linux/2012-10/71930.htm

The installation steps are described below

1, execute the command: sudo apt-get install nfs-kernel-server I installed before, the reason is written down to prevent the reinstallation of the system, these things are how to install.


2. Execute command: MKDIR/ROOT/NFS Create a dedicated folder for NFS services, where the path depends on your preferences! But remember this path.
3. After setting up the folder, execute the command: sudo vim/etc/exports configure NFS
4. Add:/root/nfs * (Rw,sync,no_root_squash,no_subtree_check) in the last line of the article


/root/nfs * (Rw,sync,no_root_squash,no_subtree_check) The meaning of this line is:

/ROOT/NFS: 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 command: Sudo/etc/init.d/portmap restart restart Portmap service. NFS is an RPC program that needs to map a good port before using it and set it through Portmap.

7, execute the command: Sudo/etc/init.d/nfs-kernel-server Restart restart the NFS service.

8. Here, you can use the NFS service.
Reprinted from: http://www.linuxidc.com/Linux/2013-08/89154p2.htm

Ubuntu 12.04 installation configuration diagram under NFS

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.