Thanks, Shawn (Shield).
1% is right:
Obviously not pointless for people with damaged files.
Paste a footer of correctitude onto the end and re-save.
The collage of 9 mini-frames that DaveAbbott experienced, appears to happen if the footer is copied from RAW file of a different camera and/or resolution.
What worked for me, was to copy the last 192 bytes (eg. 12 lines x 16 bytes per line; begins with RAWM as seen in the ASCII column) of a file from the same camera shot at the same resolution, and append it to the damaged file, replacing any final truncated line.
At this point, you will only be able to extract as many frames as the file you copied the footer from has, but at least the frame size will be correct, avoiding the mini-frames problem.
Next, replace the 4th group of 4 bytes, as Shield pointed out in bold:
52 41 57 4D 80 07 38 04 00 5F 37 00
F4 21 00 00 01 00 00 00 A8 5D 00 00 18 02 98 19 18 02 98 19 01 00 00 00 00 20 15 0B 26 05 00 00 20 08 00 00 38 0E 00 00 50 34 49 00 0E 00 00 00 0C 08 00 00 98 3A 00 00 00 00 00 00 00 00 00 00 88 07 00 00 08 05 00 00 1E 00 00 00 92 00 00 00 26 05 00 00 1A 08 00 00 00 00 00 00 00 00 00 00 00 01 01 02 01 00 00 00 42 1A 00 00 10 27 00 00 85 FD FF FF 10 27 00 00 3D FC FF FF 10 27 00 00 41 EF FF FF 10 27 00 00 AC 30 00 00 10 27 00 00 EC 07 00 00 10 27 00 00 74 FC FF FF 10 27 00 00 72 08 00 00 10 27 00 00 24 16 00 00 10 27 00 00 82 03 00 00
According to the number of frames you shot (thus size of your *.RAW file), choose the next bigger number of frames according to Shield's list:
66 22 00 00 = 8806 frames (Roughly the fix for a corrupt 32 GB file at Shield’s resolution of 1920x1080)
66 11 00 00 = 4454 frames (Roughly the fix for a corrupt 16 GB file at Shield’s resolution of 1920x1080)
9e 08 00 00 = 2206 frames (Roughly the fix for a corrupt 8 GB file at Shield’s resolution of 1920x1080)
80 04 00 00 = 1152 frames (Roughly the fix for a corrupt 4 GB file at Shield’s resolution of 1920x1080)
Yes, you'll end up with a garbage .dng files representing the excess of the number chosen above, beyond the actual number of frames you shot, but you can just throw those out.
I’m using hexfiend for Mac
http://ridiculousfish.com/hexfiend/ Note to boytecreative: I found that hexfiend would only save changes if "Saved as…" a new file name.
As least in my first few baby steps with hexfield, it didn’t seem to save files in place.