Reprint please indicate the source of the original, http://www.cnblogs.com/flyingcloude/p/6992400.html
For subsequent program debugging convenience, this allows QEMU under the Linux-arm sharing Ubuntu for NFS files
Before being mounted,
Configure the IP address for linux-arm first
Modify
Http://www.cnblogs.com/flyingcloude/archive/2012/10/19/2730593.html in the text,
sudo qemu-system-arm-m versatilepb-cpu arm1176-m 256-hda rootfs.ext2-kernel zimage-append "ROOT=/DEV/SDA"-serial St Dio
For
-net nic,vlan=0-net Tap,vlan=0,ifname=tap0,script=qemu-ifup
IP and other information according to the actual situation to fill, so that the Linux-arm IP address is set successfully.
Configure the update source for Linux-arm again
Run code
Vim/etc/apt/sources.list
# Debian Testing Squeeze Official/non official Repository List
# by PAOLO C. (www.paolocampitelli.com/debian-repository-list)
# to Disable a repository put a # before repository link.
# [Last update:08/05/2010]
# # # official Debian Squeeze Repository # # #
Deb Ftp://ftp.it.debian.org/debian/testing main contrib Non-free
DEB-SRC ftp://ftp.it.debian.org/debian/testing Main contrib Non-free
Debian has always been known for its rigor, so the testing source is also very stable.
Run again
Apt-get Update
In this way, apt-get can also be used in Linux-arm.
Install Nfs-common for Linux-arm
Run
Apt-get Install Nfs-common
Next Mount NFS Files
SHOWMOUNT-E 192.168.1.128
192.168.1.128 for Ubuntu IP address
SHOWMOUNT-E See what NFS files are available on Ubuntu
Mount 192.168.1.128:/home/ubuntu/nfs/nfs
At this point, Linux-arm and Ubuntu through the/home/ubuntu/nfs folder for file sharing, easy to follow up the debugging work.
Report:
Here are some common parameters for NFS sharing:
RO read-only access
RW Read-Write access
Sync all data is written to share on request
Async NFS can request the data before writing it
Secure NFS is sent over a secured TCP/IP port below 1024
Insecure NFS is sent over 1024 ports
Wdelay If multiple users are writing to the NFS directory, the group is written to (default)
No_wdelay if more than one user wants to write to the NFS directory, it is written immediately and does not require this setting when using Async.
Hide does not share its subdirectories in the NFS shared directory
No_hide subdirectories for shared NFS directories
Subtree_check if you share a subdirectory such as/usr/bin, Force NFS to check the permissions of the parent directory (default)
No_subtree_check and above, do not check parent directory permissions
All_squash shared file UID and GID mapping anonymous user anonymous, suitable for common directories.
No_all_squash preserve the UID and GID of shared files (default)
Root_squash all requests from the root user are mapped to the same permissions as the anonymous user (default)
No_root_squash Root user has full administrative access to the root directory
Anonuid=xxx specifying the UID of an anonymous user in an NFS server/etc/passwd file
Anongid=xxx specify GID for anonymous users in NFS server/etc/passwd files
Reference http://www.ha97.com/918.html
Reprint please indicate the source of the original, http://www.cnblogs.com/flyingcloude/p/6992400.html
Linux-arm and Ubuntu for NFS use