Page 1 of 2

Ubuntu 8.04beta guest shared folders

Posted: 4. Apr 2008, 03:05
by zhmurov
Hi.

I'm trying to set up shared folders on Ubuntu guest. Yesterday i did it successfully with Windows Vista host. Today I'm doing exactly the same thing with exactly the same Ubuntu image, but host is Mac OS X and today I'm getting the following error message while trying to mount host filesystem:

Code: Select all

/sbin/mount.vboxsf: mounting failed with the error: No such device
Command i use to mount is:

Code: Select all

sudo mount -t vboxsf root /home/username/host-root
Host is running mac os X 10.4.11, on Intel.
Guest is Ubuntu 8.04beta.
Virtual box version is 1.5.51.

Posted: 8. May 2008, 08:25
by MiddleBuffalo
You need to create the mount point folder in Ubuntu first. Go into /home/username and create your mount point, /host-root. The mount command should work fine afterward.

Posted: 8. May 2008, 13:44
by hellfried
MiddleBuffalo wrote:You need to create the mount point folder in Ubuntu first. Go into /home/username and create your mount point, /host-root. The mount command should work fine afterward.
how do i do that?

Posted: 8. May 2008, 15:14
by m@riposa
You just create a directory. In the terminal you change to the desired path and use the command:

mkdir new_directory

Or you don't change to the path but use it as prefix instead:

mkdir /path/to/new_directory

Now you can point your mount-command to this directory.

Posted: 8. May 2008, 20:41
by hellfried
m@riposa wrote:You just create a directory. In the terminal you change to the desired path and use the command:

mkdir new_directory

Or you don't change to the path but use it as prefix instead:

mkdir /path/to/new_directory

Now you can point your mount-command to this directory.
i have just created a folder called "Shared" in my ubuntu home directory. however when i try to mount it this is the output:

hellfried@hardy:~$ sudo mount -t vboxsf root /home/hellfried/Shared
/sbin/mount.vboxsf: mounting failed with the error: Protocol error

Posted: 9. May 2008, 00:05
by m@riposa
Is "root" the name of your share? The mount command has to look like this:

mount -t vboxsf sharename mountpoint

Posted: 9. May 2008, 00:36
by hellfried
m@riposa wrote:Is "root" the name of your share? The mount command has to look like this:

mount -t vboxsf sharename mountpoint
got that! but now it says that i do not have permission to access the contents.

Posted: 9. May 2008, 07:50
by m@riposa
Because I never needed this myself and therefore don't have experience, I'd just recommend that you try what you can find in this thread:

http://forums.virtualbox.org/viewtopic.php?t=5825

Posted: 9. May 2008, 08:39
by hellfried
m@riposa wrote:Because I never needed this myself and therefore don't have experience, I'd just recommend that you try what you can find in this thread:

http://forums.virtualbox.org/viewtopic.php?t=5825
and the plot thickens............. makes me crave for my parallels explorer. anyways i will soldier on and try things out when i reach home tonight. thanks! :D

Shared Folders with Ubuntu Guest and Mac Host Tutorial

Posted: 10. May 2008, 20:07
by ozz314
Hope this helps.

Shared Folders with Ubuntu Guest and Mac Host Tutorial:
http://ozz314.wordpress.com/2008/05/08/ ... -mac-host/

Re: Shared Folders with Ubuntu Guest and Mac Host Tutorial

Posted: 11. May 2008, 01:00
by hellfried
ozz314 wrote:Hope this helps.

Shared Folders with Ubuntu Guest and Mac Host Tutorial:
http://ozz314.wordpress.com/2008/05/08/ ... -mac-host/
i have given up on ever making shared folder work. at first i could still access the shared folder using the command 'sudo nautilus'. now that doesn't even work. i just get an error message.
now that that has failed is there anyway i can explore the guest os files from the leopard end? that means after i have powered off virtualbox.

Posted: 15. May 2008, 18:19
by fox15
Hi!

See correction below!

My environment:
VirtualBox 1.6
Host: Vista
Guest: Ubuntu 8.04

I found out that using

Code: Select all

sudo mount ...
under Ubuntu 8.04 ends up with "protocol error".

Running mount as root works.

To make user root available, you have to set root's password:

Code: Select all

sudo passwd
CORRECTION:

Code: Select all

sudo mount ...
works under one special condition:
Your current working directory must be outside the path of your mount point.

E. g.
Your mount point is /home/shared01/

The following should work:

Code: Select all

cd /
sudo mount -t vboxsf shared01 /home/shared01/
Best regards
Fox

Posted: 11. Dec 2008, 01:15
by allendick
Eureka! Thanks.

The cd / seems to do the trick. I was not in root and did not notice.

Now, the command exected instantly with no message.

It was necessary to refresh the File Browser to see the new directories.

In my case, I wanted to add my Pictures directory from Vista to the Pictures directory in Ubuntu 8.10.

I named the shared folder, "Pictures"

Note the change in the prompt after the cd (no ~)

me@Pericles:~$ cd /
me@Pericles:/$ sudo mount -t vboxsf Pictures /home/me/Pictures/
me@Pericles:/$ sudo mount -t vboxsf Pictures /home/me/Pictures/
me@Pericles:/$

Worked for me
YMMV

Re:

Posted: 14. Mar 2009, 01:29
by xadoc
allendick wrote:Eureka! Thanks.

The cd / seems to do the trick. I was not in root and did not notice.

Now, the command exected instantly with no message.

It was necessary to refresh the File Browser to see the new directories.

In my case, I wanted to add my Pictures directory from Vista to the Pictures directory in Ubuntu 8.10.

I named the shared folder, "Pictures"

Note the change in the prompt after the cd (no ~)

me@Pericles:~$ cd /
me@Pericles:/$ sudo mount -t vboxsf Pictures /home/me/Pictures/
me@Pericles:/$ sudo mount -t vboxsf Pictures /home/me/Pictures/
me@Pericles:/$

Worked for me
YMMV
Just wanted to state that that "cd /" worked for me, shared folders mounted and now work. Many thanks! :D

I'm running Ubuntu 8.10 64bits guest on Mac OS X 10.5.6 with VirtualBox 2.1.4.

Re: Ubuntu 8.04beta guest shared folders

Posted: 10. Nov 2009, 06:56
by stinkyjak
anyone know what the entry would look like in the fstab file?



if sudo mount -t vboxsf tor /media/winvar correctly mounts the tor share what would the fstab entry look like?

I was thinking:
tor /media/winvar -t vboxsf