6

All my files and folders shows lock symbol few minutes after I turn on my system and I cannot edit any of these files as it says cannot save: read only file system. However if I restart the system again, everything works fine for few minutes/hours. While the system is starting, it says something like remounting /tmp. How do I resolve this issue ?

2
  • 1
    Could you edit your question and add the output of mount | grep /dev/sd from when the system is still working normally and from when it became read-only?
    – Byte Commander
    Mar 22 '16 at 8:36
  • 1
    Could you provide above information, please?
    – Fabby
    Mar 23 '16 at 16:39
5

When system, detects a Hard Disk error, it automatically get into 'read only' mode to protect its files. So first of all try to check your disk and fix any bad sectors, then check the conditions of your disk (e.g SMART), to see if you need to replace it.

Check this resource, it may be helpful

2

Have you tried checking for bad blocks in your hard disk?

sudo badblocks -v /dev/sda_

Note: Replace _ with location you want to check.

E.g.:

sudo badblocks -v /dev/sda1

For me the read only happened due to bad blocks in my hard drive.

What is the final fix?

REPLACE THE HARD DISK

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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