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

mountshared-foldersubuntu 14.04virtualbox

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.

Best Answer

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?

Related Question