CentOS6.5 recover deleted files by mistake

Source: Internet
Author: User

System Environment: CentOS release 6.5 (Final)

Kernel version: 2.6.32-431.el6.x86_64

Required Source Bundle: extundelete-0.2.4.tar.bz2

Unzip the BZ2 package:

# TAR-JXVF EXTUNDELETE-0.2.4.TAR.BZ2

CD extundelete-0.2.4

./configure

Error:

configure:error:c++ compiler cannot create executables

Workaround:

# yum Install gcc gcc-c++ gcc-g77–y

Installing the GCC components complete

./configure

Error:

Configure:error:Can ' t find ext2fs Library

Workaround:

# yum-y Install E2fsprogs-devel

#./configure

Configuring Extundelete 0.2.4

Writing generated files to disk

The above message indicates that the installation was successful: write the generated file to disk

1, through the Inode node recovery

Scan/DEV/SDB1

# EXTUNDELETE/DEV/SDB1--inode 2

Recover files

# EXTUNDELETE/DEV/SDB1--restore-inode 14

2. Restore by file name

# EXTUNDELETE/DEV/SDB1--restore-file Zhangsan

3. Restore a Directory

# EXTUNDELETE/DEV/SDB1--restore-directory Nimei

4. Recover All Files

# EXTUNDELETE/DEV/SDB1--restore-all

The above recovery method is only for non-empty files, RHEL7 XFS is able to restore empty files

CentOS6.5 recover deleted files by mistake

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.