Hi,

Any ideas how to stitch together a text file recovered by photorec/testdisk?

Originally its a 13MB file , photorec gave me 40 thousand kb sized text files, 400mb worth

I have about 5mb of the original file, about 8mb are missing (NULS)

Other similarly sized files that dont need recovery are referenced, but in itty bitty chunks

https://notepad-plus-plus.org/community/topic/13302/fix-corrupted-txt-file-null/30 references similar situation, some guys says they used "recuva" but it didnt work for me

I've poked around the files a bit, the data is there, but what goes where? qphotorec.log lists these two files side by side which have the target data

recup_dir.79/f93737696.txt 155170319-155170358 recup_dir.79/f93737736.txt 155170359-155170366

Problem is first one is the last 16610 bytes from the original file, but the second one is the second one is from 134 bytes from 2MB into the original file (6 lines, 2 partial ones).

the second one seems to be duplicated a bunch of times

recup_dir.4/f8584568.txt recup_dir.47/f80423368.txt recup_dir.5/f13045792.txt recup_dir.57/f85016144.txt recup_dir.63/f88799480.txt recup_dir.68/f89877496.txt recup_dir.71/f90986416.txt recup_dir.71/f91006272.txt recup_dir.79/f93737736.txt

So something clever with md5sums that doesnt require that I read 13mb worth of file, ugh :)

Thanks


In reply to stitch together text file recovered by photorec/testdisk? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.