$HOME ディレクトリに単一ファイルを復元する

$HOME ディレクトリに単一ファイルを復元する

誤って逃げて+でrm -r /home/xralf早くCtrl殺されましたC

すべてが大丈夫だったが、.vimrc私にとって重要なものが欠けていることに気づいた。

私は次のコマンドを試しました。

$ extundelete /dev/sda5 --restore-file /home/xralf/.vimrc
extundelete: failed to read-only open device "/dev/sda5": Error code 13

ファイルを復元するには何かが間違っているようです。デバイスをマウント解除する必要があります。

ここにインストールされます:/dev/sda5 on /home type ext4 (rw)

  • このファイルを回復できますか.vimrc
  • どうやって再インストールしますか?問題はディレクトリが必要なときに発生します$HOME

LiveCD今私のラップトップに失われて使用することはできません。USB私のラップトップはどちらでも起動をサポートしていません。

以下を使用してコマンドを実行しますsudo

sudo extundelete /dev/sda5 --restore-file /home/xralf/.vimrc
WARNING: Extended attributes are not restored.
WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.
The partition should be unmounted to undelete any files without further data loss.
If the partition is not currently mounted, this message indicates 
it was improperly unmounted, and you should run fsck before continuing.
If you decide to continue, extundelete may overwrite some of the deleted
files and make recovering those files impossible.  You should unmount the
file system and check it with fsck before using extundelete.
Would you like to continue? (y/n) 

ベストアンサー1

Error code 13はいEACCES- アクセス違反です。

デバイスから読み取る権限がありません。スーパーユーザーとしてコマンドを実行しますsudo extundelete ...。つまり、 。

おすすめ記事