Arch Linux: Images Recovery
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.
- Create a disk (SD card) image:
dd if=/dev/sdd1 of=/tmp/sdcard.img bs=64K conv=noerror,sync
- Create a temporary directory:
cd /tmp && mkdir -p photos && testdisk sdcard.img
None(Non partitioned media).
- …list through directories.
ato select all (reds become greens).
C(capital) to copy selected files…
- Select a directory: (e.g.
C(capital) to copy all…
q(several times) and select the
Quitoption to quit.