extundeleteを使用したファイルの回復

extundeleteを使用したファイルの回復

更新後、誤ってPackage Managerキャッシュから一部のファイルを削除しました(したがって、ダウンロードしたすべてのパッケージを削除しましたが、残念ながらインストールされませんでした)。

私がしたことは次のとおりです。

  1. Archシステムと同じHDDからUbuntuシステムから起動します。

  2. Ubuntuで起動したので、Archシステムのルートパーティションがアンマウントされたので、extundeleteは次の出力を提供します。

    $ sudo extundelete /dev/sda1 --restore-directory /var/cache/pacman/pkg/
    
    WARNING: Extended attributes are not restored.
    
    Loading filesystem metadata ... 232 groups loaded.
    
    Loading journal descriptors ... 30722 descriptors loaded.
    
    Searching for recoverable inodes in directory /var/cache/pacman/pkg/ ... 
    
    9385 recoverable inodes found.
    
    Looking through the directory structure for deleted files ... 
    
    9385 recoverable inodes still lost.
    
    No files were undeleted.
    

私ができることはありますか?それとも私は完全に壊れたのだろうか?

ベストアンサー1

extundeleteの著者:

inodeをファイル名に関連付ける方法が見つからなかったようです。この場合、--restore-allファイルを回復するための最良の方法です。

https://sourceforge.net/p/extundelete/mailman/message/30159985/

したがって、あなたの場合は、以下を実行する必要があります。

sudo extundelete /dev/sda1 --restore-all

しかし、私の経験によれば、まだ「欠けている」ファイル(inode)は、ユーザーが指定したディレクトリだけでなくパーティション全体のものであるため、回復可能なほとんどの項目がすでに回復されているため、出力は欺瞞的です。ただし、--restore-allパスがわからないファイルの一部を見つけることができるので、試してみることも悪くありません。

おすすめ記事