Thursday, March 24, 2011

Mount Cygwin HOME directory to Ubuntu VirtualBox

This pertains to a Ubuntu VM hosted on XP - I wanted to access my Cygwin home from within the Ubuntu VM environment. After setting up the VirtualBox share folder and booting the Ubuntu VM, the share folder has been auto-magically mounted into the virtual Ubuntu filesystem. However, it seems that I can't access the mounted drive unless I do so as root. Ungood! The trick is to remount the drive and specify uid and guid:

sudo mount GNEIDERMEIER /media/sf_GNEIDERMEIER -t vboxsf -o uid=1000,gid=1000

Setting the uid/gid to that of my Ubuntu user allows me to access the mounted share without resorting to sudo or su to root.

No comments:

Post a Comment