Build NFS under Ubuntu and mount it on the Development Board

Source: Internet
Author: User
Tags parent directory

---restore content starts---

Zai Root Huanjingxiachaozhuo

$ su

First, build NFS
1. Execute command:sudo apt-get installnfs-kernel-server
2. Execute command:mkdir-p/opt/friendlyarm/mini210/linux/rootfs_mini210 Create a dedicated folder for NFS services

# chmod 777/opt/friendlyarm/mini210/linux/rootfs_mini210

3. After setting up the folder, execute the command:sudo vim/etc/exports Configure NFS
4. Add in the last line:

/opt/friendlyarm/mini210/linux/rootfs_mini210 * (Sync,rw,no_root_squash)

The meaning of this line is:

/OPT/FRIENDLYARM/MINI210/LINUX/ROOTFS_MINI210: 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 the command:

Restart the Rpcbind service.

7. Execute the command :

#/etc/init.d/nfs-kernel-server Restart

Restart the NFS service.

# mkdir/mnt/nfs# Mount 192.168.1.101:/opt/friendlyarm/mini210/linux/rootfs_mini210/mnt/nfs# Ls/mnt/nfs

Arm Linux CmdLine

Root=/dev/nfs nfsroot=192.168.1.101:/opt/friendlyarm/mini210/linux/rootfs_mini210 ip= 192.168.1.102:192.168.1.101:192.168.1.1:255.255.255.0:linux.arm9.net:eth0:off INIT=/LINUXRC console=ttySAC0, 115200

---restore content ends---

Build NFS under Ubuntu and mount it on the Development Board

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.