Unable to write on Shared Folder... sometimes!

Discussions about using Linux guests in VirtualBox.
Post Reply
Ra0
Posts: 14
Joined: 23. Jul 2007, 13:57

Unable to write on Shared Folder... sometimes!

Post by Ra0 »

Hi,

I run Ubuntu as guest on my Win7 x64 host. I have created a shared folder, correctly mounted inside Ubuntu.
I run a web server on Ubuntu ; all files used by the web server are in the mounted shared folder (html / php and even SQL DB).
And the IDE I use for coding is directly on my Windows host.

My problem is the following : I can easily make modifications in code, save them and see the result thanks to Web server running on Ubuntu. Well, at least, at the beginning. Then, I noticed that after a couple of minutes (maybe hours), I cannot save any modification, unless I stop the Web server. Otherwise I have an error message saying that the file is already used by another application (and so read-only).

Any idea ???
btw my web server is Cherokee.

Thanks for suggestions.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Unable to write on Shared Folder... sometimes!

Post by Sasquatch »

VB or the webserver is holding a lock on the file and Windows doesn't like that and barfs at you. Either unmount the SF temporarily to change the file or try a different share method, like Samba (default Windows sharing). With the latter, you might get the same problem though.
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.
Post Reply