15
9
Problem When attempting to mount a shared directory from Linux Mint 16 VirtualBox guest OS, I receive the following error:
mount: wrong fs type, bad option, bad superblock on hostshare,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
My mount command is sudo mount -t vboxsf hostshare ~/host
dmesg | tail reveals: 'sf_read_super_aux err=-22'
Environment - Host OS: Windows 7 64 bit - Guest OS: Linux Mint 64 bit (Mate) - VirtualBox 4.3.10 - VirtualBox Guest Additions 4.3.10 - Shared directory defined in VirtualBox as 'hostshare' with Make Permanent checked - ~/host is defined on the guest OS file system
What I have tried I can mount this directory from other VirtualBox guests, including Mint 15 32 bit. I reinstalled guest additions on Mint 16 and from what I can see, it is running. I have rebooted the host OS, VirtualBox and the Guest OS several times. I renamed the shared folder to various silly things to no avail. Changed VirtualBox network from NAT to Bridged Adaptor. Other Guest Additions features (Shared Clipboard, Drag'n'Drop) work properly.
3I finally fixed it but I'm too new to post the answer :(. The symlink for mount.vboxsf was broken. Here's what I ran to correct it:
cd /sbin sudo rm mount.vboxsf sudo ln /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf
Hope this is of use to someone else! – William – 2014-03-31T22:56:28.173
1Thank you so much for your discovery. I was going nuts. I wonder how you guessed that the problem was a broken symlink, given that the error message is so vague. I am on Debian wheezy 7.4 32-bit. The correct link in my case was
ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf
. Please post it as a solution as soon as you have enough rep so I can upvote it :) – NothingsImpossible – 2014-04-18T19:35:49.983