Shared folder won't mount

Discussions about using Linux guests in VirtualBox.
ianbasore
Posts: 3
Joined: 19. Apr 2008, 23:44

Shared folder won't mount

Post by ianbasore »

Okay, I'm new here and I need some help.
I've never used linux before now, so bear with me...

I'm running VirtualBox 1.5.6 on a host system of Windows XP SP2.
In a virtual machine (through which I am typing now) I'm running Ubuntu 7.10.

Now, everything's been going well so far, except I can't get the shared folder to mount in Ubuntu.

I type the command "sudo mount -t vboxsf shared /home/ian/shared"

and I get this error: "/sbin/mount.vboxsf: mounting failed with the error: No such file or directory"

I don't know what I'm doing wrong...
I've created the shared folder in Ubuntu in "shared" simply enough.
I've also used the Shared Folders utility in VirtualBox to create a folder called "shared" and all that.

I could use some help... please?
I think i'm just missing some step or some command...
TiX
Posts: 8
Joined: 26. Feb 2008, 08:52

Post by TiX »

Did you try to share a complete hard disk drive C: or D: ?
It it is the case you can forget it, there is a bug in VirtualBox 1.5.6.

You can either only share a subfolder or use VirtualBox 1.5.4.

Have a nice day.
ianbasore
Posts: 3
Joined: 19. Apr 2008, 23:44

Post by ianbasore »

no, i created a subfolder called "shared" on my D: drive that it's supposed to be going to...
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

I am having the same stupid problem. Maybe I am just stupid today, I don't know. But, the command:
mount.vboxsf XDrive /media/share WILL NOT WORK!!! I have spent the last four hours trying to get this to work.

Debian lenny. Vbox 1.5.6 on an Ubuntu 7.10 host.

Mark.
davmk
Posts: 9
Joined: 7. Mar 2008, 02:23

Post by davmk »

Do you have installed guest additions? Because this commands works on my box.

Please note the destination folder must exists.
ianbasore
Posts: 3
Joined: 19. Apr 2008, 23:44

Post by ianbasore »

i've installed guest additions and still it won't work...
tonne
Posts: 1
Joined: 10. May 2008, 13:23

Post by tonne »

Ubuntu 8.04 on Vista Home Premium 64 bit.
Added a shared folder in vb:
Path t:\temp
Name temp

In Ubuntu as root (sudo -s)
mount -tvboxsf temp /mnt

If mounting to /media/share make sure the folder exist.
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

With guest additions installed, and a share created in VB, I get the "device not found" error everytime I try to mount a share.

Here's my setup:

Ubuntu 7.10. VB version 1.5.6

Guest is a daily build of Lenny, kernel 2.6.24-1. Guest additions installed against the kernel fine. No errors.

created a share /home/n6yga/VirtualDrive, name test.

as root, I enter mount.vboxsf test /media/share. The share folder does exist.

I get the "device not found" error ever time. No matter how I form the command.

I must be doing something really stupid cause I can't see the error.

Also, mount -t vboxsf test /media/share errors out the same way.

HELP!!!!!

Mark.
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

tonne wrote:Ubuntu 8.04 on Vista Home Premium 64 bit.
Added a shared folder in vb:
Path t:\temp
Name temp

In Ubuntu as root (sudo -s)
mount -tvboxsf temp /mnt

If mounting to /media/share make sure the folder exist.
Just tried your exact command and got the same error: "no such device"

Any other ideas?
M.
nico
Posts: 1
Joined: 21. May 2008, 19:07

Post by nico »

I just had the same problem, and I found a solution !

This worked for me, under Debian:

install Guest Additions

Code: Select all

sudo modprobe vboxvfs
<-- Don't know why, but i needed it

Code: Select all

sudo mount -t vboxsf shared /mnt/vbshared

then, it worked like a charm
Last edited by nico on 21. May 2008, 19:48, edited 1 time in total.
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

Nice work! I will give it a try and report back. How did you ever think to modprobe it? Wow!

Mark.
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

Ok, here's the way it worked for me:

1. as root, install the virtualbox guest additons.
2. reboot the guest system (in this case a lenny install)
3. modprobe vboxvfs (reports nothing so all is well)
4. mount.vboxsf VirtualDrive /media/shared

WORKS!!!

Using the virtualbox command was the only way it would work for me. My version of vitualbox is 1.5.6

Obviously, VirtualDrive is a folder on the HOST system, in the /home/<username> directory.

I sincerely hope that this will help some other poor shlub who is guesting linux repos on a linux host.

Mark.
P.S. THANK YOU NICO!!! I don't know why the new virtualbox kernel module doesn't load after a reboot, but this works so I'll move on!!!
n6yga
Posts: 7
Joined: 14. May 2008, 22:41

Post by n6yga »

A smaller new problem:

Adding vboxvfs to /etc/modules should start that module at boot time. Unfortunately it does not.

I'll keep at it and report back...

Mark.
lot
Posts: 10
Joined: 7. May 2008, 14:49

Post by lot »

n6yga wrote:A smaller new problem:

Adding vboxvfs to /etc/modules should start that module at boot time. Unfortunately it does not.

I'll keep at it and report back...

Mark.
I'm guessing you're problem would be solved (in a cleaner way) by the solution I gave there: http://forums.virtualbox.org/viewtopic.php?t=6139
stanley
Posts: 43
Joined: 14. Jan 2008, 13:49

Doesn't work for me

Post by stanley »

What does it mean when I do modprobe vboxvfs and it tells me FATAL ERROR module not found.

What's supposed to put it wherever it's supposed to be. I have run LinuxAdditions and it completed OK.

Please help -- this is a horrible mess.
Post Reply