how to make linux recognize shared folders

Discussions about using Linux guests in VirtualBox.

how to make linux recognize shared folders

Postby whatsup » 30. Nov 2010, 20:25

hay everyone.
i know how to use shared folders when Windows is a guest, i do that all the time, and it works great.
now i have a linux guest on Windows Vista Host,
and i want to share folders.
i know how to do that on VBOX side, but what i don't know is
how to set that inside Ubuntu9 ?

thanks in advanced.
whatsup
 
Posts: 26
Joined: 31. Jul 2009, 16:52
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Windows XP

Re: how to make linux recognize shared folders

Postby iamalittlepepper » 30. Nov 2010, 22:01

1.You need to have Guest Additions compiled correctly.

2.Then you need to create an appropriate dir in the Guest OS

3.You then setup the Shared folder in the Host OS.

4.Then you mount the Shared folder to the appropriate dir in Guest

5.Note once the files are transferred to the GuestOS. The Permission will be under root, so you need to chown the files to the appropriate user.

I have some steps here:

http://www.blog.10deam.com/2010/11/29/u ... rs-issues/
iamalittlepepper
 
Posts: 16
Joined: 30. Nov 2010, 00:49
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 10.10

Re: how to make linux recognize shared folders

Postby Sasquatch » 30. Nov 2010, 23:09

Just follow the 'official' howto: Howto: Use Shared Folders.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: how to make linux recognize shared folders

Postby whatsup » 9. Dec 2010, 05:17

hey all.
i tried following the instructions, but i get file or folder error

what i did in linux
i opened a terminal
got into my home folder
i have there a folder name "mn"
i created inside it a new floder called "host"
then in the terminal i tried several things and they didn't works
sudo mount -t vboxsf share ~/host
sudo mount -t vboxsf share ~/mn/host
sudo mount -t vboxsf share home/mn/host
sudo mount -t vboxsf share /home/mn/host

can some please post what i need to write in the terminal ?
assuming i have a folder in the file system, like this:
home/mn/host

thanks in advanced.
whatsup
 
Posts: 26
Joined: 31. Jul 2009, 16:52
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Windows XP

Re: how to make linux recognize shared folders

Postby whatsup » 11. Dec 2010, 18:55

any idea ?
whatsup
 
Posts: 26
Joined: 31. Jul 2009, 16:52
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Windows XP

Re: how to make linux recognize shared folders

Postby stefan.becker » 11. Dec 2010, 19:01

What is the name of the Folder in the VBOX Guest Settings? Have you really used the alias "share"?
stefan.becker
Volunteer
 
Posts: 7046
Joined: 7. Jun 2007, 21:53

Re: how to make linux recognize shared folders

Postby Sasquatch » 11. Dec 2010, 19:35

And something you haven't tried is this:
Code: Select all   Expand viewCollapse view
sudo mount -t vboxsf share /home/<your username>/mn/host


But before you try to use your own paths, have you tried the example in my guide first?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: how to make linux recognize shared folders

Postby whatsup » 14. Dec 2010, 03:43

hey everyone
as stephen said, i was mistaken with the folder name
my folder is 'shared' not 'share'
now everything works fine
thank you very much all.
whatsup
 
Posts: 26
Joined: 31. Jul 2009, 16:52
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Windows XP

Re: how to make linux recognize shared folders

Postby mogart » 15. Dec 2010, 05:01

My host is Win 7 home premium. The guest is Ubuntu 10.10. Guest extensions installed normally with no errors.

I've shared a folder using VBox and given it a share name of ubuntu

I then booted ubuntu and attempted to mount using:
sudo mount -t vboxfs ubuntu /mnt/host also
sudo mount.vboxfs ubuntu /mnt/host

I receive the error message: mount.vboxsf: mounting failed with the error: No such device

sudo modprobe vboxfs produces the following error: FATAL: Module vboxfs not found.

Can someone help me fix this?

Another issue. I know that there used to be a parameter for the <display /> leaf in [machine].xml that allowed one to explicitly create a custom hint that limited the screen resolution. I've used it before, but the host I was using it on died and I had never backed it up. Can someone tell me what that sub-node was?
<display>
<"example">1066,640</"example">
</display>

mogart

Posts: 1
Joined: 15. Dec 2010, 02:47
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: UBUNTU 10.10
mogart
 
Posts: 2
Joined: 15. Dec 2010, 03:47
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: UBUNTU 10.10

Re: how to make linux recognize shared folders

Postby iamalittlepepper » 15. Dec 2010, 23:07

You need to compile the Guest Additions.. refer to my link in my post a few answers up.

To set custom resolution follow the instructions in the manual. http://www.virtualbox.org/manual/ch09.html#id2760935

mogart wrote:My host is Win 7 home premium. The guest is Ubuntu 10.10. Guest extensions installed normally with no errors.

I've shared a folder using VBox and given it a share name of ubuntu

I then booted ubuntu and attempted to mount using:
sudo mount -t vboxfs ubuntu /mnt/host also
sudo mount.vboxfs ubuntu /mnt/host

I receive the error message: mount.vboxsf: mounting failed with the error: No such device

sudo modprobe vboxfs produces the following error: FATAL: Module vboxfs not found.

Can someone help me fix this?

Another issue. I know that there used to be a parameter for the <display /> leaf in [machine].xml that allowed one to explicitly create a custom hint that limited the screen resolution. I've used it before, but the host I was using it on died and I had never backed it up. Can someone tell me what that sub-node was?
<display>
<"example">1066,640</"example">
</display>

mogart

Posts: 1
Joined: 15. Dec 2010, 02:47
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: UBUNTU 10.10
iamalittlepepper
 
Posts: 16
Joined: 30. Nov 2010, 00:49
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu 10.10


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 25 guests