Ubuntu 10.10 Configuring NFS Network sharing steps

Source: Internet
Author: User

After installing the cross-compilation environment ARM-LINUX-GCC, you begin to configure the NFS network share for sharing files between different Linux hosts and target computers. If you are sharing Windows and Linux, you need samba services. NFS (the network file system) can share a directory of different hosts (different OS) over the network--you can mount the directory of the remote host through NFS, and access the directory just as you would access the local directory!
1, for NFS server-side and client installation: $ sudo apt-get install nfs-kernel-server installed nfs_kernel-server here, the installation is more complete, only installed it can be 2, Configure Portmap two ways to choose either: (1): $ sudo gedit/etc/default/portmap the 127.0.0.1 has been commented out without changing the default.
or (2): $ sudo dpkg-reconfigure portmap select "NO" 3, configure mount directory and permissions $ sudo gedit/etc/exports my configuration is as follows: that is, at the end of the/etc/exports file, add a bit of code:/ Home/share * (Rw,sync,no_root_squash)

/home/share is a shared directory for NFS servers, share can be created if not. * Indicates that any IP can share this directory, can be changed to restricted IP,RW is read and write permissions, sync is the default, no_root_squash that if you are root, the share directory also has root authority, if it is Root_squash, will be restricted to anonymous names, Uid/gid will become nobody permissions.
$ man Exports View details
: Q Exit View 4, Update exports file if you change the/etc/exports, you can
$ sudo exportfs-r
To update this file 5, restart the NFS service $ sudo/etc/init.d/nfs-kernel-server Restart
Restart NFS Service 6, test mount Local Disk (Linux system IP is 192.168.2.104, Mount/home/share to/mnt), you can view the native IP address with ifconfig.
$ sudo mount 192.168.2.104:/home/share/mnt
Use
$ df
Then go to folder mnt to view the results, you can see the contents of the share directory in the MNT folder
$ cd/mnt un-mount
$ umount/mnt7. How do I achieve the target machine's access to shared files? At this point, you can test the NFS service on your own machine, the process is as follows:
$ Mount Serverip:/arm9test/mnt
Where ServerIP is actually the server's IP, do not be less serverip the back of the ":" Oh, will be wrong
If you mount the success of the/MNT can see the/arm9test below the file, if the error is to find out why, it is best to go to the bird's private private food there to see, because the above is very clear.

On their own computer test through the host's shared directory to attach to the target board, so the debugging program is very convenient, do not have to pass the program can be directly debugged. The mount process is as follows:
Start booting 2410 First, enter Linux, enter the shell, configure the IP address of the board,
$ ifconfig eth0 ipaddr
IPADDR is the IP that is set above to allow access to the shared directory, where it can be set to 127.0.0.2, and then execute the command:
$ Mount Serverip:/arm9test/mnt/ext1
Change the ServerIP to your own host IP, this time to confirm that your host's NFS service has been started, and the network cable has been connected, the normal situation can be completed under the mount.

Ubuntu 10.10 Configuring NFS Network sharing steps

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.