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

Discussions about using Linux guests in VirtualBox.
Post Reply
erv2
Posts: 3
Joined: 24. Aug 2007, 04:41

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

Post 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.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Reading user doc, install guest additions.
mh0811
Posts: 1
Joined: 29. Oct 2010, 16:55
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Debian, FreeBSD, Ubuntu

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

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply