Repair technology for Linux file system corruption

Source: Internet
Author: User
Tags file system

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.