Writable shared host folder

Discussions about using Linux guests in VirtualBox.
Post Reply
mickPava
Posts: 7
Joined: 27. Nov 2013, 15:31

Writable shared host folder

Post by mickPava »

I have doubt

I have shared a folder from my windows host and now i am able to see that folder in Linux using automount and following command.

sudo /sbin/mount.vboxsf -o gid=1000,uid=1000 shared ~/shared

But the problem is i am not able to write anything over there.

its say's read only system file.

How to make shared folder writable.

I need help guys please reply if anyone knows.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Writable shared host folder

Post by socratis »

If you have automount, you shouldn't need to "mount". That's what the "auto" is for ;) . It should mount in "/mnt/sf_*".

Naive question, but, in the "VM settings -> Shared folders" does it say "Read-only" or "Full"?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mickPava
Posts: 7
Joined: 27. Nov 2013, 15:31

Re: Writable shared host folder

Post by mickPava »

i have unchecked the the Read only option over there and It has full access.

But still i am not able write the stuff in that folder or change anything from existing files
Attachments
P1.jpg
P1.jpg (54.09 KiB) Viewed 3795 times
mickPava
Posts: 7
Joined: 27. Nov 2013, 15:31

Re: Writable shared host folder

Post by mickPava »

If there are any commands let me know how to make it writable with example.

i am very new to linux :roll:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Writable shared host folder

Post by Perryg »

If you continue to use automount you need to add your user name to the vboxsf group on the guest.
I have found that while it allows you write access it does not work as well as manually mounting the device.

http://www.virtualbox.org/manual/ch04.h ... mount_auto
mickPava
Posts: 7
Joined: 27. Nov 2013, 15:31

Re: Writable shared host folder

Post by mickPava »

Thanks Perryg :) .. Great 8) , i did not knew this.

I found that what you have mentioned and automounted folders are Put under Media directory.

But again that is not solving my problem.

Actually my main concern is i have one directory created in Guest linux environment. Now i want to accsess that on my windows machine with read write permission. Is there a way to do that.

Thanks in advance.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Writable shared host folder

Post by socratis »

mickPava wrote:i have one directory created in Guest linux environment. Now i want to accsess that on my windows machine with read write permission.
This is the opposite of what your subject says; you want a "Writable shared guest folder". This is NOT a VirtualBox issue and you might have better luck using your favorite search engine to look up "Samba sharing Linux".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mickPava
Posts: 7
Joined: 27. Nov 2013, 15:31

Re: Writable shared host folder

Post by mickPava »

Socratis: Samba share wont work on Virtual box. if i want to access the shared directory from guest on same host machine, its not possible i think.
By the way i will be more happy if you could answer if you know.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Writable shared host folder

Post by Perryg »

Actually nothing works in VirtualBox, as it is just another application, except Operating Systems. Normal network shares and done OS to OS. Samba allows you to share folders, Etc. over the LAN and if you have the LAN set to Bridged or Host-Only it will work.
Post Reply