This command appends 00.bin (a file consisting of a single zero byte) to each .CR3 file in the \recovered directory and writes it to the \fixed directory.
Code: Select all
for %i in (\recovered\*.CR3) do copy /b %i + 00.bin \fixed\%i
Code: Select all
for %i in (\recovered\*.CR3) do copy /b %i + 00.bin \fixed\%i
You can not, this is the problem. It's really sad, the state of affairs but it seems most carving in our top ranking tools is limited to header -- header -- header. DMDE does a tad better, header -- footer or header -- header. Also you can include AND/NOT conditions.
This was the v1 signature, it captured some additional data. v2 does less but that seemed to work for RawDigger.Otherwise you could carve an additional sector, and then write a tool to truncate the carved .CR3 file to its correct size (is that in fact what you are doing?).
@fzabkar good one ! It worked in most cases, rest of it needs 00 00 at the eof so it can be normally opened in LR.fzabkar wrote: ↑Fri Feb 10, 2023 7:56 pm @davey, if you are in a hurry, or just for testing purposes, add a 0x00 byte to your carved files. That should make Lightroom happy.
This command appends 00.bin (a file consisting of a single zero byte) to each .CR3 file in the \recovered directory and writes it to the \fixed directory.
Code: Select all
for %i in (\recovered\*.CR3) do copy /b %i + 00.bin \fixed\%i
Maybe the 01 and 02 mean the number of bytes of 0x00 to follow?
Code: Select all
cd \recovered
for %i in (*.CR3) do copy /b %i + 00.bin \fixed\%i
already fixed that, thank You once again!fzabkar wrote: ↑Wed Feb 15, 2023 7:53 pm I think that one-liner would have failed.
This should work:
Code: Select all
cd \recovered for %i in (*.CR3) do copy /b %i + 00.bin \fixed\%i