How to access windows host shared folders from ubuntu guest in Virtualbox

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

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

You may also like...

11 Responses

  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

  3. admin says:

    Yes you can use fstab as well

  4. Neil says:

    Saying “No Such devices” Please help

  5. 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.

  6. 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.

  7. Michael says:

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

  8. renzrawkt says:

    thanks you to this tutorial 😀

  9. 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!).

  10. Subhash Chandra Bijarniya says:

    Brilliant and simple.

    Thanks for help

    Subhash Chandra Bijarniya

  11. Dan says:

    I’m getting the same error:

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

Leave a Reply

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