![当 rlinux、photorec 无法找到已删除的 zip 文件时,从特定路径恢复这些文件的最佳方法是什么?](https://linux22.com/image/1197691/%E5%BD%93%20rlinux%E3%80%81photorec%20%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%E5%B7%B2%E5%88%A0%E9%99%A4%E7%9A%84%20zip%20%E6%96%87%E4%BB%B6%E6%97%B6%EF%BC%8C%E4%BB%8E%E7%89%B9%E5%AE%9A%E8%B7%AF%E5%BE%84%E6%81%A2%E5%A4%8D%E8%BF%99%E4%BA%9B%E6%96%87%E4%BB%B6%E7%9A%84%E6%9C%80%E4%BD%B3%E6%96%B9%E6%B3%95%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.png)
从特定路径恢复已删除的 zip 文件的最佳方法是什么?我有 2 个 zip 文件,之前存储在一个外部驱动器中,/dev/sda3
需要剪切并粘贴到home/user/Documents
。这些 zip 文件的class
文件名中有关键字“”,其中一个大小约为 2GB,另一个较小,我记得这么多。为了以防万一可以恢复文件夹,我也提取了它们,但提取的文件夹被删除了,因为 zip 文件无论如何都是可用的。后来,这些 zip 文件也被意外删除了。如果这些信息有帮助,这些文件是在不到一周前被删除的。垃圾箱是空的。
我碰到了这条帖子:如何恢复已删除的文件?并尝试了解决方案部分中可以尝试的所有方法。我尝试了哪些方法:
R-Linux:无法找到这些 zip 文件,无论是来自
/dev/sda3
还是home/user/Documents
。事实上,没有找到大小超过 1GB 的 zip 文件。摄影记录:无法找到特定的 zip 文件,无论是恢复前
/dev/sda3
还是home/user/Documents
恢复后 18 小时。但我获得了一个未知的 960 GB 左右的 zip 文件,由于我似乎无法解决的错误,我似乎无法提取它:ERRORS: Headers Error Unconfirmed start of archive WARNINGS: There are data after the end of archive -- Path = f7915520.zip Type = zip ERRORS: Headers Error Unconfirmed start of archive WARNINGS: There are data after the end of archive Physical Size = 8453482 Tail Size = 996119120534
我尝试使用 unzip、p7zip 和 java archiver 解压此文件(以下这个答案),都遇到了类似的错误。无法强制解压
删除:我尝试卸载
/dev/sda3
并运行此命令 sudosudo extundelete /dev/sda3 --restore-file ".*class.*\.zip"
并看到以下输出:NOTICE: Extended attributes are not restored. Loading filesystem metadata ... 2407 groups loaded. Loading journal descriptors ... 0 descriptors loaded. extundelete: Extent block checksum does not match extent block while finding inode for .*class.*\.zip extundelete: Extent block checksum does not match extent block while finding inode for .*class.*\.zip Failed to restore file .*class.*\.zip Could not find correct inode number past inode 2. Try altering the filename to one of the entries listed below. File name | Inode number | Deleted status extundelete: Operation not permitted while restoring file. extundelete: Operation not permitted when trying to examine filesystem
sudo extundelete /dev/sda3 --restore-file '\.zip$'
返回相同的输出。
- 这些文件未被使用删除
rm
,因此history | grep "rm .*class.*\.zip"
不返回任何内容 - 首先。我尝试运行
sudo foremost -v -t zip -q -i /dev/sda3 -o /media/user/external/recover -T
。找到了很多 zip 文件,但没有找到特定的文件。据我观察,与 R-linux 类似,大型 zip 文件无法恢复,最大的只有 100mb。
我很感激任何有关其他工具或解决我上面提到的错误的建议。我可以尝试任何方法。