Ubuntu Shared Folder Mounting

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
mrb1946
Posts: 2
Joined: 9. Oct 2008, 16:49

Ubuntu Shared Folder Mounting

Post by mrb1946 »

I have just installed Ubuntu on my VirtualBox. I love it so far, the only thing is, I was trying to set up the Shared Folder, and I don't know the command to type in the terminal. I have set up a shared folder in VirtualBox by going to devices>Shared Folders, and then chose Macintosh HD. VB names it as "ROOT." What do I need to do now?

Thanks
vkov_tinsky
Volunteer
Posts: 218
Joined: 5. Apr 2008, 20:18

Post by vkov_tinsky »

mrb1946 wrote:What do I need to do now?
Read section 4.5. "Folder sharing" in the manual. :)

Assuming your share is called "ROOT" you could do something like:

Code: Select all

sudo mkdir /mnt/mac_root
sudo mount -t vboxsf ROOT /mnt/mac_root
If you want the share to be permanent you can then add an entry to /etc/fstab, something like:

Code: Select all

ROOT   /mnt/mac_root   vboxsf   none   0 0
Regards,
VT
mrb1946
Posts: 2
Joined: 9. Oct 2008, 16:49

Post by mrb1946 »

I'm sorry but I'm new to Ubuntu. Where does the first code put the Shared Folder? Or where will I find it?
vkov_tinsky
Volunteer
Posts: 218
Joined: 5. Apr 2008, 20:18

Post by vkov_tinsky »

Code: Select all

sudo mkdir /mnt/mac_root 
sudo mount -t vboxsf ROOT /mnt/mac_root
The first line creates a directory under /mnt called mac_root. The second line then mounts it there (/mnt/mac_root). You can of course call this whatever you want (as long as the directory where you decide to mount it exists).
In Ubuntu you can then access it by going to "File System" -> /mnt/mac_root.

Regards,
VT
Post Reply