6

I have VirtualBox (Windows XP host) running a CentOS 6.0 virtual machine, with one shared folder.

Here is the list of mounted devices:

[root@localhost ~]# mount -l
...
www on /media/sf_www type vboxsf (gid=501,rw)

Looks like it's read/write.

Now if I try to write on this shared folder:

[root@localhost ~]# touch /media/sf_www/test
touch: cannot touch `/media/sf_www/test': Read-only file system

Any idea about what I'm doing wrong?

Edit: just tried to manually mount it elsewhere, same problem:

[root@localhost ~]# mount.vboxsf -w www /mnt/www
[root@localhost ~]# mount -l
...
www on /media/sf_www type vboxsf (gid=501,rw)
www on /mnt/www type vboxsf (rw)
[root@localhost ~]# touch /mnt/www/test
touch: cannot touch `/mnt/www/test': Read-only file system

Note: the www folder is writeable on my host machine.

BenMorel
  • 4,507
  • 10
  • 57
  • 85
  • In case you came here with similar errors creating *soft-links* see this question: https://superuser.com/questions/446362/why-cant-i-create-soft-link-on-vboxsf-file-system – Pierz Feb 20 '18 at 17:17

1 Answers1

7

Ok, I found the solution. Actually, I changed my shared folder from readonly to "read/write" while the machine was running, then rebooted the machine.

The solution was simply to properly shut down the machine, then start it again.

BenMorel
  • 4,507
  • 10
  • 57
  • 85