Friday, 12 September 2008
Recover Photographs From a Memory Card
Recover images off a corrupt/damaged memory card. The first step to do is to install a software package named “testdisk”. sudo apt-get install testdisk Or of course use synaptic to search for "testdisk" and install it. The next step is to make an image of your memory card, this is achieved using the ‘dd’ command which comes by default with most distributions, the command you will have to issue is: dd if=/dev/sda1 of=memory_card.img bs=1024 You can get the correct /dev/xxxx path by inserting the memory card then using "dmesg" in a terminal and reading the last few lines. In the above command, ‘if’ is the input drive which should be your memory card, ‘of’ is the file name for the image which we are creating, and ‘bs’ is the byte size. Recover files by scanning the image using photorec The final step is to use a command provided by testdisk package. The ‘photorec’ command will recover all the JPG and GIF files which were recently deleted from your memory card. The command is very simple and run from the folder containing the image file: photorec memory_card.img The software will take you through a menu driven interface where you will have to select a few options to get your work done. It is simple and anyone should be able to use it with ease.