Page 1 of 1

Unknown filesystem vboxsf? how do i mount the shared folder?

Posted: 24. Aug 2007, 22:36
by erv2
Hi,

I set up a Transient Folder in windows, and try to mount it in my Ubuntu 7.04 guest.

when type in
sudo mount -t vboxsf Movies /mnt

it tells me:
unknown filesystem type 'vboxsf'

how do i solve this problem?

thank you.

Posted: 25. Aug 2007, 01:28
by stefan.becker
Reading user doc, install guest additions.

Re: Unknown filesystem vboxsf? how do i mount the shared folder?

Posted: 1. Nov 2010, 10:17
by mh0811
I wanted to make a minimum installation of Virtual Box guest additions on a non-X Debian to allow attaching host file system.

I ran into multiple errors (including Unknown filesystem vboxsf) and here is the final list of what to do (logged in as root):
1) apt-get install virtualbox-ose-guest-modules-2.6.26-2-686 (see A bellow)
2) (somehow get, e.g. over ftp, previously saved file /sbin/mount.vboxsf ... see A bellow)
3) chmod +rx /sbin/mount.vboxsf
4) modprobe vboxvfs (see B bellow)
5) mount -t vboxsf <VBoxShareName> <LocalPath>

Now the problems I ran into:
A) Instead of 1) I installed
apt-get install virtualbox-ose-guest-utils
.. this didn't work, installed a lot, including kernel 2.6.26-2-486, and after reboot I had new entry in the grub. for 486 (previously there was just 686).
f I install virtualbox-ose-guest-modules-2.6.26-2-686 as first and then install virtualbox-ose-guest-utils, everything works, but I don't like the X stuff being installed, so I just copied out (over FTP) the /sbin/mount.vboxsf file and hopped that that is everything I will need from the utils package.
Then I started from the snapshot of the system before these experiments.
BTW: For searching for what to installed I used command
apt-cache search virtualbox | grep 2.6.26-2-686 .. replace the 2.6.26-2-686 with the kernel you have (uname -r)

B) During some experimenting and restart I got into situation that mounting stopped working with the error message "No such device".
This is solvable by loading the module:
modprobe vboxvfs
I have to do this on each start, but that doesn't bother me now.

C) During switching between snapshots I got: "mounting failed with the error: Protocol error", which was caused by not having anything shared out by VirtualBox. Swithing between snapshots changes what is shared (unlike VirtualPC's undo disk).

My system:
host: Windows XP Home
VirtualBox: 3.2.10.r66523
hosted: Debian 5.0.6 (Lenny), linux kernel: 2.6.26-2-686

I hope this will help somebody.

Re: Unknown filesystem vboxsf? how do i mount the shared folder?

Posted: 2. Nov 2010, 21:30
by Sasquatch
My Howto: Install Linux Guest Additions + Xorg config already mentions that if you don't have X, those modules won't be installed. So why install unsupported OSE modules on the PUEL edition or at least out of sync versions? That will cause problems.