Most likely what you have are parts of "older" versions of that file. This isn't bad, as there is likely still a difference to you between an old version and nothing at all.

My approach to attempt to reconstruct the file would be to do it in several steps:

  1. Read the "restored" file containing the nulls
  2. Read the partial files
  3. Eliminate all partial files that occur completely in the good parts of the restored file
  4. Try to find a partial overlap of the end of a readable part of the restored file with at least one partial file
  5. Repeat with the concatenation of the good file and the partial file until you've exhausted all partial files
  6. If you find multiple partial files that match, flag those for manual user review. Maybe the longest overlap is better, or maybe the shortest overlap is better.

That should give you one potential version of your file, with fewer missing parts than before.

You could also try the same with your partial files, and/or try to find the overlaps between different partial files to piece those together.


In reply to Re: stitch together text file recovered by photorec/testdisk? by Corion
in thread 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.