LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-30-2015, 10:55 AM   #1
EricSkat
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, 11:18 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,358

Rep: Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990Reputation: 1990
1) Use dd to make a backup image of the SD card, eg:
Code:
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.
http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step
 
Old 11-30-2015, 11:38 AM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

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.
 
  


Reply


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 02:52 PM
abrtd: Corrupted or bad crash (res:4), deleting criticalhammer Linux - Server 0 11-10-2011 12:00 PM
LXer: Linux: Recover Corrupted Partition From A Bad Superblock LXer Syndicated Linux News 0 08-22-2008 11:50 PM
9.3 finally OK (inc user access to USB drives) had corrupted / bad CD's 1kyle SUSE / openSUSE 0 08-30-2005 04:09 AM
Bad blocks - reiserfs corrupted babis Linux - Hardware 3 04-03-2005 10:05 PM


All times are GMT -5. The time now is 12:25 PM.

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