Third Error

Sync Host and Guest Folders in VirtualBox

H:\\Program Files in /home/jason/windows/Program Files

As a follow up to our seamless Ubuntu in Windows tutorials, we’re going to show you how to sync a Windows (host) folder to a folder in the Ubuntu (guest). You’ll need to have guest additions installed on the guest OS for this one.

For this tutorial we’ll be syncing the H: drive on Windows (yours will probably be C:) with /home/jason/windows in Ubuntu.

Create a New Share

Shared Folders Icon

When you boot up into Ubuntu, do not switch to Seamless Mode just yet. Right click the blue folder icon at the bottom right hand corner.

Add New Share

The Shared Folders dialog will popup. Click the folder icon with the plus sign to add a new share.

Add Share: H_DRIVE

Browse for a folder using the yellow folder icon next to Folder Path. I chose the location of my Windows installation, H:.

VirtualBox will then automatically fill the Folder Name, which you can change if you don’t like it. I kept the default. Make sure Make Permanent is checked. Click OK.

Mount the Share in Ubuntu

You can switch to seamless mode if you want now.

Create Directory: Windows

Open up Terminal (Applications → Accessories → Terminal). You’ll default automatically to your home folder. For the sake of simplicity, we’re going to mount the Windows drive inside your home folder.

Type the following to create a windows directory:

mkdir windows

You’ll have created /home/YOUR_USERNAME/windows

Mount H_DRIVE in /home/jason/windows

To mount your new drive, type the following:

sudo mount -t vboxsf YOUR_SHARE_NAME_GOES_HERE /home/YOUR_USERNAME/windows

For example, I’d type:

sudo mount -t vboxsf H_DRIVE /home/jason/windows

That’s about it to syncing a folder on your host Windows machine to an Ubuntu guest. If you have any question, direct them to the comments section below.

Tags: , ,

This entry was posted on Thursday, August 14th, 2008 at 11:33 pm and is filed under Frontpage, Software, Ubuntu, Windows. You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a response, or trackback from your own site.

One Response to “Sync Host and Guest Folders in VirtualBox”



radio said on September 24th, 2008 at 7:36 pm

thx, this helped me a lot

Leave a Reply

Subscribe to Third Error

recent posts

tag cloud