用于恢复ext3/ext4文件被删除后的恢复
下载路径
https://sourceforge.net/projects/extundelete/
编译
./configure
make
./configure出现一个错误
Configuring extundelete 0.2.4
configure: error: Can't find ext2fs library
需要
sudo apt-get update
sudo apt-get install e2fslibs-dev e2fslibs-dev
make时出现一个编译错误
insertionops.cc:36:36: error: ‘const struct ext2_inode’ has no member named ‘i_dir_acl’; did you mean ‘i_file_acl’?
36 | os << "Directory ACL: " << inode.i_dir_acl << std::endl;
注释掉该行
命令
./extundelete --help
sudo umount /dev/sdb1
sudo ./extundelete /dev/sdb1 --inode 2
extundelete /dev/sdb1 --restore-file 文件名
extundelete /dev/sdb1 --restore-all
extundelete /dev/sdb1 --after 1711350000 --restore-all (时间晚于1711350000 2024-3-25 15:0:0)
extundelete /dev/sdb1 --before 1711356000 --restore-all (时间晚于1711356000 2024-3-25 16:40:00)