PetaPixel

How to Recover Deleted Photos from a Memory Card with PhotoRec

Last night my pastor emailed me telling me that he had accidentally deleted an entire folder of photographs off his Sony compact camera, and that Sony’s technical support informed him that it would cost $200-300 for them to recover the photos. After I got a hold of the memory card, I checked some of the recovery programs I’ve used in the past, but discovered that they now require paid licenses to actual do recovery (though analysis is free). I then stumbled across PhotoRec, a free and open source command-line application that’s bundled with TestDisk, something I’ve successfully used to regain access to inaccessible external hard drives.

In this post I’m going to show you how you can use PhotoRec to recover your photos if you’ve accidentally deleted them or formatted your memory card.

1. Stop Using the Memory Card

In most cases, data that’s “deleted” from a memory card is actually still intact and recoverable. The “deletion” simply marks the space on card as “free” allowing data that’s written in the future to overwrite it. Special recovery programs can still retrieve the deleted data.

Thus, the most important step after you’ve accidentally deleted stuff is to stop using the card. In my case, my pastor had taken about 50 photographs after deleting 500 photos, which meant that at least 50 of the deleted photos were permanently lost.

2. Download PhotoRec

You can download PhotoRec for free for whatever operating system you use here.

3. Use a Card Reader

Plug the card into a card reader so your computer can access it as a storage device or drive.

4. Run the Program

You can double click the program, but if you’re on Linux or a Mac you might need to run the program with root privileges (using sudo) to see the complete list of drives. See this page for more help on running the program.

5. Step Through the Screens

PhotoRec is pretty straightforward. Make your selections for each step for things such as disk to recover, partition type, destination to save recovered files to, etc… In most cases the correct option will be pre-selected for you. Since nothing will be changed or written on the memory card, you can always just try out the default selections and see if they work (they likely will). For a visual step-by-step guide for the different options, check out this page on the PhotoRec wiki.

6. Watch as Your Photos Are Extracted

Using PhotoRec, I was able to recover all 450 of the photographs that weren’t overwritten by new images from the 512 megabyte Memory Stick card in about 4 minutes. The program can be used for normal hard drives and non-photo files as well.

There you have it — the story of how I saved someone $300 and 450 memories. If you ever accidentally delete photos or format your memory card, think back to this post and try using PhotoRec to undo your disaster.


Image credit: MS Pro Readable – IMGP1973 by yuankuei, card reader_1635-37-3 by mondays child


 
 
  • http://twitter.com/Blackbird_2 Bob Dunkin

    I tried this program out before the G20 Summit in Toronto, just in case I was asked to ‘delete’ photos (I wasn’t, others were). Gotta say, I’m impressed with the speed and accuracy of this. I tried a full 8Gb card, took a while, but all files were recovered. And a partially full card, again, all recovered. My Canon camera has 2 types of format, ‘regular’ and low level. It could NOT recover the low-level format, but did the other just fine. Just remember to bring an extra card!

  • Pingback: What I’ve Been Reading | iffles.com

  • http://twitter.com/bigwhitebear18 bigwhitebear18

    Piriform has a great program “Recuva” that has a very simple interface, allows you to preview most non overwritten files, and has a search function too. I think I’ve used it more than my more expensive “professional” recovery software for pictures, documents, etc.
    http://www.piriform.com/recuva

  • http://www.petapixel.com Michael Zhang

    Nice, a free program with a GUI =) People who don’t feel comfortable with command-line may like Recuva better

  • Martin

    I use it sometimes when people gently ask me to erase or format my memory card. Worked all time ! :)

    I’m using photorec form more than 5 years, one various support a memor card and even hard drive :)

    For faster recovery, you can narrow the search by selecting only images.

  • Pingback: Retrieve accidentally deleted Photos from your memory card with PhotoRec | Helablog

  • Pingback: Forced to Delete Photos? No Problem, Just Recover Them Later

  • Pingback: Joakim Fjeldli Photography » File recovery from “formatted” memorycards

  • http://twitter.com/nramkarran Nikhil Ramkarran

    I had looked for weeks for software to recover some lost photos. I tried a couple dos based ones, the trial versions of some paid ones, even Recuva and none of them detected the deleted files. Tried this and found and recovered the 4 files within 10 minutes. Fantastic! Thank you.

  • Pingback: WPJ – Weekly Photography Junction | OLAF BATHKE - The Adventure of Being a Photographer

  • Gerald L

    Thank you for this post. I just recovered 320 images.

  • Oliver

    Photo Recovery software is an amazing utility that can bring back your lost memories from various crucial situations. Don’t know about the software you mentioned, but would like to tell others that I’ve used Stellar Phoenix Photo Recovery Software and get amazed with its result. Super fast scanning, preview during scanning and very fast recovery are some of its top most features that every user is looking while recovering their photos.

    Thanks for this amazing yet helpful article and specially for your steps.

  • abc

    this does not work for me.

  • abc

    I found a software which helped me. the program called “asoftech data recovery”. however, it’s not free:( any of you have a product key to share?

  • Ijllly

    As for me, I used the Vibosoft Card Data Recovery tool, easy to use and powerful. I would like to share it with others.

  • natwatas

    last time I tried the tool but failed, then I find another solution. So if you also have the same problem, you may try this one
    http://goo.gl/WNgI5P

  • Soren Roma

    Use trial version of Kernel Recovery For Digital Media software to recover deleted photo from memory card. It is an advance and cost-effective tool and anyone can easy to use.