VirtualBOX create a shared folder for CentOS

Source: Internet
Author: User
Set the shared folder, click devices, and select the shared folder menu, as shown in. Click to add a shared folder. the fixed and temporary options indicate whether the folder is persistent. Share names can be obtained at will, such as share1. try to use English names without spaces. select the folder location, for example, E: \ share1. Click OK, as shown in. Open the terminal and create

Set shared folders

Click devices and select the shared folder menu, as shown in.

 

Click to add a shared folder. the fixed and temporary options indicate whether the folder is persistent. Share names can be obtained at will, such as share1. try to use English names without spaces. select the folder location, for example, E: \ share1. Click OK, as shown in.

 

Open the terminal and create a folder in the CentOS system, for example, create a share1 folder under/mnt.

The code is as follows:

 

Linux code
  1. Mkdir/mnt/share1

In the CentOS system, access the shared folder created in the previous system.

The code is as follows:

Linux code
  1. Mount-t vboxsf share1/mnt/share1

"Share1" is the name of the previously created shared folder. "/Mnt/share1" is the path for sharing folders in CentOS, as shown in.

 

Now the VM and host can upload files to each other. copy the two files in the original system "E: \ share1" and view them in CentOS, as shown in, you can see these two files in CentOS.

 

Shared Folder setting is complete.

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.