setup folder sharing between macbook pro(host) and ubuntu 9.10(guest) using VirtualBox

Actually, it’s quite simple by following the steps below:

Step 1: On your host OS, macbook pro in my case, go to VirtualBox->machine->settings->Shared Folders, add the folder, say folder1, you want to share with your guest OS.

Step 2: On ubuntu 9.10, create a new folder, with name, say folder2, then edit your /etc/fstab file, add the following line

folder1 ~/folder2 vboxsf rw,gid=1000,uid=1000,auto 0 0

Then reboot your guest OS, then you will see folder1 is automatically mounted.

Note, the names of two folders must be different.



  1. #1 by jonathan on September 4, 2011 - 6:52 pm

    when I setup sharing folder by following these steps, I came across a problem: it said “error … mount folder2” (sth similar to this), when I reboot the system.

    Finally, I fixed the problem by replacing “~/folder2” (relative path) with “/home/xxx/folder2” (absolute path).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: