Linux error deletion, format recovery solution

Source: Internet
Author: User
Tags system log

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/1C/wKioL1gIW4GwRS7qAANbvDMbDGY282.jpg-wh_500x0-wm_3 -wmp_4-s_1635583535.jpg "title=" Linux mistakenly deleted, formatted. jpg "alt=" wkiol1giw4gwrs7qaanbvdmbdgy282.jpg-wh_50 "/>


I. General: Based on Linux system, delete data and formatted data recovery scheme

1, based on the Ext2/ext3/ext4 file system
2, based on the ReiserFS file system
3. XFS-based file system


Second, the solution

2.1 Recovery process

2.1.1 Inspection Process

1, detect whether there is a hardware failure, such as hardware failure, turn hardware processing
2, read-only detection of fault performance is the same as user description

2.1.2 Recovery process

1. Backup: Complete mirroring of the failed disk in read-only mode (see appendix)
2, if you need to restore the full directory structure, the first need to fully recover the lost file node, and then restore data. If the node cannot be recovered, it can be recovered by file type.
3. The recovered data is temporarily present on another storage body

2.1.3 Acceptance Process

Verify the recovered data and verify its correctness. If confirmed, pay--and transfer the original media and recovered data--issue an invoice (receipt) and report. If unable to confirm or not confirm, transfer the original media does not charge the service charge, can produce the report for free.

Third, the possibility of data recovery

1, for EXT2/EXT3/EXT4 data deletion: Usually on the EXT2 file system, the deletion of data may retain the appropriate inode, so on the EXT2 file system, if not overwritten after deletion, the data can usually be combined with the directory, name full recovery.

On EXT3/EXT4, however, deleting data does not preserve index information in the Inode, and it is often impossible to recover directories and file names. At this time can only be recovered by file type, if the number of files, or the file category is strong regularity, can be restored through some log or file internal rules, typical, such as mysql,oracle database files, such as the deletion of the general can be completely restored.

If data is written after deletion, as the case may be, the more writes, the lower the recovery rate, and the higher the recovery rate.

2, for EXT2/EXT3/EXT4 format: EXT2/EXT3/EXT4 after formatting, if the same as the previous file system structure, the previous file System node area will be all overwritten, only by file type to recover. Similar to the EXT3/EXT4 data removal described in above 1.

3. For ReiserFS: After data deletion or formatting, if no new data is written, you can usually recover 100%.

If data is written after deletion or formatting, as the case may be, the more writes, the lower the recovery rate, and the higher the recovery rate.

3. For XFS: After data deletion or formatting, if no new data is written, you can usually recover 100%.

If data is written after deletion or formatting, as the case may be, the more writes, the lower the recovery rate, and the higher the recovery rate.

Iv. time required for data recovery

There are many factors that affect the time of data recovery. Typically, the data recovery service takes approximately 2-3 days and is subject to availability in complex situations.

Six, Tips

1, storage devices do not have a 100% security guarantee, important data need to be often backed up, you can use some data synchronization tool for data backup.

2, in the event of a data disaster, the machine should not have any operation, if the conditions, should be hard disk or other storage media full image (see appendix)

3, after the data is deleted, even if not write data, simple reading is also easy to destroy the file system log, so, after the failure, should be Umount file system as soon as possible.


Linux error deletion, format recovery solution

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.