Extundelete tool to recover deleted files by mistake

Source: Internet
Author: User

< c13>

1. Install the dependency pack (E2fsprogs,e2fsprogs-libs,e2fsprogs-devel)

# yum-y Install e2fsprogs*


2. Download and install extundelete-0.2.4.tar.bz2

< /span> # wget http:// nchc.dl.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2  
#  tar -jxvf extundelete-0.2.4.tar.bz2 
# cd extundelete-0.2.4 
# ./ configure --prefix=/usr/local/extundelete 
# make && make install< Span style= "line-height:0px;" >

< /span>
3. Verify that the installation succeeded  
#  cd /usr/local/extundelete/bin 
# ./extundelete -v 
---------------------- ------------------------------------------------
extundelete version 0.2.4
libext2fs  version 1.41.12
Processor is little endian.
----------------------------------------------------------------------


4. Setting Environment variables
# echo "Path=/usr/local/extundelete/bin: $PATH" >>/etc/profile
# echo "Export PATH" >>/etc/profile
# Source/etc/profile


5. Test with a new disk partition

# mount/dev/sdb1/mnt

# cp/etc/grub.conf./

# RM-RF./*

# Cd/data

# umount/mnt


6. View the files that were deleted

# EXTUNDELETE/DEV/SDB1--inode 2


7. Restore all files at once

# EXTUNDELETE/DEV/SDB1--restore-all


8. Check if the file is successfully restored (the default deleted file will revert to the Recovered_files directory in the current directory)

# ls-al/data/recovered_files/


PS: Other parameters can go to Extundelete--help to see for yourself .....







< c14>

This article is from "Luo Chen's blog" blog, please be sure to keep this source http://luochen2015.blog.51cto.com/9772274/1742081

Extundelete tool to 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.