How to share files with the Development Board and host

Source: Internet
Author: User

When using GDB on the Development Board debugging, sometimes need to look at the source code, but the source code is too large, the development Board capacity is limited to pass through the SCP every time the development Board, or do not want to use the SCP each time file, then need both to access the file. You can use NFS in the following ways:

1, on the host Ubuntu need to have NFS services: sudo apt-get install Nfs-kernel-server

2, enter the/etc/exports into the modification, requires root permissions (Note If the first step does not do, you may not find the file). Inside add:

/HOME/XX * (Rw,sync,no_root_squash,no_subtree_check)

The/home/xx above is the file directory you want to share, and the rest of the parameters are primarily permissions settings.

3. Restart NFS Service: Sudo/etc/init.d/nfs-kernel-server restart

4, in the end can be mount, run on the Development Board: MOUNT-T NFS Host Ip:/home/xx/mnt-o Nolock

Where the host ip:/home/xx is your host to share the directory,/MNT is the development Board to mount to the place.

If Mount:wrong fs type appears, bad option, bad superblock on XX, missing codepage or helper program,

is the Development Board/sbin/no Mount.nfs file, on the Development Board to install Nfs-common can be. Method with Ubuntu:

sudo apt-get install Nfs-common, if no server is found, run sudo apt-get update on the developer board before installing.

You can then go to the/MNT directory to see the shared files.



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.