NFS installation and configuration in Ubuntu12.04

Source: Internet
Author: User
I have heard of the nfs service before, but it has never been used. When I learned how to create the root file system, I actually used it. I think it is good, through IT & ldquo; mount & rdquo; The created root file system. Its role in the embedded system is illustrated in the following figure! Connect the host to the Development Board with a network cable. After the nfs service is enabled on the host, you can transfer files to the development board like tftp. Some people may ask, it is better to directly use tftp, but nfs can also mount the root file system! I will wait

I have heard of the nfs service before, but it has never been used. When I learned how to create a root file system, I actually used it. I think it is good, it is used to mount the root file system. Its role in the embedded system is illustrated in the following figure!

 

Connect the host to the Development Board with a network cable. After the nfs service is enabled on the host, you can transfer files to the development board like tftp. Some people may ask, it is better to directly use tftp, but nfs can also mount the root file system! Let me wait for a comparison (this article mainly records the Installation and Use 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 and ARM file sharing http://www.linuxidc.com/Linux/2012-10/73159.htm
Build nfs server http://www.linuxidc.com/Linux/2012-10/71930.htm in Ubuntu

The installation steps are as follows:

1. Execute the command: sudo apt-get install nfs-kernel-server I installed earlier. The reason why I wrote it down is to prevent installation of these things after the system is reinstalled.

2. Run the command: mkdir/home/song/nfs to create a dedicated folder for the nfs service. The path here depends on your preferences! But remember this path.

3. After creating the folder, run the command: sudo vim/etc/exports to Configure nfs.

4. Add/home/song/nfs * (rw, sync, no_root_squash, no_subtree_check) in the last line of the article)

/Home/song/nfs * (rw, sync, no_root_squash, no_subtree_check) indicates:

/Home/song/nfs: Directory shared with the nfs service client. The path must be the same as the path of the file you set earlier!

*: Allow access from all network segments or use specific IP addresses.

Rw: The Client Connected to this directory has read and write permissions on the shared directory.

Sync: synchronous data writing memory and Hard Disk

No_root_squash: the root user has full permission to manage and access the root directory.

No_subtree_check: the permission of the parent directory is not checked. More parameter descriptions are posted below!

5. Save the modified configuration file and exit.

6. Run sudo/etc/init. d/portmap restart to restart the portmap service. Nfs is an RPC program. before using it, you need to map the port and set it through portmap.

7. Run sudo/etc/init. d/nfs-kernel-server restart to restart the nfs service.

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.