Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Mount NFS network file system     - These days have been tossing in the Linux under the ASP.NET 5, on the next in the other operating systems in the ASP.NET 5 or. NET applications, in order to complete the MS VM (CoreCLR) run is not far Reach, the effect of the application.


- CentOS yum source as the default setting methods in DVD (Linux)

- CentOS 6.6 shortcut command execution (Linux)

- Linux firewall Iptables study notes (Linux)

- Linux Learning --- disk partition / relational representation + mount (Linux)

- Ubuntu file security removal tool (Linux)

- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)

- Firewall chapter of Linux server security configuration (Linux)

- SUSE Linux install Oracle 10g and problem solving (Linux)

- CentOS 5.10 installed Oracle 11G R2 (Database)

- Try the command ip, ifconfig is obsolete under Linux (Linux)

- Ubuntu and Archlinux install Notepadqq 0.50.2 (Linux)

- Talk about Java in the collection (Programming)

- Java executable file to read information from a database copy (Programming)

- Java Foundation - The relationship between abstract classes and interfaces (Programming)

- Spring JDBC Comments (Programming)

- Linux operating system log system (Linux)

- Let the terminal under Mac OS X as like Linux has displayed a variety of colors (Linux)

- Linux installed PCRE (Linux)

- Oracle JDK installation under Ubuntu Linux (Linux)

  Mount NFS network file system
  Add Date : 2017-01-08      
  I admit that I was a novice, no network knowledge to carry out his mount nfs network file system, spent five days and only then nfs network file system successfully mounted on board A8, A8 board implements file sharing and virtual machines. Share personal experiences:

The following is based on the installation has been completed for nfs

Board wiring problems: I was to board and computer are connected to the same router, ensure that the same network segment, my Gateway is, so my computer, a virtual machine, it is also a gateway to the board, my computer ip address is, the virtual machine ip is, board ip is, found that the above is 192.168.0. *. Haha, they are in the same segment of the.

The interpretation of the command

ifconfig (on the virtual machine is actually view the network information such as ip address, gateway In window can be viewed using the ipconfig)

 How to Start the NFS file system

Step one, PC side virtual machine setting

1. Set the IP address of the virtual machine

[Root @ localhost rootfs] # ifconfig eth0

This put the popular point is to modify the virtual machine ip address

2. Start the NFS server

[Root @ localhost rootfs] # /etc/init.d/nfs restart

3. Set the NFS shared directory

[Root @ localhost rootfs] # vim / etc / exports

/ * Write the contents of the following / etc / exports file * /

/ Rootfs * (rw, sync, no_root_squash)

Note: rootfs is the root directory of your shared nfs file system is equivalent to root, folder inside what you know, what is inside the bin, sbin, usr, and so on, not your image file. Do not get me wrong, I was being dragged this issue for several days, the net peak in the file: source / grafts / transplantation Code / root file system /

It is this file:

rw: read / write permission, read-only access to ro

Sync: synchronization data written to memory or hard disk, you can use async, then the data are temporarily stored memory is not written to disk.

no_root_squash: shared directory attributes NFS server, if the user is root, then for the shared directory have root privileges.

Step two, select [1] Download u-boot to NAND FLASH

Step three, choose [2] to download the kernel NAND FLASH

Ps: If you have already downloaded the file system yaffs2 go, if the following set up, in which there is no impact.

After completion of the above two programming, press q to enter the u-boot command line. Enter the printenv: You can view your current environment variables

Step four, into the u-boot environment variable IP

1. Set the IP Development Board

[Webee_210] # set ipaddr

2. Set the PC IP (also in the u-boot command line set here)

[Webee_210] # set serverip // set the virtual machine as the server ip

[Webee_210] # set gatewayip // set the A8 gateway

3. Set the NFS startup parameters

[Webee_210] # setenv bootargs noinitrd root = / dev / nfs

nfsroot = / webee, tcp

ip = :: eth0: off init = linuxrc

console = ttySAC0,115200

Explain what is the meaning of each parameter

root = / dev / nfs, // represented by nfs mounted file system

nfsroot = / webee, tcp // represents the virtual machine IP: shared virtual machines directory

ip = :: eth0: off // represents the board IP: Virtual Machine IP (server): Gateway IP: mask :: eth0: off

4. Write the set parameters just NAND FLASH

[Webee_210] # saveenv

At this point you can use printenv view parameters

We can see that many of the above environment variables are set by our own.

To this step you can use a computer, a virtual machine, the board will find the following ping each other, this is normal:

 Board computer ping nowhere

Virtual machine ping nowhere board

Board computer ping through

Board ping through virtual machine

Ping the computer through the virtual machine

Computer ping through virtual machine

5. Linux kernel read into memory from NAND FLASH, and then start the kernel.

[Webee_210] # nand read 0x20007fc0 0x100000 0x500000

6. NFS boot kernel

[Webee_210] # bootm 0x20007fc0

 After the start

The above can see VFS: mount root (nfs filesystem) ondevice 0: 9 indicates nfs file system has been successfully mounted.

To this step you can use a computer, a virtual machine, the board will find the following ping each other, this is normal:

 Board computer ping through

Virtual machine ping through the board

Board computer ping through

Board ping through virtual machine

Ping the computer through the virtual machine

Computer ping through virtual machine

Ping board computers, gateways, virtual machine

Virtual machine ping board

Ping board computer

Haha, it is not a success

Try to create a new file 123.c on the board

Look there on the virtual machine

With the successful, it ended.
- Seven Steps to Help Google Chrome Speed - (Linux)
- Production Environment MongoDB Fragmentation and Cluster Solution (Database)
- Fedora network set up simple (Linux)
- Nginx + uWSGI + Django + Python Application Architecture Deployment (Server)
- Linux cd command Detailed (Linux)
- grep command Series: grep command to search for multiple words (Linux)
- Ubuntu root user profiles (Programming)
- Linux Shell Understanding and Learning (Linux)
- Introduction and use of the Raspberry Pi (Linux)
- To explore the caching mechanism for Android ListView (Programming)
- Linux crontab command format example (Linux)
- Installation Mate Desktop in FreeBSD 10.1 (Linux)
- How Linux Log Analysis (Linux)
- Shutdown - an advanced shutdown artifact (Linux)
- Character Encoding notes: ASCII, Unicode and UTF-8 (Linux)
- Linux operating system to solve a serious fault handling (Linux)
- Android components series Activity (Programming)
- MySQL and MariaDB traditional master-slave cluster configuration (Database)
- Three easy open source firewall on the Linux platform (Linux)
- iOS GCD multithreading simple to use (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.