Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Mount NFS network file system     - Setting the RedHat9 Intrusion Detection System (Linux)

- Oracle Standby Redo Log experiment (Database)

- Ubuntu 14.04 Boot Repair (Linux)

- Oracle 11g Export guide problem not an empty table (Database)

- Compile Android libwebcore.so error occurs when solving (Programming)

- Redis Linux system installation guide (Database)

- How to install the Ruby runtime environment on Mac OS X (Linux)

- FileZilla 3.10.1.1 install on Ubuntu 14.10 (Linux)

- VirtualBox install Windows 8.1 has encountered an error 0x000000C4 solutions (Linux)

- Adjustment expand VMDK format VirtualBox disk space (Linux)

- Node.js form --formidable (Programming)

- MySQL service failed to start thinking of settlement under CentOS7 (Database)

- Gitlab installation under CentOS 7 (Linux)

- Sort sql MySQL 5.6 upgrade slow Cause Analysis (Database)

- 12 Linux Process Management Commands (Linux)

- CentOS7 minimized installation can not find the 'ifconfig' command - Repair Tips (Linux)

- Linux system man help tips (Linux)

- Analysis of native Java keywords (Programming)

- To create a problem by the statement date comparison of the difference between MySQL and Oracle (Database)

- Use smartmontools view the health status of hard disk (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 192.168.0.1, so my computer, a virtual machine, it is also a gateway to the board, my computer ip address is 192.168.0.111, the virtual machine ip is 192.168.0.121, board ip is 192.168.0.120, 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 192.168.0.121

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 192.168.0.120

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

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

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

3. Set the NFS startup parameters

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

nfsroot = 192.168.0.121: / webee, tcp

ip = 192.168.0.120: 192.168.0.121: 192.168.0.1: 255.255.255.0 :: 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 = 192.168.0.121: / webee, tcp // represents the virtual machine IP: shared virtual machines directory

ip = 192.168.0.120: 192.168.0.121: 192.168.0.1: 255.255.255.0 :: 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.
     
         
         
         
  More:      
 
- Linux filtration empty file command summary (Linux)
- Regular expressions in Perl (Programming)
- To protect the temporary files for Linux security (Linux)
- MySQL multi-instance configuration (Database)
- How to configure security management services under Linux (Linux)
- Experts teach you how to identify the actual functional differences between the firewall (Linux)
- How to find an IP address through the command line (Linux)
- Formatting Java floating-point types (Programming)
- Killall five options you might not know (Linux)
- Ubuntu 12.04 installation DHCP Server (Server)
- Java NIO2: Buffer (Programming)
- How to install Ubuntu California - the calendar application (Linux)
- Using IPFilter bridge filter in the FreeBSD system (Linux)
- Linux System Getting Started Tutorial: How do you know Shell which is currently being used (Linux)
- Without Visual Studio .NET Windows application development (Programming)
- JavaScript Advanced Programming notes event capture and event bubbling (Programming)
- Fedora 19/20 and Debian Jessie / Sid users to install FFmpeg 2.3.2 (Linux)
- CentOS7 virtual machine settings, and bridging problems (Linux)
- Use Epoll develop high-performance application server on Linux (Server)
- Installation configuration CUDA under Ubuntu 14.04 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.