一、安装依赖包
yum install gcc gcc-c++ gcc-g77
yum -y install e2fsprogs e2fsprogs-libs e2fsprogs-devel
二、安装
wget http:
//jaist.dl.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2
tar jxvf extundelete-0.2.4.tar.bz2
./configure
make && make install
运行恢复
默认恢复到当前目录下的RECOVERED_FILES目录中去
恢复单个文件
extundelete /dev/sdb1 --restore-file hosts
恢复一个目录
extundelete /dev/sdb1 --restore-files test/
恢复整个分区
extundelete /dev/sdb1 �-restore-all
原文链接:https://www.f2er.com/centos/381316.html