Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Recover broken SDHC card

19 views
Skip to first unread message

Klaus Pieper

unread,
Sep 7, 2012, 12:50:02 PM9/7/12
to
Hello debian gurus,
is it possible to recover anything from this flash card?
Klaus

[ 1008.061896] scsi 6:0:0:0: Direct-Access SanDisk SDDR-113
9412 PQ: 0 ANSI: 0
[ 1008.063822] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1008.196914] sd 6:0:0:0: [sdb] 7744512 512-byte logical blocks: (3.96
GB/3.69 GiB)
[ 1008.198130] sd 6:0:0:0: [sdb] Write Protect is off
[ 1008.198138] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1008.198143] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1008.201240] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1008.201249] sdb:
[ 1012.889494] sd 6:0:0:0: [sdb] Device not ready
[ 1012.889502] sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE
[ 1012.889510] sd 6:0:0:0: [sdb] Sense Key : Not Ready [current]
[ 1012.889519] sd 6:0:0:0: [sdb] Add. Sense: Medium not present
[ 1012.889530] sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00
08 00
[ 1012.889549] end_request: I/O error, dev sdb, sector 0


# sfdisk -l /dev/sdb
/dev/sdb: No medium found

sfdisk: cannot open /dev/sdb for reading


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/k2d79i$i4j$2...@news.m-online.net

Frank McCormick

unread,
Sep 7, 2012, 1:30:02 PM9/7/12
to
Did you mount the card as /dev/sdb...if so...mount the partition
/dev/sdb1 YMMV


--
Cheers
Frank


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/504A2E7E...@videotron.ca

Camaleón

unread,
Sep 7, 2012, 1:50:01 PM9/7/12
to
On Fri, 07 Sep 2012 18:27:31 +0200, Klaus Pieper wrote:

> Hello debian gurus,
> is it possible to recover anything from this flash card?

(...)

Is it really broken? Have you mounted the SD card on another computer or
on a Windows system (just in case...)?

You can try with the usual recovery tools (Photorec and/or TestDisk¹) but
the success will depend on the level of damage on the card.

If nothing helps, you can test with the tools provided by the card's
manufacturer (usually for Windows) but that's better than nothing ;-(

¹http://www.cgsecurity.org/wiki/PhotoRec

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/k2dbum$bte$1...@ger.gmane.org

Klaus Pieper

unread,
Sep 7, 2012, 2:00:02 PM9/7/12
to
>
>
> Did you mount the card as /dev/sdb...if so...mount the partition
> /dev/sdb1 YMMV
>
# mount /dev/sdb1 /mnt/
mount: special device /dev/sdb1 does not exist


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/k2db7r$p77$2...@news.m-online.net

Klaus Pieper

unread,
Sep 7, 2012, 3:10:01 PM9/7/12
to
> Is it really broken? Have you mounted the SD card on another computer or
> on a Windows system (just in case...)?
Tried the camera and three computers with linux, xp and win7. Linux
seems to recognize the device (/dev/sdb on this machine), so does xp
(there is a drive e:), but it can't be accessed.

>
> You can try with the usual recovery tools (Photorec and/or TestDisk¹) but
> the success will depend on the level of damage on the card.
>
> If nothing helps, you can test with the tools provided by the card's
> manufacturer (usually for Windows) but that's better than nothing ;-(
>
> ¹http://www.cgsecurity.org/wiki/PhotoRec

Tried photorec and the tool provided by sandisk, but both can't access
the drive.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/k2dfjb$3ik$1...@news.m-online.net

José Silva

unread,
Sep 7, 2012, 5:10:01 PM9/7/12
to
On 07-09-2012 19:49, Klaus Pieper wrote:
>> Is it really broken? Have you mounted the SD card on another computer or
>> on a Windows system (just in case...)?
> Tried the camera and three computers with linux, xp and win7. Linux
> seems to recognize the device (/dev/sdb on this machine), so does xp
> (there is a drive e:), but it can't be accessed.
>
>>
>> You can try with the usual recovery tools (Photorec and/or TestDisk¹) but
>> the success will depend on the level of damage on the card.
>>
>> If nothing helps, you can test with the tools provided by the card's
>> manufacturer (usually for Windows) but that's better than nothing ;-(
>>
>> ¹http://www.cgsecurity.org/wiki/PhotoRec
>
> Tried photorec and the tool provided by sandisk, but both can't access
> the drive.
>
>
Some time ago I had a similar problem and I remember having tried a lot
of recovering tools without success.

