How to create a shared folder between a windows host and Ubuntu using Innotek Virtualbox

This one seemed to be the hardest part for me until i found this simple method of creating a shared folder between windows and a virtual ubuntu.

open the "terminal" in Ubuntu .
You can find it under the "applications" menu from the top left of your screen

here type out the following command

sudo mount.vboxsf name_of_the_folder_that_you_entered_in_the_shared_folder_option location_of_folder_where_you_want_the_contents_to_be_loaded_or_shared


for example if you want to share your My documents folder.

1. Open virtual box
2. Click on settings
3. Click on shared folders.
4. Select your :my documents: folder from the list and hit OK
5. Rename the folder as "documents" simply because it is easier to type it out on the terminal
6. Click on Ok
7. Open ubuntu
8. Go to terminal
9. I'll assume that you want the shared folder to be displayed in a folder called "vshare" inside your "home" folder in Ubuntu .
10. Create a folder called "vshare" in your home folder
11. Type out the following command in the terminal

sudo mount.vboxsf documents /home/username/vshare

this will load the my documents folder into your vshare folder !

NOTE; There is a simple way to find the location of a folder . Simply drag that folder into the terminal . ubuntu will automatically enter the location of the folder. There is no need to type it out :)

3 comments:

Anonymous said...

THANK YOU FOR THIS MAN IT TOOK HOURS TO FIGURE OUT HOW SIMPLE THIS COMMAND WAS

Anonymous said...

I'm trying to do a similar thing: I need to mount a folder from my Windows PC to my Oracle Linux virtual machine. I tried using the command:

mount -t vboxsf share /mnt

Suggestions??

password share folder said...

works on my computer. nice done.

Contributors