LINUX fsck data error disaster contingency plan

Source: Internet
Author: User
Tags file size file system root directory

[Apply to]

1, File system: ext2 ext3 reiserfs XFS, etc.

2, Scope: Prompt file system requires fsck, not performed or fsck execution completed

Symptoms

1, unable to mount the partition;

2, a large number of files, directories lost, the root directory generated/lost+found folder, which has a large number of #xxxxxx class files and directories;

3, fsck quickly error completed;

4, fsck implementation, there are a large number of prompts, such as modifying nodes, clearing 0 nodes and other operations

[Contingency plan]

1, if you are prompted to fsck, please be careful. If possible, disconnect the system as soon as possible, umount all partitions.

2. When you need to perform fsck, do the preparation first: You can use the DD command to output the partition involved to another storage body (preferably not on the wrong storage body itself as DD) command approximate structure can be as follows: DD if=/dev/sda0 of=/dev/sdb0 ...

3, must perform fsck, first do preparation, method two: The entire Linux storage body mounted to the virtual machine environment, the Linux storage body set to Nonpersisten mode, and then execute, after execution, if the data is intact, should be copied as soon as possible via FTP.

4. When you need to perform fsck, do the preparation first by loading the entire Linux storage body onto other systems (such as Windows), and then fsck after mirroring.

5, such as the above are due to the conditions and other reasons can not be implemented, must be implemented, can be careful to observe the implementation of fsck (turn-a) if you find a prompt node error to be corrected or clear 0, node description file size is not correct information, should stop the execution of fsck.

6, due to the recovery need to refer to a lot of information, because as far as possible to maintain the system does not work, at least not to mount the partition again (even if do not do any reading and writing operations, will also be due to the system's working principle to reduce the possibility of data recovery, increase the difficulty of

7, seek professional data recovery company help.

Attached

Scenarios for mirroring a disk:

1, can be the same or greater than the source disk capacity of the hard disk as the target disk, the source disk of all sectors to the target Disk mode clone.

2, the source disk can be completely sector-wide output files to a large capacity storage space (such as large-capacity hard disk, NAS, SAN, Das, etc.)

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.