Recover corrupted SDcard

A coworker came with sad mood. His tablet microsdcard had failed.

As a good samarian I wanted to try my best to see if I could help.

The sdcard couldnt be mounted neither in windows nor in ubuntu. Photorec got read errors.

Wouldnt give up so I tried  cloning the card with gddrescue to a imagefile and then ran photorec, and suprise, now It found all his lost pictures and videos.


Make a clone off the sdcard in ubuntu:


sudo ddrescue -v /dev/mmcblk0 /home/user/image.img image.log


Then make photorec recover files from the clone


sudo photorec /home/user/image.img


follow the onscreen guide.