Virtual box data space sharing

Source: Internet
Author: User

HOST: XP

Vm OS: Ubuntu 10.04.4 lts (view bash command: CAT/etc/issue ).

Virtual box version: 4.1.14 R 77440

 

In order to enter the password multiple times, I did not use sudo for operations under root.

You must set the root password when logging on to the root account. By default, the root account does not have a password, but does not allow logon. Therefore, you must set a password before you can log on. Sudo passwd root first requires the user password, and then sets the root

 

1. Add the vboxadditions. ISO image file.

Set ------- storage ------- ide controller ------- add an image file (the directory is in the installation directory of virtual box)

Ii. Install the enhancement feature.

Go to the Ubuntu system and open the terminal.

CD/Media/xxxxx_xxx_xxxx is followed by a folder in media. If the first step is correct, the folder is automatically generated in media.

Sudo./vboxlinuxadditions. Run or directly./vboxlinuxadditions. Run

3. Set sharing

Exit ubuntu. I can leave Ubuntu without setting it.

Set Data Space in virtual box

Set ------- Data Space/Shared Folder ------- fixed allocation ----- select the folder to be shared, do not select auto mount

4. Mount Shared Folders

Go to Ubuntu

Check whether/sbin/mount. vboxsf exists (via ls/sbin/mount)

Check whether vboxsf is loaded (through lsmod | grep vboxsf). If not, run the sudo modprobe vboxsf command to load

Create a mount point through mkdir/mnt/share

Mount-T vboxsf sharename/mnt/share where sharename is the name for sharing in windows, that is, the name set in step 3

V. Set automatic system mounting

Enter sudo gedit/etc/fstab on the terminal

Add tum/mnt/share vboxsf RW 0 0 to the last line

Tum indicates the Share Name in windows.

/Mnt/share indicates the mount point in Ubuntu

Read and Write Permissions Of The vboxsf Mount type RW

Source http://blog.csdn.net/qaz19870418/article/details/6306016

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.