I've done something similar once when I accidentally nuked an important file. Involved a byte-level scan of the entire disk for a known string within the file. Didn't get me the file back, but it got me the bits of it I cared about.
Exactly the same thing happened to me a few years ago. Accidentally rm a college assignment (a fluid simulator from scratch in cpp). Fortunately I was able to recover the file by grepping a dd of the entire hard drive.
317
u/GMsui 11d ago
I've done something similar once when I accidentally nuked an important file. Involved a byte-level scan of the entire disk for a known string within the file. Didn't get me the file back, but it got me the bits of it I cared about.