Lightroom Corrupting CR2 files

  • 1
  • Problem
  • Updated 3 years ago
I'm getting corrupt CR2 files from Lightroom. When it first happened, I suspected hardware (as the forums suggested) so I got a new card reader, which didn't help. So I began a process of careful checking of the cards (creating an MD5 archive before importing and comparing the results against the md5 after importing). The files were transfered correctly to my laptop and the corruption happens when I 'zoom' to 1:1 in lightroom. Re-running the MD5 check shows the files altered. I have several samples of original and corrupted files.
Photo of Anthony Giancola

Anthony Giancola

  • 4 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2611 Posts
  • 333 Reply Likes
Are you allowing LR to update the timestamp in the raw files?

This is a checkbox in the catalog settings:
Photo of Anthony Giancola

Anthony Giancola

  • 4 Posts
  • 0 Reply Likes
No. I never want the raw files touched
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2611 Posts
  • 333 Reply Likes
What sort of corruption are you seeing?

Are you using an Add import or a Copy or what is actually occurring between the MD5 before and the MD5 after.
Photo of Anthony Giancola

Anthony Giancola

  • 4 Posts
  • 0 Reply Likes
Corruption is similar to other mentions in the forum. Upper Left corner is fine (sometimes most of the pic is fine, sometimes almost non is ok) the rest if stripey white and colored bands

Steps I use to eliminate other sources:

1) Create an MD5 checksum for the files on the CF Card (ExactFile is the program I use)

2) Copy the entire directory to a temp location on a Hard Drive.

3) Verify the MD5 against the HD copy.

4) Import files into Lightroom from the HD copy (using COPY, so a 2nd copy of the files in the Lightroom structure)

5) BACKUP LR FILES

6) Copy the MD5 file to the Lightroom structured copy.

7) Verify the MD5 against the LR imported copies (I have done this 10x times, - if the disk had trouble I should see 10x errors here as I do in LR)

8) Review each Image in LR at 1:1 resolution. - In today import I had 8 bad files in 1000 pictures.

9) Re-Verify against the MD5 - Shows 8 files are bad. Only Lightroom opened the files.

9 Recopy the corrupted files from the CF (or from the HD copy, or the backup - they all match the MD5)

10) recheck the replace files in LR - now they are OK (This confirms the original copy to HD was correct, so CF card and reader are not the issue)

11) recheck the LR import (with 8 replaced corrupt files) agains MD5 - ALL FILES AGREE.

So, once I open every file at 1:1 in LR once successfully it seems to be fine after that.

If LR isn't doing it, then I have an intermittent hardware issue that by chance only happens in LR (Since I can read every byte of every file 10 times outside LR w/o any corruption, and 1 reading with LR gives 1% errors)

Have I missed a step?

I would like an assurance from Adobe that LR always opens raw files read-only.

Thanks,
Tony
Photo of Anthony Giancola

Anthony Giancola

  • 4 Posts
  • 0 Reply Likes
I went back through all the other forum posts on this and found a buried comment about MS Security Essentials.

While the Anti Virus should not touch a file opened read-only, it is a 'hidden' process that could have an effect even with my multi stage verification.

I have disabled it for cr2 files and will continue my very careful uploading process for a while and see it that was the cause.

Thanks,
Tony