Linux Ext3, EXT4 mistakenly deleted file recovery extundelete

Source: Internet
Author: User

The use of Linux is inevitably encountered in the case of accidental deletion of files, using Extundlete can be used to recover the accidental deletion of files


Note the operation Flow:
1. Install Linux data recovery software extundelete
needs to depend on two packages

sudo aptitude install e2fsprogs E2fslibs-dev

download Page http://extundelete.sourceforge.net/

Quick download: Download Extundelete

Compilation Trilogy

./configure
Make
sudo make install

2. If the partition is already mounted, umount first, and view the size of the space where it will be restored

Df-h./

If you are restoring a root directory or a system directory, you will only have to take the hard drive to another computer.


How to use:

---------------------------------------------

$ extundelete--help

usage:extundelete [Options] [--] Device-file

Options:

--version,-[VV] Print version and exit successfully.

--help, Print this Help and exit successfully.

--superblock Print contents of Superblock In addition to the rest.

If no action is specified then this option is implied.

--journal Show content of journal.

--after dtime only process entries deleted on or after ' Dtime '.

--before dtime only process entries deleted before ' Dtime '.

Actions:

--inode ino Show info on inode ' ino '.

--block Blk Show info on block ' blk '.

--restore-inode Ino[,ino,...]

Restore the file (s) with known inode number ' ino '.

The restored files is created in./restored_files

With their inode number as extension (ie, file.12345).

--restore-file ' path ' would restore file ' path '. ' Path ' is relative to root

of the partition and does not start with a '/' (it

Must is one of the paths returned by--dump-names).

The restored file is created in the current

Directory as ' Recovered_files/path '.

--restore-files ' path ' would restore files which is listed in the file ' path '.

Each filename should is in the same format as an option

To--restore-file, and there should is one per line.

--restore-all attempts to restore everything.

-J journal Reads An external journal from the named file.

-B blocknumber Uses the backup superblock at Blocknumber when opening

The file system.

-B blocksize Uses BlockSize as the block size when opening the file

System. The number should be the number of bytes.


Recover all files from a partition
# Extundelete/dev/sda1–-restore-all

Recovering individual files
# Extundelete/dev/sda3--restore-file/root/aaa.file

Recovering a single directory
# EXTUNDELETE/DEV/SDB1--RESTORE-DIRECTORY/ROOT/AAA

The recovered files are in the current location under the Recovered_files directory.


Linux Ext3, EXT4 mistakenly deleted file recovery extundelete

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.