Ubutu Guest & Windows Shared Folders

Discussions about using Linux guests in VirtualBox.
Post Reply
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

I followed the howto and mounted using the following:

Code: Select all

sudo mount -t vboxsf -o uid=1000,gid=1000 share ~/host
I checked and made sure the uid and gid were correct but I am still unable to write to the mounted folder.

How do I fix this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubutu Guest & Windows Shared Folders

Post by Perryg »

Try adding the rw switch as indicated below:

Code: Select all

sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share ~/host
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

Thanks for a reply. I tried that and it didn't work either.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubutu Guest & Windows Shared Folders

Post by Perryg »

What "exactly" are you trying to share?
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

A folder on windows (in my documents) with Ubuntu so Ubuntu can read and write from it.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubutu Guest & Windows Shared Folders

Post by Perryg »

Folders inside of your (my documents) are usually protected and the top level folders usually show this permission problem.
Try to see if you can actually write to a sub folder and see if that work. Also try to setup a folder in a general access location (Windows calls that public) and see if that works. I can pretty much assure that it is Windows 7 permission problem.
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

Tried sharing a folder that was in the Public directory on windows and it didn't work.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubutu Guest & Windows Shared Folders

Post by Perryg »

When you created the share did you make sure to *not* mark it as read only?
What version of VirtualBox are you using?
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

Perryg wrote:When you created the share did you make sure to *not* mark it as read only?
What version of VirtualBox are you using?
I am sure I DIDN'T mark it as read only. Latest version of VirtualBox
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubutu Guest & Windows Shared Folders

Post by Perryg »

OK try putting you user name in the vboxsf group (on the guest)(make sure that guest additions are installed on the guest) and set the share to auto mount and see if you can get it to work that way.
The auto mount will put it in /media/sf_<your share name>
cheetah05
Posts: 9
Joined: 29. Apr 2010, 18:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Ubutu Guest & Windows Shared Folders

Post by cheetah05 »

Perryg wrote:OK try putting you user name in the vboxsf group (on the guest)(make sure that guest additions are installed on the guest) and set the share to auto mount and see if you can get it to work that way.
The auto mount will put it in /media/sf_<your share name>
This worked for me. Thank you VERY much for your help. It is much appreciated.
Post Reply