Agile software development using Kanban & Scrum. We code Flex & Ruby on Rails in Auckland, New Zealand.

  • Mount VBox shared dir as normal user in Linux guest

    Rash wanted to mount a shared folder between his Windows desktop and a Linux guest running inside Virtual Box on said desktop.

    He also wanted to be able to own and write to the mounted shared folder as himself, ( aka non-root user).

    The syntax to put into /etc/fstab is:

    [shared folder name] [mount path] vboxsf uid=[uid],gid=[gid],dmode=0755,fmode=0755 0 0
    

    In Rash’s case this was:

    Documents /home/rasheed/host_documents vboxsf uid=1000,gid=1000,dmode=0755,fmode=0755 0 0
    

    Then, mount it:

    sudo mount /home/rasheed/host_documents