我使用extundelete来恢复从AWS EBS卷中删除的大约9000个文件,意外地是因为编程错误。
报告的结尾说
2864 recoverable inodes still lost.有谁能解释一下这意味着什么,以及如何使用extundelete恢复不可恢复的内容?
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 240 groups loaded.
Loading journal descriptors ... 30077 descriptors loaded.
Searching for recoverable inodes in directory /srv/www/mysite.com/photo-gallery ...
9000 recoverable inodes found.
Looking through the directory structure for deleted files ...
Unable to restore inode 330 (srv/www/mysite.com/photo-gallery/group56/myimage7.jpg): Space has been reallocated.
Unable to restore inode 1179649 (srv/www/mysite.com/photo-gallery/group189/myimage5.jpg): Space has been reallocated.
2864 recoverable inodes still lost.发布于 2020-05-29 15:53:15
摘自extundelete的作者:
我猜它没有找到将inode链接到文件名的方法,在这种情况下,
--restore-all方法是您获取文件的最佳方法。
https://sourceforge.net/p/extundelete/mailman/message/30159985/
根据您的问题,我猜您使用--restore directory /srv/www/mysite.com/photo-gallery运行了extundelete
如果是这样的话,那么您可以将所有这些替换为--restore-all。
sudo extundelete /dev/sda1 --restore-all尽管根据我的经验,输出是具有欺骗性的,因为仍然“丢失”的文件(inodes)是针对整个分区的,而不仅仅是针对您指定的目录,这意味着它能够恢复的大部分内容已经恢复。但是尝试--restore-all并不会有什么影响,因为它可能会找到一些它不知道路径的文件片段。
https://serverfault.com/questions/856475
复制相似问题