June 11, 2010 · General · Email This Post

Sponsored Link
This tutorial will explain How to access windows host shared folders from ubuntu guest in Virtualbox.
Procedure to follow

Step 1 : Install Guest Additions

You can install Guest Additions from From the VirtualBox's menu Devices ? Install Guest Additions...

This will mount a virtual CD on your /media/cdrom.Now open terminal (Applications menu -> Accessories -> Terminal) and run the following command

sudo sh VBoxLinuxAdditions-x86.run

After completing installation you need to restart your virtualbox guest machine

Step2: Define Share folders

From the VirtualBox's menu go to Devices ? Shared Folders

A dialog will show up as below. In this dialog you can specify which folder from your Windows system you want to share with your Ubuntu system.Press the button with the + symbol to add a new shared folder in the list.

You will have to specify a Folder Name for each folder you add.You need to note down this folder name click ok

Step 3: Mount windows folders in ubuntu

First you need to create mount point using the following command from your terminal (Applications menu -> Accessories -> Terminal)

sudo mkdir/media/windows

Note :- Folder name windows can be changes to anything

Mount you shared folder using the following comamnd

sudo mount -t vboxsf Shared /media/windows

Note:- Shared folder is our windows folder

Step 4: Make it automatically mount every time you reboot

If you want to make it automatically mount every time you reboot edit /etc/init.d/rc.local file

gksudo gedit /etc/init.d/rc.local

add the following line

sudo mount -t vboxsf Shared /media/windows

Save and exit the file

Windows folder Browser in Ubuntu

Sponsored Link

Incoming search terms:

Related posts

11 Comments to “How to access windows host shared folders from ubuntu guest in Virtualbox”

  1. ray says:

    COMMD=”/usr/bin/VBoxManage sharedfolder”

    DET=`ps -ef | grep startvm | grep -v grep | awk -F” ” ‘{ print $10 }’`

    function greet () { echo -e “????????\n??1?add??remove?\n??2??????\n??3?????????” ;}
    function disp () { echo -e “?????????\n$DET\n????????????????” ;}

    if [ -z "$DET" ]
    echo “??VirtualBox???????????”
    exit 1
    echo $DET > $PROCE && disp

    read ANYTHING
    for YY in $(cat $PROCE)
    if [ "$YY" == "$ANYTHING" ]
    if [ $# -ge 2 -a -d $3 ]
    case $1 in
    $COMMD $1 $ANYTHING -name $2 -hostpath $3 -transient
    $COMMD $1 $ANYTHING -name $2 -transient

    rm -f $PROCE


  2. Simon Moon says:


    man fstab


    admin Reply:

    Yes you can use fstab as well


  3. Neil says:

    Saying “No Such devices” Please help


    Dan Reply:

    I’m getting the same error:

    “/sbin/mount.vboxsf: mounting failed with the error: No such device”


  4. Paul says:

    I think you should be putting the “sudo mount…” command in /etc/rc.local, not in /etc/init.d/local – the latter is a script that executes the former if it exists.


    Michael Reply:

    Yes, you may want to correct that as ‘add it’ to THAT script doesn’t seem probable.


  5. Help says:

    On step 3: sudo mkdir/media/window
    is the “window” the folder u create on ubunto?
    I’m sorry i’m lost. I just need to clarify thank you.


  6. renzrawkt says:

    thanks you to this tutorial :D


  7. Red Baron says:

    Will the OS crash or something like that, if you run the VirtualMachine on a different host that doesn’t have the corresponding shared folder (namewise)? Just asking…Because by binding a shared folder to the startup of the guest OS, your VirtualBox automatically presumes that this folder exists (just a presumption of course!).


  8. Subhash Chandra Bijarniya says:

    Brilliant and simple.

    Thanks for help

    Subhash Chandra Bijarniya


Leave a Reply