22
Mar
10

Recovering files from a corrupt memory card

Yesterday was a busy and frustrating day. Well, most of it.

The memory card of my mobile phone suddenly decided to go bust. I searched the entire web for programs which would allow me to recover data from my memory card. Unfortunately most of them were Windows ones and none of them worked with wine (the demo versions that is, because the full versions of those softwares cost a bomb!).

So there I was stuck with my corrupt memory card. I had loads of important data on it so losing all those meant losing quite a lot of data. Fortunately help was right at hand! I came across some very useful posts (www.goinggnu.wordpress.com/2008/02/14/recover-deleted-files-from-memory-card and https://help.ubuntu.com/community/DataRecovery) which made things easy.

What I did was as follows:

1. I made an image of the memory card on my PC. How? By typing the following in the Terminal:

dd if=/dev/sdb1 of=memory_card.img bs=512

“memory_card.img” was saved under my /home folder. sda is the device name of the memory card, it might not be the same for you. To check what the assigned name of the memory card is, I opened System Monitor (available under System > Administration > System Monitor) and then clicked on the tab called File Systems. Also, please note, this ‘creating image’ process can take some time. It took the program around 20 mins to scan a 1GB RS-MMC memory card.

2. Next, I installed Testdisk

sudo apt-get install testdisk

3. Next I used Photorec, a free data recovery tool to scan the image of the memory card

sudo photorec memory_card.img

memory_card is of course the name you have used to save the image on your hard drive.

I simply followed the instructions of Photorec and the lost files were back, saved under the /home folder. Phew! I cannot explain how relieved i was! Open source saved the day!

Share/Bookmark

Advertisements

0 Responses to “Recovering files from a corrupt memory card”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


ALERT!!!

ALERT! Explore-Ubuntu has moved.

New location of Explore Ubuntu (includes ALL old and brand new posts):

www.explore-ubuntu.blogspot.com

Technology Blogs - Blog Catalog Blog Directory


%d bloggers like this: