lundi 29 décembre 2014

ecryptfs-recover-private deleted files?


After running ecryptfs-recover-private --rw ./ and doing some basic tasks on the mounted directory it seems that all files have been deleted somehow, yet the folder structure remains. This is very absurd as I certainly haven't touched a majority of the files now missing, and the folder structure goes to a depth of five at least. The directory has been remounted several times afterwards and the machine rebooted to ensure it wasn't just a temporary bug.


A quick rundown of what was done, in order:



  • run diff -r a b | less where a is the mounted private directory and b is a similar folder on another drive.

  • delete a single file inside a directory in the root of the mount path.

  • subsequently delete the entire directory the file resided in.

  • open a plaintext file in vim, before promptly closing it.

  • run ls to find the plaintext file is missing, and so is every other file. The less command also suddenly started spitting out "missing file" errors.


SMART tests dictate that the drive is healthy. What could have possibly gone wrong and is there a way to recover or check for any traces of the files?



Aucun commentaire:

Enregistrer un commentaire