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

浙公网安备 33010602011771号