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 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 thoughts on “How to access windows host shared folders from ubuntu guest in Virtualbox

  1. #!/bin/bash
    PROCE=/mnt/ramdisk/vbm.txt
    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” ]
    then
    echo “??VirtualBox???????????”
    exit 1
    else
    echo $DET > $PROCE && disp
    fi

    read ANYTHING
    for YY in $(cat $PROCE)
    do
    if [ “$YY” == “$ANYTHING” ]
    then
    if [ $# -ge 2 -a -d $3 ]
    then
    case $1 in
    add)
    $COMMD $1 $ANYTHING -name $2 -hostpath $3 -transient
    ;;
    remove)
    $COMMD $1 $ANYTHING -name $2 -transient
    ;;
    *)
    greet
    ;;
    esac
    else
    greet
    fi
    else
    continue
    fi
    done

    rm -f $PROCE

    [Reply]

  2. Saying “No Such devices” Please help

    [Reply]

    Dan Reply:

    I’m getting the same error:

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

    [Reply]

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

    [Reply]

    Michael Reply:

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

    [Reply]

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

    [Reply]

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

    [Reply]

Leave a comment

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