Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
Thanks for this! Was starting to run out of hairs to pull out of my head - you saved me from having to purchase a wig :) –  kander Sep 5 '12 at 13:29
    
Glad I could save your hair :-) –  Benjamin Sep 5 '12 at 13:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.