Third Error

Sync Host and Guest Folders in VirtualBox

Posted on by Jason

Tagged as , , Tweet

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.

2 Responses to Sync Host and Guest Folders in VirtualBox

  1. radio says:

    thx, this helped me a lot

  2. Omar says:

    Hey its all great …
    but i just faced a problem from where i can access
    the shared folders on ubuntu
    i tried to open the target folder but i found it empty

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>