A few words of thanks would be greatly appreciated.

VirtualBox - Sharing a Windows directory under Ubuntu

First make sure that the Virtualbox guest additions are installed: read this FAQ

Creation of the shared folder in VirtualBox

  • Open VirtualBox
  • Select the machine of your choice (the one concerned by the sharing).
  • Click on the Preferences menu
    • In the left pane, click on Shared folders
    • Then click Add a new shared folder (right
    • Select your directory and click Ok
      • Assign a simple name to it.
  • Click OK again to close the preferences window.

Mounting the shared folder on Ubuntu

  • Boot your machine normally .
  • Go to Applications> Accessories> Terminal.
  • To create the folder to be mounted, type the following:
    • mkdir path_to_folder (mkdir /home/spe2d/Bureau/tuto_ccm)
  • Type sudo -s to go as root and enter your password.
  • Now to mount the shared directory:
    • mount -t vboxsf name_given_to_folder_under_VirtualBox /path_to mount-directory (mount -t vboxsf documents /home/spe2d/bureau/tuto_ccm)

Your shared directory is now active.

To unmount the shared directory

  • Boot your machine normally
  • Go to Applications > Accessories > Terminal
  • Type the following command :
    • umount path_to_mounted_directory (umount /home/spe2d/Bureau/tuto_ccm)

Note that : this tip also works with other Linux distributions

A few words of thanks would be greatly appreciated.

Ask a question
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team


Original article published by . Translated by deri58. Latest update on by deri58.

This document, titled "VirtualBox - Sharing a Windows directory under Ubuntu," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).