NFS configuration in Ubuntu: uClinux Client

Source: Internet
Author: User
Article Title: NFS configuration in Ubuntu: uClinux client. Linux is a technology channel of the IT lab in China. When you perform the following operations for basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, check whether the nfs-kernel-server suite is installed.
 
Go to the new software management package.
 
Create a/nfs folder and change its permission to 777.
 
1. Modify/etc/exports as follows:
 
#/Etc/exports: the access control list for filesystems which may be exported
 
# To NFS clients. See exports (5 ).
 
#
 
# Example for NFSv2 and NFSv3:
 
#/Srv/homes hostname1 (rw, sync) hostname2 (ro, sync)
 
#
 
# Example for NFSv4:
 
#/Srv/nfs4 gss/krb5i (rw, sync, fsid = 0, crossmnt)
 
#/Srv/nfs4/homes gss/krb5i (rw, sync)
 
# Format:
 
# Host name 1 or IP1 in the directory to be shared (parameter 1, parameter 2) host name 2 or IP2 (parameter 3, parameter 4)
 
# Nfs is the shared file, and 192.168.1.242 and 192.168.1.241 are the Client IP addresses that can be shared.
 
# (Rw) the access attribute of the client to the shared file is enclosed in brackets.
 
# Note that the IP address should be a specific IP address, but it is best not to appear *
 
/Nfs 192.168.1.242 (rw)
 
/Nfs 192.168.1.241 (rw, sync)
 
2. Modify/etc/hosts as follows:
 
127.0.0.1 localhost
 
127.0.1.1 prisonmap-desktop
 
# IP address client host name
 
192.168.1.242 wengheiwei-desktop
 
192.168.1.241 uClinux
 
# The following lines are desirable for IPv6 capable hosts
 
: 1 ip6-localhost ip6-loopback
 
Fe00: 0 ip6-localnet
 
Ip6-mcastprefix ff00: 0
 
Ff02: 1 ip6-allnodes
 
Ff02: 2 ip6-allrouters
 
Ff02: 3 ip6-allhosts
 
After modifying and saving the preceding two files
 
3. Restart the portmap service and nfs-kernel-server service.
 
Command:
 
/Etc/init. d/portmap start
 
/Etc/init. d/nfs-kernel-server restart
 
4. Network IP settings of client uClinux (MAGICarm2200:
 
Ip addr: 192.168.1.241
 
Net mask: 255.255.255.0
 
BROADCAST: 192.168.1.1
 
5. Start the uclinux client and switch to the/usr directory.
 
Run mount-t nfs 192.168.1.242:/nfs/mnt-o nolock.
 
If the mounting is successful, the current path is returned.
 
If you switch to/mnt, you can see what is under the/nfs directory on the host!
 

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.