Repair 4GB SD card



I'm not sure if this is the correct group so if it isn't I'd appreciate it
if someone would suggest a more appropriate one.

As the price was very low, I recently bought a 4 GB SD card with the
name "KeyMem". I wanted to see if it worked with my iPAQ rx1950 Pocket PC
and, if it didn't, I intended to use it in my camera.

So, running Mandriva 2007 Free, I backed up my old 2 GB card then copied the
contents onto the new 4 GB card. The space used on the new card was just
under 2 GB. I then tried to copy (using Midnight Commander) a few podcasts
onto the card which would take the total space used just over 2 GB. It
failed on one of the files and asked if I wanted to keep or delete the
partial file. I chose to delete it.

From that point on, the card has been unusable. The Pocket PC acts as if I
haven't put a card in the slot. My camera refuses to even power up with the
card inserted. And while fdisk acts as if it has created a partition, when
it tries to write this partition it fails saying that the device is in use.
Here are the commands I used:

----------------------------------------------------------------------
[root ~]$ fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1023, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1023, default 1023):
Using default value 1023

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))

Command (m for help): v
3529 unallocated sectors

Command (m for help): p

Disk /dev/sdc: 3963 MB, 3963617280 bytes
122 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 7564 * 512 = 3872768 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 1023 3868955 c W95 FAT32 (LBA)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or
resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.

Error closing file
[root ~]$
----------------------------------------------------------------------

While I've used a lot of flash cards of various kinds, I don't know much
about the technology behind them. For example, I don't know if the generic
USB2.0 card reader/writer I'm using can handle cards of 4 GB in size, or
whether only the newer ones can, or if they all can (I assumed the latter).
Also, it's not obvious whether it's an SD card or an SD-HC card, though the
label on it says "SD card", and I don't know if it makes a difference which
kind it is.

I hope I've given enough information to allow someone to answer the
question: Is this card repairable? And if so, how?

--
Garry Knight
garryknight@xxxxxxx

.



Relevant Pages

  • Re: Problem on partition SD card
    ... I am curious what do you use to read SD card? ... You will not be able to write the partition table. ... Command: d ... ppdev1: claim the port first ...
    (Fedora)
  • Re: Apple //e Dated 1984
    ... To partition and format a new card I just use ... "dd" to clone an existing card, then I make my changes with Ciderpress ... (I keep Autostart turned off for all my drives.) ...
    (comp.sys.apple2)
  • Re: Power Management with rootfs on SDMMC.
    ... plus first partition (corrupts first 1kB of the card: ...
    (Linux-Kernel)
  • Re: EWF-RAM protected partition on Compact Flash becomes unbootabl
    ... Can the corruption of the directories on D: ... Write Cache property for CF card? ... My log files have their own ... If data is being writen to the second partition when the system ...
    (microsoft.public.windowsxp.embedded)
  • Re: EWF-RAM protected partition on Compact Flash becomes unbootabl
    ... I haven't experience with SimpleTech, since I use DFI AC46 Industrial Grade ... If a shutdown was happening during a write operation are all the ... card I noticed a dramatic increase in the number of FBA's the card would ... If data is being writen to the second partition when the system ...
    (microsoft.public.windowsxp.embedded)