Page 1 of 1

how to make linux recognize shared folders

Posted: 30. Nov 2010, 20:25
by whatsup
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.

Re: how to make linux recognize shared folders

Posted: 30. Nov 2010, 22:01
by iamalittlepepper
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/

Re: how to make linux recognize shared folders

Posted: 30. Nov 2010, 23:09
by Sasquatch
Just follow the 'official' howto: Howto: Use Shared Folders.

Re: how to make linux recognize shared folders

Posted: 9. Dec 2010, 05:17
by whatsup
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.

Re: how to make linux recognize shared folders

Posted: 11. Dec 2010, 18:55
by whatsup
any idea ?

Re: how to make linux recognize shared folders

Posted: 11. Dec 2010, 19:01
by stefan.becker
What is the name of the Folder in the VBOX Guest Settings? Have you really used the alias "share"?

Re: how to make linux recognize shared folders

Posted: 11. Dec 2010, 19:35
by Sasquatch
And something you haven't tried is this:

Code: Select all

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?

Re: how to make linux recognize shared folders

Posted: 14. Dec 2010, 03:43
by whatsup
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.

Re: how to make linux recognize shared folders

Posted: 15. Dec 2010, 05:01
by mogart
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

Re: how to make linux recognize shared folders

Posted: 15. Dec 2010, 23:07
by iamalittlepepper
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