Page 1 of 1

Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 00:55
by honeypot
Hi

Im n00bzer at this ubuntu thing, i have W7 host machine and ubuntu running through virtualbox. now when I specify any folder that id like to be shared w/ ubuntu i cant get Ubuntu to see it. For instance i have huge iTunes collection on my W7 and I would like to play it over in ubuntu w/ rhythmbox, I open VB, click on the Ubuntu os, open settings, assign /iTunes/music to be shared. then i run ubuntu and nothing I look into network folder and cant find anything.


also what is the email sign keyboard shortcut in ubuntu ?


thanks alot

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 03:46
by Perryg
See section 4.7. Folder sharing in your VirtualBox users guide. It explains how to do this.

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 13:02
by honeypot
ive searched the manual before, used this command: "sudo mount -t vboxsf [-o OPTIONS] sharename mountpoint" where sharename is : "podcasts" and mountpoint: " desktop" . it didnt do anything only this:
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
abuser@abuser-desktop:~$
pretty much useless for a noob like me

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 14:45
by Perryg
Make sure that the guest additions are installed (in the guest)
In the guest settings. (with the guest shut down)
Map to the folder that you want to share.
Give the share a simple name like share, no spaces, no characters.
Start the guest and open a terminal then issue this command.

Code: Select all

sudo mkdir /mnt/podcast
Then enter this command.

Code: Select all

sudo mount -t vboxsf share /mnt/podcast
the files will be located in /mnt/podcast
If you want the folder to be on the desktop make a symlink to it.

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 17:24
by honeypot
it gave me "mounting failed with the error: Protocol error"

i've seen some posts mention this so im gonna hit another search

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 17:49
by Perryg
The protocol error usually means that you misspelled the share or there are problems with the mount point
Type here exactly what you typed to make the mount point and the share as well as the command to mount the share.

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 21:42
by honeypot
Image

Image

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 22:03
by Perryg
Do you see the problem?
you left the <share name>(folder name) podcasts instead of share
Run this and make sure you know why. It will be important that you learn the Linux commands.

Code: Select all

sudo mount -t vboxsf podcasts /mnt/podcasts
Of course I mentioned this before but make sure that you have installed the guest additions (in the guest) If they are not installed this will not work.

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 22:30
by honeypot
great, it works :-) you see I thought share is a command, not a shared folder name. I acquired myself ubuntu linux for dummies for beginning, so i hope terminal and I will get to be better friends than before lol

thanks a lot Perryg

PS: one quicky: keyboard shortcut for email sign ?

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 4. Apr 2010, 22:54
by Perryg
PS: one quicky: keyboard shortcut for email sign ?
I don't understand. What is it you want?

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 5. Apr 2010, 01:24
by honeypot
@ <------- this

on windoze its ctrl+alt+v , on ubuntu its ?

Re: Running Ubuntu through VB on Windows 7 host. How to share fo

Posted: 5. Apr 2010, 01:53
by Perryg
Well for Windows the "ctrl+alt+v" is the paste short cut.
If you only want to put the @ sign in then it is just that shift+2. Who needs a short cut for that?
There is one to send something via email and other shortcuts.
http://ubuntuforums.org/showthread.php?t=50794
You really should learn to use a search engine.