使用extundelete工具
sudo apt-get install extundelete
恢复操作命令
首先需要umount
或者
read
only 分区
umount
/dev/partition
mount
-o remount,ro
/dev/partition
--恢复文件
extundelete
/dev/partition
--restore-all
extundelete
/dev/partition
--restore-directory
/backup/gnutool-delete
extundelete
/dev/partition
--restore-files
/etc/passwd
|
恢复制定分区下所有删除文件,默认恢复到执行命令的目录下,文件夹名字为RECOVERED_FILES,使用详情请参考:extundelete --help 运行的结果