下载
http://extundelete.sourceforge.net/bunzip2 extundelete-0.2.0.tar.bz2tar xvf extundelete-0.2.0.tarcd extundelete-0.2.0makemake install
configure时出现了一个错误:Can't find ext2fs library,解决方法:sudo apt-get install e2fslibs-dev e2fslibs-dev,然后make,make install即可
root@lhbo-desktop:/home/lhbo/Tools/extundelete-0.2.4# df -lFilesystem 1K-blocks Used Available Use% Mounted on/dev/sda1 79607672 34712108 40851636 46% /none 508980 252 508728 1% /devnone 513228 252 512976 1% /dev/shmnone 513228 112 513116 1% /var/runnone 513228 0 513228 0% /var/locknone 513228 0 513228 0% /lib/init/rw
--------------根据inode恢复文件。查看文件inode:ls -i/usr/local/bin/extundelete /dev/sda1 --restore-inode 222
--------------恢复一个被误删除的文件
extundelete /dev/sda1 --restore-file /an/important/file
--------------恢复一个被误删除的文件夹extundelete /dev/sda1 --restore-directory /an/important
例如: |