Ubuntu can start Linux from nfs 2410.

Source: Internet
Author: User
Ubuntu can choose nfs from 2410 to start Linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. Start the system through NFS:
The NFS server is not installed on ubuntu by default. Therefore:
Apt-get install nfs-kernel-server
Apt-get install nfs-common
The NFS service program and client program have been installed.
Configure NFS: (pc ip Address: 172.16.11.53; Board IP Address: 172.16.11.1)

Configure protmap:
Dpkg-reconfigure portmap
For shocould protmap be bound to the loopback address? Select N

Configuration:/etc/hosts. deny (prohibit any host from connecting to your NFS server), add:
### NFS DAEMONS
Portmap: ALL
Lockd: ALL
Mountd: ALL
Rquotad: ALL
Statd: ALL

Configure/etc/hosts. allow
Allow hosts you want to establish connections with your NFS server. The following steps allow any host whose IP address starts with 172.16.11 (connected to the NFS server), or specify a specific IP address.
### NFS DAEMONS
Portmap: 172.16.11.
Lockd: 172.16.11.
Rquotad: 172.16.11.
Mountd: 172.16.11.
Statd: 172.16.11.

With/etc/hosts. deny and/etc/hosts. allow, you can specify user access.
/Etc/init. d/portmap restart portmap daemon

Configure/etc/exports
Join:
/Friendly-arm/root 172.16.11. * (rw, sync, no_root_squash) // This step may be critical. I wrote (rw) in the brackets and the results will never work.
172.16.11. * The NFS client in the network segment can share the contents of the NFS server/friendly-arm/root directory. the user has read and write permissions, and the user's identity after entering the/friendly-arm/root directory is root

Run # showmount-e to view the NFS server's export list.
If/etc/exports is changed, run # sudo exportfs-r update
Run # sudo/etc/init. d/nfs-kernel-server restart to restart the nfs service

// The above three lines are still running incorrectly, indicating that my nfs is not fully configured, but it does not affect subsequent operations.


Test NFS:
Try mounting the local disk (assuming the IP address of the local host is 172.16.11.53., Mount/friendly-arm/root to/mnt)
# Mount 172.16.11.53:/friendly-arm/mnt
Run # df to check the result

# Umount/mnt

Now you can start the system through NFS.
Run minicom, start the board, and press the space to enter:
Friendly-arm> param set linux_cmd_line "console = ttyS0 root =/dev/nfs nfsroot = 172.16.11.53:/friendly-arm/root ip = 255.: 172.16.11.1: 172.16.11.1: 255.255.255.0: 255: eth0: off"

Friendly-arm> boot
Start the system and you will be able to see the startup information!
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.