Restore the LinuxEXT3 File System by mistake

Source: Internet
Author: User
Article Title: LinuxEXT3 File System accidentally deleted file recovery. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The customer accidentally deleted the MYSQL database file and used the ext3grep software in his introduction.

The partition to recover data cannot be mounted to the system, so umount is required first. If umount prompts busy to use fuser-k to partition and then umount

1. Install ext3grep software:

# Wget http://ext3grep.googlecode.com/files/ext3grep-0.10.1.tar.gz

# Tar zxvf ext3grep-0.10.1.tar.gz

# Cd ext3grep-0.10.1

#./Configure & make install

2. query all Inode

Ext3grep/dev/sdb1 -- ls -- inode 2

3. Data Recovery

# Ext3grep/dev/sdb1 -- restore-file tcsql/cankao/phpcws-1.5.0/httpcws. cpp

If the following message is displayed, the recovery is successful:

Restoring tcsql/cankao/phpcws-1.5.0/httpcws. cp

In this case, a folder named RESTORED_FILES is automatically generated under the current directory where tcsql/cankao/phpcws-1.5.0/httpcws. cpp is the recovered file.

The debugfs command is fine for EXT2 partitions, but it cannot help EXT3 partitions.

After one night, the customer finally restored some of the data he wanted, which was very slow. One of the parameters of ext3grep was very good. The after parameter restored the files accidentally deleted within the specified time, unfortunately, an error is reported during use, so next time you have the opportunity to try debian's ext3grep, which can be directly installed online In debian,

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.