Virtualbox shared folder mounting not working

8,385

Solution 1

Curiously, just tried the same thing with Kubuntu 14.04 (host) on Mint 17.1 (guest), and got the same error.

The fix was to do this (as per this post):

sudo ln -f -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

Then manually add your user to the vboxsf group (as per dot point 2 in this answer):

sudo usermod -a -G vboxsf <username>

Reboot the guest, and then try the mount command again:

sudo mount -t vboxsf <share name> <mount dir>

Solution 2

Having combed through many forum and discussion threads I ended up eventually solving the problem ... it seems to be a bug with the 4.3.10 version under (atleast) Ubuntu 14.04 which makes it impossible for the appropriate kernel modules to actual compile (didn't find it discussions originally though only found out checking logs) the solution seems to be to upgrade to 4.3.28 which available from oracles repository as a deb package. You can find it here. After upgrading and reinstalling guest additions everything seems to work fine.

Share:
8,385

Related videos on Youtube

DRF
Author by

DRF

This is a disclaimer for people that might be reading my posts on the English Language &amp; Usage exchange. I'm not a native speaker of English but I have lived in the USA for a number of years and when I post answers, I try and make sure I only do so when I am very confident of my knowledge. Still I believe a disclaimer is warranted though I'm unwilling to write one in every post so you have to click through.

Updated on September 18, 2022

Comments

  • DRF
    DRF over 1 year

    I have been trying to mount a virtualbox folder for some time now and keep getting

    mount: unknown filesystem type 'vboxsf'

    I have installed and reinstalled guest additions a number of times both from the repository and using the "insert guest addition CD" option (and then succesffully running the installer and rebooting) in the virtualbox. Does anyone by any chance have any idea what the problem might be?

    I'm running Ubuntu 14.04 as both the host and the guest. And have Virtualbox 4.3.10 as far as I can tell. Everything should patched and updated to the latest version.

    Edit:

    mount -t vboxfs sharename local_directory_name

    • ahnniu
      ahnniu almost 9 years
      Can you edit to show the full mount command you're using? Have you shared the directory you're trying to mount from the host side? When you say "insert guest addition CD", you then successfully ran the install scripts located on the (virtual) CD, right?
    • DRF
      DRF almost 9 years
      @ash I editied, Yes I have shared it on the host side using the shared folders setting in virtualbox, Yes I did succesfully run the scripts (or at least the scripts claimed they ran succesfully).
  • DRF
    DRF almost 9 years
    Thank you. I've now managed to move from the "unknown file system message" to the "no such device" error. I checked that I'm in the correct group and that the link I'm creating actually exists but still no go.:(
  • DRF
    DRF almost 9 years
    I'm seriously starting to consider just using samba.:(