"Go" VirtualBox under Ubuntu shared file

Source: Internet
Author: User

Original URL: http://www.it165.net/os/html/201209/3435.html

Today I want to copy several files from the host to VirtualBox Ubuntu, however, VirtualBox does not have the kind of VMware drag-and-drop function. So, a bit of information was checked to realize this function. I hereby record it.

Platform: XP + Virtualbox + ubuntu.

Features: Implement file sharing for XP and Ubuntu.

Realize:

1. Run VirtualBox and start Ubuntu.

2. Click on the Virtualbox View menu and select "Install Enhancements". (This is necessary, including the ability to copy and paste the characters of Ubuntu and XP, install the enhancements, it's basically done.)

3. After step 2, the Ubuntu system will be hung on a disk. That's VirtualBox. The enhanced package for the Ubuntu interface will prompt "run" if it is started. (If it is the command line, go to disk <cd/mnt/cdom0/&gt, and then run the program installation <sudo ./vboxlinuxadditions.run>)

4. Restart the system.

5. After the system starts, click VirtualBox < Devices > menu, select < allocate data space, create a < fixed space .> (the directory I created here is E:\ubuntu_share.)

6. To the Ubuntu system, mount the action.
(1). Enter the/mnt/directory. <cd/mnt/>
(2). Create a directory share that is used to mount the shared folder. <sudo mkdir share>
(3). Mount the shared folder. <sudo mount-t vboxsf ubuntu_share/mnt/share/>
(4). Under XP, copy a file to the Ubuntu_share directory and then execute the LS command under Ubuntu/mnt/share/directory. You can see the file with the same name. (The owner of the file you see under Ubuntu is root.)

7. Replace the boot automatically.
Modify the/etc/ftab file. At the end, add the following line:


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


Last: If you uninstall the shared folder, execute the command:

sudo umount/mnt/share/

"Go" VirtualBox Ubuntu shared files

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.