< 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