Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I noticed my websites were showing 500 Internal server errors and when i try edit delete or add a file i get this error

rm: cannot remove `test': Read-only file system

I haven't updated or even logged into my server in a while so I don't think its anything I have done.

Has anyone any ideas what this could be?

share|improve this question
Troubleshooting on your part? Is it in the VM alone, or the underlying system? Have you checked anything? – Jeff Ferland Jul 2 '12 at 22:11
What should I test? Its a VPS, I dont have access to the underlying system. – h00j Jul 2 '12 at 22:13
I'm assuming you meant to put rm and left off the first character. Then I'm guessing Linux. Start with the terminal and run mount and see if that lists your fs as read-only. If it does, remount it r/w. That should expose more info about the issue. – Jeff Ferland Jul 2 '12 at 22:19
up vote 1 down vote accepted

On a physical server I would say the disk is failing. On a VPS there could be several underlying causes, but what it really means is that the kernel is receiving I/O errors in the disk subsystem.

You should contact your provider to get the root cause fixed.

You should also copy all essential data off of the VPS because you may be on the verge of losing it (but it's hard to say without knowing more details about the VPS underlying system).

Once you've copied your data off a reboot should bring the filesystem back to read/write. Be warned though, it might not be able to survive a reboot. It may be down hard if you try.

Again, contact your provider.

share|improve this answer

Your Answer


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.