Sharing folder between Windows 10 host and Ubuntu virtual box machine

20,440

I faced a similar issue with Lubuntu 18.04/vbox 5.2.1. I did the following: install vbox guest additions, put the user in the vboxsf group. No effect (in versions 16/17 of Ubuntu, usually works).

During the search for a solution, I found many suggestions of packages to be installed, with no effect.

The package that solved for me was: virtualbox-guest-x11. Try:

sudo apt install virtualbox-guest-x11.
Share:
20,440

Related videos on Youtube

B1B
Author by

B1B

Updated on September 18, 2022

Comments

  • B1B
    B1B over 1 year

    I am totally new to Ubuntu and a first timer user and been reading about this subject for a while. I have a folder on Windows that I need to be able to access from my Ubuntu VM on Virtual Box.

    I did the following steps:

    1- From Virtual Box, I went to Devices > Shared Folders > Shared Folder Settings, added a new Shared folder on my windows desktop named 'ubunto_shared' like the following:

    following

    2- Then from the Ubuntu VM, I ran the following command:

     sudo mount -t vboxsf ubunto_shared windows_shared
    

    But I got the error:

    mount: wrong fs type, bad option, bad superblock on ntfs missing codepage or helper program or other error

    3- so I installed ntfs-3g using: sudo apt-get install ntfs-3g

    4- I then ran this command:

    sudo mount -t ntfs-3g ubunto_shared windows_shared
    

    but I got the error:

    ntfs-3g: Failed to access volume 'ubunto_shared': No such file or directory

    5- I read few articles about how to access that folder, so I ran

    sudo /sbin/fdisk -l

    I am seeing this and I am not seeing NTFS listed there. How do I handle this issue?

    • cmak.fr
      cmak.fr almost 6 years
      you should set the virtualbox as share automount in the vm properties
    • B1B
      B1B almost 6 years
      can you please verify what you mean by set vb as share automount? I already specified it as automount as shown in my screenshot, anything else needs to be done?
    • cmak.fr
      cmak.fr almost 6 years
      do you have installed 'guest addition' in the ubuntu vm ?
    • B1B
      B1B almost 6 years
      @cmak.fr no, all things I did, are the ones I mentioned in my question, nothing more.
    • Takkat
      Takkat almost 6 years
      Are you positive about the name ubunto_shared? Shouldn't it be ubuntu_shared? Did yo create a mount point windows_shared in the guest before mounting? Also see askubuntu.com/questions/161759/… and if that did not help askubuntu.com/questions/30396/…
  • Kumar Saurabh
    Kumar Saurabh almost 4 years
    This worked for me with Ubuntu20.04 VM on Windows 10. Had to additionaly just add the user to the group with sudo adduser [username] vboxsf