LinuxQuestions.org
Register a domain and help support LQ
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 05-24-2011, 05:01 PM   #1
tuxboom747
LQ Newbie
 
Registered: May 2011
Posts: 19

Rep: Reputation: 10
Question howto recover a SDHC card, after getting a buffer i/o error mesg from dmesg(1)?


hello linux world

after reading a SDHC (camera) card with my computer in a non-HC compatible
card reader, i guess i destroyed the partition table.

After getting a SDHC-compatible reader i found it seems there is no part. table on the card and no fdisk(1), badblocks(1) can read that card.

Seems they will wait forever to get a part table.

dmesg says:
[ 7463.499706] sd 13:0:0:0: Attached scsi generic sg3 type 0
[ 7464.022814] sd 13:0:0:0: [sdc] 1024 512-byte logical blocks: (524 kB/512 KiB)
[ 7464.024932] sd 13:0:0:0: [sdc] Write Protect is off
[ 7464.024936] sd 13:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 7464.026935] sd 13:0:0:0: [sdc] No Caching mode page present
[ 7464.026940] sd 13:0:0:0: [sdc] Assuming drive cache: write through
[ 7464.031931] sd 13:0:0:0: [sdc] No Caching mode page present
[ 7464.031934] sd 13:0:0:0: [sdc] Assuming drive cache: write through
[ 7494.452612] usb 1-5: reset high speed USB device using ehci_hcd and address 8
-- last line repeated several times --

has anyone a solution on how to recover the card?

Thanks in advance.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2011, 07:32 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
From an SDHC card reader, I would make a copy of the card with dd. Something like dd if=/dev/sdc of=/home/user/cardimage.img bs=8M. Then run testdisk on the image file and see if you can restore the partition table. If not, you should be able to recover the photos from the card using photorec.
 
2 members found this post helpful.
Old 06-08-2011, 04:35 PM   #3
tuxboom747
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 10
[SOLVED]
Thank you, pljvaldez

I found out the card is definitely physically damaged.

After trying dd(1) and testdisk four, five times I tried rebooting the box with the card pluged in, but than the maschine hangs and gave me a lot of "no partition table found" errors. "Hangs" here means the maschine did not going on within the boot process I hat to press the reset button.

Before that, some times I found also the maschine was frozen when I pluged the stick in a slot: Scroll and Pause keyboard keys were blinking and no mouse nor the keyboard were responding, anymore.
Clear, I first thought it's the card reader, so I tried some other cards, but they all worked fine.

And finaly running dd and testdisk without any positive results, I gave up.

To my luck, there's no big loss, the physical card itself only.

Again Thank you.

Last edited by tuxboom747; 06-08-2011 at 04:40 PM.
 
  


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
Problems with openSUSE 11.1 recognizing Dazzle* Multi-Card reader and 8G SDHC card chubbs Linux - Newbie 0 02-20-2010 11:49 PM
SD card reader doesn't recognize 8 gig SDHC card crystaldon Linux - Software 4 07-12-2009 09:05 AM
Nvidia network card dumps thousand error messages in dmesg pgb205 Linux - Networking 3 04-02-2009 03:39 PM
How do I clone a 4Gb SDHC Card to another 4Gb SDHC Card lothario Linux - Software 3 07-22-2008 10:40 PM
dmesg buffer filled with cdrom: open failed sjaisme Linux - Newbie 1 03-02-2008 08:54 PM


All times are GMT -5. The time now is 04:17 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