Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-30-2015, 09:55 AM   #1
LQ Newbie
Registered: Mar 2010
Location: Chicago, IL, USA
Posts: 1

Rep: Reputation: 0
Corrupted SD card after bad unmount.

Basic / new user. I've tweaked commands, but mostly use GUI.

I hastily removed an SD card before ejecting.

I then inserted a different SD card, which is now corrupted in all systems and readers, including the original board mounted reader, camera and external USB reader.

What can I use / do to recover the photos from the second SD card?

My user level is that I am able to use the terminal for commands and most any GUI program. Any help is appreciated so I can recover valuable photos from an Opera photo shoot.
Old 11-30-2015, 10:18 AM   #2
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134
1) Use dd to make a backup image of the SD card, eg:
dd if=/dev/sdb of=$HOME/sd_backup.dd bs=1M
replacing /dev/sdb with the device name of your SD card

When that finishes,
2) Use photorec to scan the backup image for any and all image files. You'll lose filenames, but the creation dates should be retained, so it shouldn't be difficult to rename them to the normal naming sequence once they're recovered.
Old 11-30-2015, 10:38 AM   #3
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Running fsck should be the first step, before you opt for more radical measures. Make sure you make a backup first as suggested above.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bad Monitor and/or Bad Graphic Card or Just Plain Bad Luck Steve R. Linux - Hardware 12 08-27-2014 01:52 PM
abrtd: Corrupted or bad crash (res:4), deleting criticalhammer Linux - Server 0 11-10-2011 11:00 AM
LXer: Linux: Recover Corrupted Partition From A Bad Superblock LXer Syndicated Linux News 0 08-22-2008 10:50 PM
9.3 finally OK (inc user access to USB drives) had corrupted / bad CD's 1kyle SUSE / openSUSE 0 08-30-2005 03:09 AM
Bad blocks - reiserfs corrupted babis Linux - Hardware 3 04-03-2005 09:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration