PetaPixel

How I Lost Over a Hundred Photographs to a Corrupted Memory Card, And Got Them Back

It’s probably every photographer’s worst nightmare. You’ve shot gigabytes worth of images, ready to be imported for post-processing, when suddenly: card is unreadable. Your captures are all gone. All that time and effort lost to a corrupted card. It happened to me, and this is how I got them back.

photorec1

A while back, I shot a few hundred pictures of a couple of live band performances. Later that night, I stuck the 16GB SD card into my laptop, started the Lightroom import, and went to bed. The next morning I checked the laptop to find that there were only 50 files imported, plus an ominous message that most of the files were unreadable. I opened the Finder to peek at the files directly, and they were all seemingly there, but couldn’t be previewed or opened — again, “unreadable.”

Panic.

Being on a Mac, I tried Disk Utility to verify the integrity of the card. It found a number of the files were several MB in size, but “should only be ~32KB” (much smaller). At this point, I held my breath, and tried the Repair Disk option. In retrospect, I should have realized it would only truncate those files, which it did. All the pics were now 32KB instead of several MB and consisted of one thin, horizontal line of color and a lot of gray.

Lesson Learned: If you’re going to try to recover your files, you should NOT do this. I’m pretty sure I was unable to recover a handful of my files solely because of this action.

Frantic Googling ensued. I came across several non-free recovery programs, but being that a) This wasn’t a paid gig, and b) I didn’t know if it would still work after my failed repair disk attempt, I kept looking. Then I found Photorec: a free, open-source file recovery program. It’s also multi-platform, so it works on OS X, Linux, BSD, DOS, Sun Solaris, and virtually every version of Windows made going back to Windows 95 and NT 4.0. I downloaded the latest stable version, 6.14, and cranked it up.

photorec2

The interface is a fairly primitive text-based style that runs in Terminal on Mac, or Command Prompt if you’re using Windows, but it’s easy enough to use.

First, you choose the disk you wish to recover — in my case the SD card — then you choose a folder on your local drive to put the recovered files, and finally, you let it run. It’s important to note that the destination should be at least as big as the disk you are trying to recover, because Photorec will copy everything it finds there. The app operates in read-only mode, meaning it only reads the data on the corrupted disk, writing all the data back to the folder you designated, so that no further damage can be done to the corrupted media.

It took about 90 minutes to recover my entire 16GB card. A handful of files were still lost — nothing but colorful lines that I attribute to my ill-advised attempt to use standard disk utilities — but it not only recovered everything from that night, but some files from previous outings that had been imported and “deleted” from the card months ago, going back to the last time I had reformatted the card. I culled the excess stuff, imported my photos in Lightroom, and all was well with the world.

Epilogue

In the aftermath of my experience I got several other tips, pointers and recommendations. A few people pointed out that a utility like this would come in handy in the event a police officer or security guard makes you delete your pictures for whatever reason. I am not a lawyer, and can’t speak to the legalities involved, but I’ll only tell you that it had recovered previously-deleted photos on my card (the dog photo at the top is an example).

photorec3

Further, while it’s primarily aimed at photos, Photorec recognizes a huge number of file formats including multimedia, archival, office, database and various other formats. There is a comprehensive list on the Photorec website. It also recognizes a wide variety of disk formats, and can be used many different types of media, such as memory cards, hard disks, CD-ROMs, USB drives and more.

Finally, several people praised similar software solutions of varying prices and platforms. While I can’t personally speak to the effectiveness or usability of most of them, they are:

  • Zero Assumption Recovery (Windows)
  • Recuva (Windows)
  • ddrescue (Linux)
  • Image Rescue 4 (Windows, Mac,)
  • Rescue Pro (Windows, Mac)
  • GetDataBack (Windows)

About the author: Scott Daveley is an Internet Software Architect in the Midwest. His hobbies include photography and guitar, his primary weapons being a Canon 60D and a Gibson Les Paul Standard. He likes to speak of himself in the third person, and his Flickr account is here.


 
  • Renato Murakami

    I personally use and recommend Recuva, along several other software by Piriform (they have a great Windows registry cleaner called CCleaner which also does 3-pass formatting and a good defragmenter called Defraggler).
    Good post btw, it’s the sort of problem that every now and then, photographers will have.
    I had to give these tips at least a couple of times for people who were desperate about an SD card going corrupt.

  • CarliTous

    I have gone through the same situation and have used Disk Drill (mac) by Clever Files and it works like a charm, specially for recovering true RAW files not just embedded JPG’s inside a RAW file. Though I will try Photorec to see how it compares. :)

  • RegularGuy55

    I’ve used ‘Recuva’ successfully on SD and CF cards. Once in a while, a few images are lost, probably because they never were fully written to the card. ‘Recuva’ has a free version which is updated (for free) periodically.

  • http://kyleclements.com/ Kyle Clements

    Recuva is certainly easier to use, but I find PhotoRec is a little more powerful – it can usually recover a handful of files Recuva missed.

  • Ben

    Photorec is one of the best programs I’ve used, if you enjoy it please consider donating, it has saved me hundreds of dollars through my use of the product.

  • Kevin Purcell

    What no link to photorec? Shouldn’t you link to it in the article?

    http://www.cgsecurity.org/wiki/PhotoRec

    And yes it does work. I’ve used it to recover files from a “deleted” SD card after the HD the files were copied to went south. It worked for me.

  • Darren D. Stoner

    Lexar cards come with an Image Rescue 4 serial number. Install it.

  • Stan Tan

    I have used a couple of such software… while rescue pro and recuva fail ontrack recovery manage to give my file a fresh new life from a corrupted CF card

  • Renato Murakami

    Hmm nice to know Kyle, thanks! Keeping it on the emergency pendrive just in case…

  • Ed

    I’m a big fan of Photorec. I used it on a 750 gig hard drive that has crashed hard 2 1/2 years earlier, and recovered 90+ % of the files. Every other recovery software I had used failed miserably. Great article…thanks!

  • Mike McQuerter

    Nice article, and cool shots of the band The Black Moods.

  • woofa

    That’s nice, but of no help on a card that actually goes bad and cannot be read. This is only useful for file corruption.

  • Jos

    PhotoRec works great! I’ve had good luck with Puran File Recovery, as well.

  • Scott Daveley

    Yeah, I completely brainfogged that one. Thanks for covering for me.

  • Flying Tanooki

    Thanks for sharing! :)

  • Mario Liedtke

    I am surprised that a software architect tried to fix a broken media instead of making a 1:1 bit-backup and only working with the copy. Thats rule #1 and everybody knows. The other thing is: YES, that software can help, and mostly a payed one can’t do more than a free or opensource one. BUT: If the media hardware has a real defect, also software can’t help and will be useless. Software can only help if the media is upmost working but partially damaged. Best results can be achieved when the file corruption is caused by malfunction, electrical fields or accidently removing a media before the TOC is updated correctly and all writes are finished. Because in that cases the hardware itself will work under normal circumstances absolutly save again.
    Hope I could bring some light into the mind of people that don’t have so much experience with data problems.

    Cheers, Mario

  • Angelgreg

    While on a trip of a lifetime to Buenos Aires, I accidentally deleted over 400 pictures while trying to upload to my iPad. I used SanDisks Rescue Pro program and was able to recover all of the photos on to a thumb drive.

  • http://www.johnathanm.com Johnathan M

    I use Recuva… But then, I’m an old school computer guy, so I know ALL of the best programs.
    (I concur on CCleaner and Defraggler as well).
    Try Everything Search for the best and fastest search for your PC too (turn off match case though and use wildcards! ex. *.doc)

  • http://www.bradwatersmsw.com Brad Waters

    Scott, I think your story can help people prevent or recover from the heartbreak of lost data. I mentioned your story in my latest post on Psychology Today, and wonder if you’d grant me permission to use one of your recovered concert photos in the PT blog? You can reach me at BradWatersMSW [at] Gmail if you’re interested. Thanks!

  • http://www.bradwatersmsw.com Brad Waters

    Scott, I think this article will be helpful and hopeful for people in the midst of stressful data loss. I mentioned your article in my latest post on Psychology Today about tech stress. Would love to add one of your recovered images from that corrupted/recovered card. If you’re interested, get in touch with me at BradWatersMSW[at]Gmail Thanks!

  • jmco

    San Disk and Lexar have free recovery programs. One comes on the disk, the other is free from the web site. I think the SD association also has a recovery tool too. Free.

  • Larry Angier

    A dozen years ago in the “dark ages” of digital, I was downloading and reformatting at the same time. Big mistake! I erased one of the four packed-to-the-gill 128 MB cards with at least 300+ files of a recent trip. Since I was shooting film, no big deal. So I did a search and found a program that I could download and try for free before paying for it.

    Well, it was a PC program and I had a Mac. But not all was lost. They were just a few weeks from bringing out a Mac version and since I wasn’t in a hurry, I waited. When I finally tried to recover the card, wow! I got them all back! Since then, I’ve had perhaps less than a dozen times I’ve had problem cards, usually a bad batch or a card goes bonkers.

    In every case that program has saved the day and is worth much, much more than it’s paltry price of under $50 US. The program, BTW, runs on both Mac and PC. You download it, try it and if it shows you the missing thumbnails, then you spend a few bucks to the code. The program is PhotoRescue and it’s the only software in a dozen years that has never let me down. I’ve tried perhaps another half-dozen free and paid programs and this is the only one that has consistently worked.

    It doesn’t require Terminal and the interface is refined. You run it the easy way and if that doesn’t work, you try the longer, deeper advanced mode. If PhotoRescue can’t find your photos, I don’t think many other programs will have any better luck.

  • Elaine

    I lost 2 trips from my Go Pro on the micro sad card. Do these recovery program work on video recovery?

  • Anonymoused

    I second this. I used Recuva after having used CCleaner for years — it’s perfect.

  • Courtney Navey

    I use DataRecovery II and it’s recovered countless files for me when I’ve hard drives crash or Compact Flash Cards go bad.

  • J O

    I downloaded the app but I can’t figure out how to install and how to open the app up. Could you give us a follow-up article explaining how to install and use please. I use a Mac.

  • Debi Sen Gupta

    You may have just saved my life. I just had an external drive – 500 gb crash on me and lost many files including one with some wedding pics which I had just transferred for subsequent back-up. Since the cost of recovery would have been a substantial part of my profits, I was not in a good mood.

  • Kayleigh Lum

    Photo Recovery by Wondershare is also a great product to use – http://www.wondershare.com/data-recovery/photo-recovery.html

  • Photofreak

    Thanks! for suggesting so many resources. I had the same instances several times but was not able to save myself from such situation. As a photo freak i love to click photos but do not know how to recover them back if lost. Will try these and share my viewpoints.

  • Gemmy Johnson

    If you have accidentally deleted or lost photographs and
    other media files due to corrupted memory card issue, then don’t panic. You are
    at the right place, you can easily retrieve them back using Remo Recover Media
    edition recovery tool.

  • Tahnee

    I had a 16GB Beyond Micro SD card which I used for a newborn photo-shoot of my cousin’s baby. The photographs were taken with bub’s Grandmother who had come all the way from Canada to Australia to see the birth and would not be seeing baby again for over a year.
    At the end of a 4 hour shoot, whilst talking with the family, I tried to pull the card from my camera and the mini/micro chip pulled out of the card. I thought nothing of it since I knew it slipped in and out and simply popped it back in. When I tried to put it back in the camera, the camera read error and told me that the card was corrupted – imagine the blood drain from my face.
    I sped home and downloaded every possible software to retrieve the files. I bought a memory card reader – nothing. Scan after scan – to no avail.
    At the end of a forum (and a long stiff drink) I began reading information about a place in Germany that could retrieve the irretrievable. It all sounded just too good to be true. One more failed software program and I figured I had no other choice. I emailed the business: Recoverfab and received a prompt response from Leopold who advised he had every hope he could get something from it. He emailed the address and I posted the little card away sticky-taped to the inside of a cardboard cd box. 10 days later I received an email to advise that he had received it and would get back to me within 6 days with the outcome. 6 HOURS later I received another email confirming he was able to retrieve 269 of the images. I was given a link to the page where I could view 100 of those images and there were those beautiful baby/family photos.
    It’s going to cost me just under $300 to have the files returned to me but sometimes you just can’t put a price on these kinds of memories.
    If you’re like I was and feeling like there’s just no hope for you…Recoverfab, mate. Look it up. Email them. Get your photos back.

  • Phil Smith

    Thanks very much Scott :-) An excellent article that explains everything nicely. I have used the PHOTOREC software loads of times, but was just searching the internet to see if any new things had appeared – I do data recovery as part of my very very small business ;-p and that same software has beaten most others I’ve tested.

    An important point (i think) about this article is, that in Scott’s case, this is about losing files/photos due to instant & unavoidable corruption to a memory card, which can happen for loads of reasons – defective file structure on card, batteries going off when reading/writing to a card, bad card contacts inside (especially with Micro-SD adapters), or just plain bad luck as in Scott’s case above.

    Most of the software here is ‘only’ for recovering deleted files, it doesn’t actually understand how to recover damaged files (a deleted and a damaged/corrupt file are two very very different things). As an example, just yesterday I lost 6 photos on my cell phone – Recuva got 8 deleted files back, couldn’t even see the damaged files (all I could get was No Preview Available in Windows XP), but PhotoRec got all damaged files including thumbnails of them, as well as deleted txt messages/videos/APK android games etc.

    I think a good point is to see that PhotoRec isn’t a standard type of program, it’s DOS based and handles the file structure far different to how Windows (and the MAC) does. In most cases the only reason we lose a file is because the operating system is only seeing the basics and cannot understand further problems.

    Another odd way that can sometimes fix things is to use odd devices to view a memory card. In 2005 I had an SD card that lost some precious photos, and nothing would touch it. I tried it in various devices, including an MP3 adaptor for an old CYBICO XTREME childrens mini computer – and it was that device which read the SD card, realised there was a problem, hesitated for a few seconds while it automatically sorted the corruption, and that was it. The photos were fixed !! And XP read them happily after that. Sounds crazy, but I’ve seen so many odd things happen over the years I’m not suprised by much now. Why did I try it on the CYBIKO? Because that’s what I do lol, I try all kinds of odd ideas and find some very odd repairs possible. Even a 400Gb HDD that only ticked – a sharp tap on the work bench (it was a dead one anyway as far as I was concerned), and the things been working perfectly for 15 months :-o

    A quick ‘other’ helpful program that is free to use for recovery is FIND AND MOUNT. It’s excellent for getting back even removed/damaged partitions as well as its files. The free version is very slow, and the paid for version is far far faster.

    Apologies for ranting on :-) Best of luck to everybody with missing files, and thanks again Scott !