Page 1 of 1

Shared folders are cached?

Posted: 19. Feb 2014, 16:47
by JK85
Hi,

I'm having a problem with shared folders. Basically, I need to be able to created and delete files from both the host and guest.

The host is Windows 7 64-bit
The guest is Xubuntu 12.04, 64-bit
I'm running VirtualBox 4.3.6 r91406

I created the shared folder on the host in "D:\shared" and called it "shared". I tried using Auto Mount or mounting is myself and here is what's happening:

- I create a folder on the guest (mkdir test)
- I delete this new folder on the host
- I run "ls", and the folder doesn't appear, which is normal because I just deleted it
- However, if I run "mkdir test" again to recreate it, then I get this error message: "mkdir: cannot create directory `test`: File exists"

If I unmount and remount the shared folder, then I can delete it, but obviously I don't want to do that.

Here is the command that I'm using to mount the folder:

sudo mount -t vboxsf share /media/share

I also tried these mount commands:
sudo mount.vboxsf -w -o fmode=0777,dmode=0777 share /media/share
sudo mount -t vboxsf -o uid=1000,gid=1000 share /media/share

Like I said earlier, I also tried the automounted /media/sf_share and it still doesn't work...

Any idea of what I am doing wrong or how I can solve my problem?

Thanks!

Re: Shared folders are cached?

Posted: 19. Feb 2014, 17:01
by Perryg
Using auto-mount will produce permission issues if you have not added your user name to the vboxsf group on the guest.

I always add the rw to my options on manual mounts.

Code: Select all

sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share /media/share
See http://www.virtualbox.org/manual/ch04.h ... redfolders

Re: Shared folders are cached?

Posted: 19. Feb 2014, 17:26
by JK85
Perryg wrote:Using auto-mount will produce permission issues if you have not added your user name to the vboxsf group on the guest.

I always add the rw to my options on manual mounts.

Code: Select all

sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share /media/share
I did add my account to the vboxsf group and still didn't work.

I think I just solved the problem though. It appears that I was using the VBox additions from the ubuntu repos, but I just upgraded to the ones that come in the VBOXADDITIONS iso file and it seems to be OK now... I'll test it a bit more just to be sure

Thanks!