Sometimes, when you maintain a Linux server, you face the error of displaying the file system (read only system), that is, the file system becomes read-only, there may be two reasons for this problem, one is the synchronization mechanism problems when the multiple machine writes. Another way is when a stand-alone write occurs when the server is out of power.
When this problem occurs, the users of the application system are very nervous, and when they are lucky they can read the data in a read-only way, and the system will not start at all when bad luck.
Here's a workaround:
(1) Modify/etc/fstab, the damaged file system first commented out, if you can not read and write the file using Mount-o remount RW,/File system to read and write mode.
(2) For the damaged file system, execute the fsck command, such as: FSCK/DEV/SDA1 and so on.
Note:
(1) It is best to make a data backup prior to execution to prevent data loss after the repair fails.