40

I deleted 40 some photos from my SD card in my camera. I thought I saved them on my desktop. Using 12.04 LTS. Is there a way to restore the photos?? My wife is pissed. Nothing has been over written on the card.

Thanks

0

1 Answer 1

98

TestDisk / PhotoRec

Yes, use the tool photorec; you'll be able to recover pretty much any file.

You should make sure that the SD card is read only as writing to it can corrupt any possibility of recovering data.

In Ubuntu, open a terminal and run:

$ sudo apt install testdisk
$ sudo photorec
5
  • Just tried it, it works great, recovered all files on sdcard.
    – conualfy
    Sep 3, 2014 at 22:59
  • 3
    sudo apt-get install testdisk will install the photorec binary.
    – Steve
    Jun 29, 2016 at 19:13
  • 1
    Worked like a magic for me. Dec 4, 2017 at 14:09
  • 1
    Wow, lifesaver! Restored almost all the lost photos!
    – 0x49D1
    May 24, 2018 at 20:36
  • You can rename the pictures to their original naming format by using the date and time contained in their EXIF data (if present). I have posted instructions here.
    – Tymek
    Feb 5, 2022 at 23:43

Not the answer you're looking for? Browse other questions tagged .