Share folders between Ubuntu and mac running in Virtualbox

Information
MAC OS X Lion (Host OS) and Ubuntu 11.04 (Guest OS).

1. Open VM and go to tab Devices -> Shared Folders
2. In the right hand side find the add folder button and click it
3. In the folder path filed select other and browse your folder that you want to share
4. Then then check Auto-mount and Make Permanent and hit ok
5. Shutdown the VM
6. Start the VM and create a folder like vbox in the Ubuntu Desktop
7. open the Terminal from ubuntu and write the following two commands

  
umask && id
sudo mount.vboxsf -o umask=xxx,gid=yyy,uid=zzz shared_folder-name_in_your_mac full_path_of_vbox_ubuntu 

10. fill xxx = your umask, yyy = your gid, zzz = your uid

Hmm now check folder vbox 🙂

Reference
http://askubuntu.com/questions/123025/what-is-the-correct-way-to-share-directories-in-mac-and-ubuntu-with-correct-perm

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s