Then I tried a tool called scalpel and had partial success; but it was
an application for Windows called GetDataBack (I think...google for it)
that recovered 100% of my files, for my great relief. I think it was not
free but had a trial period.

I seem to remember that I also couldn't get access to the drive, which
had been NTFS.

Good luck.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/BLU0-SMTP223715782...@phx.gbl

Camaleón

unread,
Sep 8, 2012, 11:50:02 AM9/8/12
to
On Fri, 07 Sep 2012 20:49:16 +0200, Klaus Pieper wrote:

>> Is it really broken? Have you mounted the SD card on another computer
>> or on a Windows system (just in case...)?

> Tried the camera and three computers with linux, xp and win7. Linux
> seems to recognize the device (/dev/sdb on this machine), so does xp
> (there is a drive e:), but it can't be accessed.

Neither the camera recognizes the card? Wow :-?

>> You can try with the usual recovery tools (Photorec and/or TestDisk¹)
>> but the success will depend on the level of damage on the card.
>>
>> If nothing helps, you can test with the tools provided by the card's
>> manufacturer (usually for Windows) but that's better than nothing ;-(
>>
>> ¹http://www.cgsecurity.org/wiki/PhotoRec
>
> Tried photorec and the tool provided by sandisk, but both can't access
> the drive.

That sounds bad... it looks like the card could have been physically
damaged somehow or that reached its maximum number of writings and simply
died. Consider using a professional data recovery service, I mean, if the
data on the card is really important for you.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/k2forc$j4c$5...@ger.gmane.org

Martin Steigerwald

unread,
Sep 8, 2012, 12:10:02 PM9/8/12
to
As told on debian-user-german: I think this card is physically damaged.
Likely the controller is defective. But could be contacts, flash chips or
something else as well.

But to make sure I still suggest trying some different card readers with
it.

photorec is only of use if you can access the partition. Thats unlikely in
above case as sector 0 can not be read.

Had something like this with a TakeMS 4GB card. I had it recovered by a
data rescue company for 170 euro. Well I wanted that six months of photos
back.

Backup SD cards. Regularily! Even when you do not have time to sort photos
into folders properly. Just backup by rsync or so anyway and sort photos
later.

Thats what I learned from this.


More about cheap flash thats often optimized for FAT 32 on Linux:


Optimizing Linux with cheap flash drives
February 18, 2011
This article was contributed by Arnd Bergmann
https://lwn.net/Articles/428584/


https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashDeviceMapper

https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey


I hope that there will be a free filesystem for exchangable media available
on every OS sometime. There are at least two initiatives for Linux.
Lanyard filesystem and a flash company working on a flash fs prototype
mentioned by Arnd in the lanyard FS thread on linux kernel mailing list.

Another thing would be to bring such a filesystem to Windows and Linux.

I think a patent-free filesystem is called for. So Exfat doesn´t seem to be
a real alternative.

Or maybe Theodore T´so has it right that at some time an existing Linux
filesystem will be used due to the market share of Linux in mobile devices.
Still then Ext4 / BTRFS may need some adaptions to how cheap flash works.

Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/201209081807...@lichtvoll.de

Martin Steigerwald

unread,
Sep 8, 2012, 12:20:02 PM9/8/12
to
Am Samstag, 8. September 2012 schrieb Martin Steigerwald:
> More about cheap flash thats often optimized for FAT 32 on Linux:

As for cheap it that sentence.

The 32 GB Sandisk Extreme was about 28 Euro. It can theoretically do 45
MB/s.

Thats almost 1 Euro per GB.

Achievable with an Intel SSD 520 for example. It should be able to do
about 10 times of above bandwidth. (Depending on workload of course, but I
doubt that the SD card will reach anything near 45 MB/s on random I/O
anyway.)

So it seems to me that for SD card we either pay for the small form factor
or that SD card is actually quite experience.

--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/201209081812...@lichtvoll.de
0 new messages