Ubuntu Virtual Machine shared folder issues

Source: Internet
Author: User

Always forget, forget to check again very troublesome, here to record.

1. Install the enhanced Feature Pack (guest additions)

After installing Ubuntu, run Ubuntu and log in. Then select "Device (Devices)", "Install the Enhanced Feature Pack (installed guest additions)" In the VirtualBox menu.

You will find an extra disc icon on the Ubuntu desktop, which is automatically loaded into the folder under Folder/media/(like mine). Enter the command line terminal and enter:

Cd/media/cdom0

sudo./vboxlinuxadditions.run

Start the installation kit. You will be prompted to restart Ubuntu after the installation is complete.

Be sure to restart Ubuntu

Be sure to restart Ubuntu

Be sure to restart Ubuntu

2. Setting up Shared Folders

After the reboot is complete, click on the "Devices (Devices)" Shared Folders menu, add a shared folder, the option fixed and temporary refers to whether the folder is persistent. Share name can take a favorite, such as "share", try to use English name.

3. Mount the shared folder

Re-enter virtual Ubuntu and enter it at the command line terminal:

sudo mkdir/mnt/shared

sudo mount-t vboxsf share/mnt/shared

Where "Share" is the name of the shared folder that was previously created. OK, now Ubuntu and host can transfer files.

If you do not want to manually mount each time, you can add an item to the/etc/fstab

share/mnt/shared vboxsf Rw,gid=100,uid=1000,auto 0 0

This will automatically be mounted.

4. Use the following command when uninstalling:

sudo umount-f/mnt/shared

Ubuntu Virtual Machine shared folder issues

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.