Ubuntu 8.04beta guest shared folders

Discussions related to using VirtualBox on Mac OS X hosts.

Ubuntu 8.04beta guest shared folders

Postby zhmurov » 4. Apr 2008, 03:05

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   Expand viewCollapse view
/sbin/mount.vboxsf: mounting failed with the error: No such device

Command i use to mount is:
Code: Select all   Expand viewCollapse view
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.
zhmurov
 
Posts: 1
Joined: 4. Apr 2008, 02:50

Postby MiddleBuffalo » 8. May 2008, 08:25

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

Postby hellfried » 8. May 2008, 13:44

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

Postby m@riposa » 8. May 2008, 15:14

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

Postby hellfried » 8. May 2008, 20:41

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

Postby m@riposa » 9. May 2008, 00:05

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

mount -t vboxsf sharename mountpoint
m@riposa
Volunteer
 
Posts: 137
Joined: 29. Nov 2007, 00:11

Postby hellfried » 9. May 2008, 00:36

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

Postby m@riposa » 9. May 2008, 07:50

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

Postby hellfried » 9. May 2008, 08:39

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

Shared Folders with Ubuntu Guest and Mac Host Tutorial

Postby ozz314 » 10. May 2008, 20:07

Hope this helps.

Shared Folders with Ubuntu Guest and Mac Host Tutorial:
http://ozz314.wordpress.com/2008/05/08/virtualbox-shared-folders-between-ubuntu-guest-and-mac-host/
ozz314
 
Posts: 1
Joined: 10. May 2008, 20:03

Re: Shared Folders with Ubuntu Guest and Mac Host Tutorial

Postby hellfried » 11. May 2008, 01:00

ozz314 wrote:Hope this helps.

Shared Folders with Ubuntu Guest and Mac Host Tutorial:
http://ozz314.wordpress.com/2008/05/08/virtualbox-shared-folders-between-ubuntu-guest-and-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.
hellfried
 
Posts: 9
Joined: 8. May 2008, 11:37

Postby fox15 » 15. May 2008, 18:19

Hi!

See correction below!

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

I found out that using
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
sudo passwd


CORRECTION:
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
cd /
sudo mount -t vboxsf shared01 /home/shared01/


Best regards
Fox
fox15
 
Posts: 4
Joined: 15. May 2008, 18:10

Postby allendick » 11. Dec 2008, 01:15

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

Re:

Postby xadoc » 14. Mar 2009, 01:29

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

Re: Ubuntu 8.04beta guest shared folders

Postby stinkyjak » 10. Nov 2009, 06:56

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

Next

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 19 guests