Mount failed (unknown file system) in virtualbox in ubuntu 14.04 and Windows 7 as host after installing GuestAdditions

21,211

Solution 1

After searching web a lot i got some info regrading this from VirtualBox.org itself. In this new version of Guest Additions it has missed a symlink while installation. This breaks the path of /sbin/mount.vboxsf so that the mount command fails.

Using this command i was able to fix the bug.

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

Solution 2

I've fixed mine using the following way:

1) Update system's packages

$ sudo apt-get update

2) install virtual box guest additions (referenced from here)

$ sudo apt-get install virtualbox-guest-additions-iso

3) Now install guest additional package (Crucial step! People generally miss this which creates an error “Unknown file type “vboxsf”)

$ apt-get install virtualbox-guest-utils

NOTES:

You might face the following problems:

  • No such device:

    root@packer-virtualbox-iso:~/new# mount -t vboxsf new ~/new

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

-> YOU HAVE TO RESTART TO ALLOW CHANGES TO TAKE EFFECT.

  • you might experience the following error:

    vagrant@packer-virtualbox-iso:~$ sudo mount -t vboxsf new ~/new

    /sbin/mount.vboxsf: mounting failed with the error: Protocol error

-> TO RESOLVE THIS, YOU MIGHT HAVE TO CHANGE THE NAME OF THE MOUNTING DEVICE/FOLDER (e.g. here is new)

-> OR FOLLOW THIS if NOT FIXED (REF)

  1. Made shared folder on host system, D:\Virtual Box\shared;
  2. Ran VirtualBox;
  3. Ran virtual machine;
  4. Linux finished booting, I logged in;
  5. I added shared folder D:\Virtual Box\shared, named it “shared”;
  6. I made guest shared folder being logged as a user, called it “shared_folder”. /home//shared_folder;
  7. $su;
  8. Being logged as a root I mounted the shared folder: #mount -t vboxsf shared /home//shared_folder;
  9. And all began to work.

May be the problem was host and guest folders should be the same names?

Share:
21,211

Related videos on Youtube

kernel
Author by

kernel

Interested in Embedded both hardware and software.. C , C++

Updated on September 18, 2022

Comments

  • kernel
    kernel over 1 year

    I am using virtual box 4.3.6 in Windows 7 PC. I am trying to run Ubuntu 14.04 . After installing ubuntu since the display was low resolution i tried to install VirtualboxGuestAdditions I downloaded VBoxGuestAdditions_4.3.10.iso and followed steps in question mount gives unknown filesystem type 'vboxsf'

    Now I got optimum resolution but i am unable to mount the shared folder.

    I used the command .

    mount -t vboxsf sharedFolderName DestinationFolder
    

    Now i am getting the error wrong fs type .. I tried checking error using command

    dmesg
    

    and got

    sf_read_super_aux err = -22
    

    What I have done wrong ?? I have used the same method in fedora virtual image but with different VBoxGuestAddition version.

  • kernel
    kernel about 10 years
    @c0dd3 I have followed the same steps . After adding the *.iso file I logged in to Ubuntu and installed VBOXlinuxAdditions. But Still Getting the same error.
  • Akh
    Akh about 7 years
    Thanks goodness! Why does this not have more upvotes??? Completely solves my problem with the Unknown file type “vboxsf” error when I had already installed VBox Additions!