[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recover broken SDHC card



Am Freitag, 7. September 2012 schrieb Klaus Pieper:
> 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

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


Reply to: