Mount NFS Network File system from PC side (Ubuntu) on Arm9+linux board

Source: Internet
Author: User

Mount Concept

In the Windows operating system, mounting usually means assigning a drive letter to a disk partition, including a virtual disk partition.

In the Linux operating system, it refers to a device (typically a storage device) that is attached to an existing directory. (This directory may not be empty, but the previous content in this directory will not be available after the mount.) )

It should be understood that the Linux operating system sees all the devices as files, and it consolidates the entire computer's resources into a large file directory. To access the files in the storage device, we must attach the partition where the file resides to an existing directory and access the storage device by accessing the directory.

Command format:

Mount [-t vfstype] [-ooptions] Device dir

which

1.-t vfstype Specifies the type of file system that is not normally specified. Mount will automatically select the correct type. Common types are:

Disc or disc Image: iso9660

DOS FAT16 file system: MSDOS

Windows9x FAT32 file system: VFAT

WindowsNT NTFS file system: NTFS

Mountwindows file network share: SMBFS

UNIX (LINUX) file network share: NFS

The 2.-o options are primarily used to describe the way devices or files are hooked up. The commonly used parameters are:

Loop: Used to attach a file as a hard disk partition on the system

RO: Hook device with read-only method

RW: Mount device with read-write mode

Iocharset: Specifies the character set used to access the file system

3.device the device to mount (Mount).

Mount point of the 4.dir device on the system.

To implement Mount steps:

IP address at the time of Mount: PC (Ubuntu): 192.168.123.120

arm9:192.168.123.100

(1) Check the native IP address and set it to the ARM board IP in the same network segment (the computer directory)

#ifconfig (view IP address)

#ifconfig eth0 192.168.123.120 Up (ARM9 board IP is 192.168.123.100)

(2) Close the firewall (the computer's firewall, I do not know if this step is required)

#iptables-F

(3) Edit shared directory profile exports in/etc directory, specify shared directory and permissions, etc. (in PC/etc directory)

#gedit/etc/exports

Modify the permissions of the shared directory in the exports file, such as/home/desktop/... (need to share the directory path on the ARM9 board)

Bring the exports into effect,

#exportfs-A

(4) Under the PC Terminal, use Telnet command to go to the ARM9 board

# Telnet 192.168.123.100 (then root)

(5) Mount the folder with the Mount command (in the ARM9 Board directory)

#mount-T Nfs-o nolock 192.168.123.120:/home/wzy2015/desktop/yanxingmei/mnt/nfs (IP address is the IP of the computer: Next: The path is on the computer, As set in the exports, the back path is the place to be mounted on the ARM9 board)

(6) Uninstalling NFS Folders

# Umount/mnt/nfs

After unloading/mnt/nfs, there's nothing inside.

Note: After you turn off NFS service, the shared folder will not be visible, you need to uninstall to see, if you need to save the shared files, the CP command can be copied to other folders, such as

#cp-r/Destination directory/source directory

Mount NFS Network File system from PC side (Ubuntu) on Arm9+linux board

Related Article

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.