Ubuntu 8.04beta guest shared folders

Discussions related to using VirtualBox on Mac OS X hosts.
zhmurov
Posts: 1
Joined: 4. Apr 2008, 02:50

Ubuntu 8.04beta guest shared folders

Post 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.
MiddleBuffalo
Posts: 5
Joined: 31. Jan 2008, 04:26
Location: Albuquerque, NM, USA

Post 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.
hellfried
Posts: 9
Joined: 8. May 2008, 11:37

Post 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?
m@riposa
Volunteer
Posts: 137
Joined: 29. Nov 2007, 00:11

Post 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.
hellfried
Posts: 9
Joined: 8. May 2008, 11:37

Post 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
m@riposa
Volunteer
Posts: 137
Joined: 29. Nov 2007, 00:11

Post by m@riposa »

Is "root" the name of your share? The mount command has to look like this:

mount -t vboxsf sharename mountpoint
hellfried
Posts: 9
Joined: 8. May 2008, 11:37

Post 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.
m@riposa
Volunteer
Posts: 137
Joined: 29. Nov 2007, 00:11

Post 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
hellfried
Posts: 9
Joined: 8. May 2008, 11:37

Post 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
ozz314
Posts: 1
Joined: 10. May 2008, 20:03

Shared Folders with Ubuntu Guest and Mac Host Tutorial

Post by ozz314 »

Hope this helps.

Shared Folders with Ubuntu Guest and Mac Host Tutorial:
http://ozz314.wordpress.com/2008/05/08/ ... -mac-host/
hellfried
Posts: 9
Joined: 8. May 2008, 11:37

Re: Shared Folders with Ubuntu Guest and Mac Host Tutorial

Post 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.
fox15
Posts: 4
Joined: 15. May 2008, 18:10

Post 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
allendick
Posts: 12
Joined: 10. Dec 2008, 23:44

Post 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
xadoc
Posts: 1
Joined: 14. Mar 2009, 01:25

Re:

Post 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.
stinkyjak
Posts: 9
Joined: 15. Sep 2008, 21:15

Re: Ubuntu 8.04beta guest shared folders

Post 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
Post Reply