NFS configuration and OK6410NFS mounting in Ubuntu11.10

Source: Internet
Author: User
Whether it is TFTP transmission or NFS mounting, ensure that the Development Board can ping Ubuntu under the Virtual Machine. Otherwise, it is a waste of time to make more efforts. How to configure the Development Board to ping the Ubuntu virtual machine, see the previous "Ubuntu11.10 to build a tftp server and on the OK6410 Development Board using tftp [VMware + Ubuntu] http://www.linuxidc.com/Linux/2012-03/55994.htm

Whether it is TFTP transmission or NFS mounting, ensure that the Development Board can ping Ubuntu under the Virtual Machine. Otherwise, it is a waste of time to make more efforts.
How to configure the Development Board to ping the Ubuntu virtual machine, see the previous Ubuntu 11.10 to build a tftp server and on the OK6410 Development Board using tftp [VMware + Ubuntu] http://www.linuxidc.com/Linux/2012-03/55994.htm

1. operating system platform, Ubuntu 11.10 (VMware)

2. Install the following software on Ubuntu:
# Sudo apt-get install nfs-common nfs-kernel-server portmap


3. introduce several commands on the Server:
# Sudo/etc/init. d/nfs-kernel-server start // start the nfs-server Service
# Sudo/etc/init. d/nfs-kernel-server stop // disable the nfs-server Service
# Sudo/etc/init. d/nfs-kernel-server restart // restart the nfs-server Service


4. Modify the nfs configuration of the Server
# Sudo gedit/etc/exports
Add/home/nfs * (ro, sync, no_root_squash) to the next line)
/Home/nfs indicates the folder to be shared. do not include Chinese characters.
* Indicates the bound IP address. * indicates any IP address.
Ro indicates read-only, rw indicates read/write
Sync indicates Synchronization
No_root_squash indicates the permission
For more information, see other documents.
5. Connect the Development Board to your computer
(1) Ethernet cable connection: the ethernet cable port of the computer is connected directly to the Ethernet port of the Development Board;
(2) connection string: connect the serial port on the Development Board to the computer (you can use USB to transmit the serial port );
(3) restart the development board to bring it to the linux system.
(4) if everything is normal, the following information will be displayed in the serial port:


Starting Qtopia2, please waiting...


Please press Enter to activate this console. touch...
Dm9000 dm9000.0: eth0: link up, 100 Mbps, full-duplex, lpa 0xC5E1

[Root @ www.linuxidc.com] #

6. If you can ping Ubuntu on a super terminal, the Development Board and Ubuntu have established a network connection. If the ping fails, there may be the following reasons:
(1) check whether the network configuration of the virtual machine is in the bridge mode (Bridged)
(2) If the wireless network is connected, disconnect the wireless network.
7. Enter the following command in the Super Terminal:
[Root @ www.linuxidc.com] # mount-t nfs 192.168.0.1:/home/nfs/mnt/nfs-o nolock
/Home/nfs corresponds to the path in Ubuntu
Path in the Development Board corresponding to/mnt/nfs
If the mounting is successful, it will be displayed in the Super Terminal
[Root @ www.linuxidc.com] #
Otherwise, an error message is displayed.

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.