Extended Brain Storage

Arch Linux: Images Recovery

Posted on March 21, 2016

How to recover deleted images from an SD memory card, external USB disk, etc...

A Very Quick How-To

Note: The following steps were tested in Arch Linux. However, it is supposed to work in different linux distributions and unix/bsd-based operating systems including macOS.

  1. Install testdisk (PhotoRec).
  2. Create a disk (SD card) image: dd if=/dev/sdd1 of=/tmp/sdcard.img bs=64K conv=noerror,sync
  3. Create a temporary directory: cd /tmp && mkdir -p photos && testdisk sdcard.img
  4. Proceed.
  5. None (Non partitioned media).
  6. Advanced.
  7. Undelete.
  8. ...list through directories.
  9. Press: a to select all (reds become greens).
  10. Press: C (capital) to copy selected files...
  11. Select a directory: (e.g. /tmp/photos).
  12. Press: C (capital) to copy all...
  13. Press: q (several times) and select the Quit option to quit.

Tags: #Arch Linux #macOS #image recovery #photo recovery #security

⏴ Previous Post Next Post ⏵