How to mount the target board to Ubuntu

Source: Internet
Author: User
After a few days, I finally solved the problem. In fact, it was the mount problem. I used the ritai dm365 target board and mounted my own virtual machine Ubuntu, but the first step is not to connect: first, start the following statement from modifying the last line of etc/exports (not everyone has the same problem, but the method is basically the same) realtimedsp @ realtimedsp-desktop :~ /Workdir $ cd/etc/realt

After a few days, I finally solved the problem, but it was actually the mount problem.

I am using the dm365 target board of ruitai, And then mount my own virtual machine Ubuntu, but it cannot be connected.

Step 1:

First, modify the last line in etc/exports.

The following statement (not everyone has the same problem, but the method is basically the same)

Realtimedsp @ realtimedsp-desktop :~ /Workdir $ cd/etc/
Realtimedsp @ realtimedsp-desktop:/etc $ cat exports
#/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, no_subtree_check) hostname2 (ro, sync, no_subtree_check)
#
# Example for NFSv4:
#/Srv/nfs4 gss/krb5i (rw, sync, fsid = 0, crossmnt, no_subtree_check)
#/Srv/nfs4/homes gss/krb5i (rw, sync, no_subtree_check)
#
/Home/realtimedsp/workdir/filesys 192.168.1. * (rw, sync, no_root_squash)

Realtimedsp @ realtimedsp-desktop:/etc $ sudo gedit exports rewrite the preceding statement

Change to the same ip segment as your target board. In this case, all machines at 192.168.1 can mount this host (including your target board)

Then use the following command to make it take effect:
Realtimedsp @ realtimedsp-desktop:/etc $ exportfs-rv or the following sentence

Realtimedsp @ realtimedsp-desktop:/etc $ sudo exportfs-r

Step 2:

Then enable nfs for ubuntu. The command is as follows:

Realtimedsp @ realtimedsp-desktop:/etc $/etc/init. d/portmap start
* Starting portmap daemon... * Already running. [OK]
Realtimedsp @ realtimedsp-desktop:/etc $/etc/init. d/nfs-kernel-server restart
* Stopping NFS kernel daemon

Step 3:

You can use the following statement to stop iptable:
Realtimedsp @ realtimedsp-desktop :~ /Workdir $ sudo iptables-F

Or simply uninstall it;
Realtimedsp @ realtimedsp-desktop :~ /Workdir $ sudo apt-get remove iptables

Finally, I unmount the ubuntu firewall directly. The process is as follows:

Realtimedsp @ realtimedsp-desktop :~ /Workdir $ sudo apt-get remove iptables
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... completing www.linuxidc.com
The following software packages are automatically installed and are no longer in use:
Linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic
Use 'apt-get autoremove 'to delete them.
The following software packages will be [uninstalled ]:
Iptables ufw
A total of 0 software packages have been upgraded, and 0 new software packages have been installed. 2 software packages need to be uninstalled, and 218 software have not been upgraded.
After decompression, the space of 2159kB is empty.
Do you want to continue? [Y/n] y


If the above steps do not work, shut down the windows Firewall, you should be able to mount it.

By default, ubuntu does not have firewall. Unless you have installed it yourself, you can delete it if you have installed it ..
If you have enabled your own iptables, delete it.

Sudo apt-get remove iptables

After sudo su root is used, sudo apt-get remove iptables can be used.
You can uninstall it.

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.