Facebook Twitter Instagram
    WiredRevolution.com
    • Home
    • About
    • Contact Us
    • Essential Linux Commands
    • Sitemap
    Facebook Twitter Instagram
    WiredRevolution.com
    virtualbox

    Mount a VirtualBox shared folder inside a guest VM

    RyanBy RyanSeptember 9, 2010Updated:September 16, 20101 Min Read
    Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email

    VirtualBox makes it easy to share folders between the host OS and various guest virtual machines, but it can be difficult to remember the exact way to go about mounting the shared folder within a guest VM. Here is the way to do it correctly.

    First off make sure you have installed VirtualBox guest additions.

    Switch to root or use sudo.
    $ su -

    Create the directory and mount the shared folder to the mount point of your choice. Use the shared name you assigned to it when you originally created the shared folder, in this case it is “virtualbox_share”.
    # mkdir /media/share
    # mount virtualbox_share -t vboxsf /media/share

    You can have this automatically mounted by adding the following line in /etc/fstab
    virtualbox_share /media/share vboxsf defaults 0 0

    Unfortunately the share will be owned by root. To make it owned and therefore writeable by a user use the following line instead. Replace the uid and gid with your information.
    virtualbox_share /media/share vboxsf defaults,uid=500,gid=500 0 0

    Here’s how to find your uid:
    id -u username

    And gid:
    id -g username

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
    Previous ArticleInstall VirtualBox Guest Additions on Fedora 12
    Next Article Convert PDF file to text with pdftotext

    Related Posts

    Netflix now working on Ubuntu Linux

    Install Virtualbox on Ubuntu 12.10: the missing kernel module fix

    Sync your iPod Shuffle with Linux

    Most Commented
    March 12, 2009

    Fix blue tinted video in Ubuntu

    September 10, 2010

    Setup SSH access between VirtualBox Host and Guest VMs

    March 8, 2011

    Install GNOME Shell in Ubuntu 10.10 Maverick

    April 4, 2009

    Setup the PS3 Bluetooth Controller on Ubuntu

    October 22, 2008

    How to correctly use LD_LIBRARY_PATH

    Recent Comments
    • Execute command on linux virtual machine (or server) from windows commandline on Setup SSH access between VirtualBox Host and Guest VMs
    • Solved: How to SSH to a VirtualBox guest externally through a host? - Daily Developer Blog on Setup SSH access between VirtualBox Host and Guest VMs
    • How to SSH to a VirtualBox guest externally through a host? [closed] – Code D3 on Setup SSH access between VirtualBox Host and Guest VMs
    • How to copy and paste from VirtualBox? [duplicate] on Setup SSH access between VirtualBox Host and Guest VMs
    • Jackie Laguna on Fix OpenGL: ChoosePixelFormat SketchUp error in WINE
    © 2026 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.