Look! - Over 40 Tutorials
RMPrepUSB - Site News

28 - Recover files and photos from a corrupt SD card or USB drive (free)

Unique hits web counter

If you have an SD card or USB drive (or any storage media), you can recover the files (if the data is still there!) using PhotoRec_Win.exe and any Windows computer. PhotoRec_Win will try to recover all types of files, mp3, mp4, doc, etc., not just photos.

There are graphical Windows GUI utilities which are easier to use, but they tend not to be free or as good as this one. 

This utility does run under Windows 7 64-bit as well as other versions of Windows.
TestDisk.exe is also included in the download which is useful if you need to restore/repair the drive or media, but I would always advise using PhotoRec_Win first.

Instructions are included with this utility, but here is my quick guide (tip: you will find it easier when downloading the utility if you use the Chrome Browser which will offer to translate the web pages).

PhotoRec documentation can be found online: -
TestDisk documentation can be found online: -

  1. Download the PhotoRec_Win utility from here by clicking on the download button (shown by red circle in screenshot below)

    tip: Click on any of the images below to see them at full scale.

  2. Enter the Captcha code as required and click on the Download button.

  3. Allow the file (testdisk-6.10_win.rar) to download.
  4. Open the rar file (e.g. using 7zip) and extract the contents to a folder on your hard disk (e.g. C:\PhotoRec). The 'c' folder is also required.
  5. Now insert you storage device (SD card or camera USB lead, etc.) or connect your USB Flash drive to your Windows computer. The Windows computer should be able to 'see' the storage device. Do not worry if you see a 'Format' pop-up box for the drive - just Cancel it (DO NOT FORMAT IT!)

  6. Now right-click on the photorec_win.exe file which was included in the files you extracted in step 4 and choose 'Run as Administrator'. If you have Windows XP, just double-click photorec_win.exe. 

    You should see a Command Prompt window open.

  7. Use the Up/Down cursor keys to select the correct drive. In my case it is a 1GB USB flash drive. Then hit the {Enter} key to Proceed.

  8. On the next screen, you will need to choose the partition table type that the media had BEFORE it went wrong. This will usually be 'Intel' for any media that you could read using a Windows PC. If doubt, always choose 'Intel'.

  9. The next screen allows you to choose a partition. There may be more than one choice here. If you think you may have tried to 'fix' or 'format' the storage media after it went wrong, then choose 'no partition'. If you are sure you have not altered the media at all and a partition is listed, then choose the partition. If in doubt, choose 'no partition'.

  10. At the next screen, you need to choose a filesystem type. If the media was compatible with Windows choose 'Other - FAT/NTFS/HFS+'. If the media was only accessible under linux or you know it had an ext2/3/4 filesystem then choose 'ext2/ext3'.

  11. Finally, you need to decide if all the space should be analysed or just the partitioned space. If in doubt, choose 'Whole'.

  12. PhotoRec will need to save the recovered files onto your Windows hard disk. The next screen asks you where to save them - just type 'Y' to save them in a new folder located under the same location as Photorec_win.exe.

  13. PhotoRec will now start to analyse the corrupt media and copy any files it can find to a new folder on your hard disk which will be called recup_dir.1 (or .2 or .3 etc.). When it has finished, you can view the files to see what it has managed to recover. I would suggest you look at the photo's first (if any) as it will be obvious if any of these are incomplete or corrupt.

Updated on May 18, 2011 by Steve Si (Version 24)

Attachments (12)

photorec_runas.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_running.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step6.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step5.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step4.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step3.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step2.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_step1.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_icon.jpg - on Jan 29, 2011 by Steve Si (Version 1)

photorec_format.jpg - on Jan 29, 2011 by Steve Si (Version 2)

photorec.jpg - on Jan 29, 2011 by Steve Si (Version 2)

photorec_captcha.jpg - on Jan 29, 2011 by Steve Si (Version 1)