• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

restore SD card capacity

P

Paul

Flightless Bird
Firewalker wrote:
> Sorry for the late response. Thanks for the continued support. This is
> getting very complicated to understand now. When I ran dd0 --list, it
> returned:
>
> \\?\Device\Harddisk1\Partition0
> link to \\?\Device\Harddisk1\DR20
> Removable media other than floppy. Block size = 512
> size is 1007681536 bytes
> \\?\Device\Harddisk1\Partition1
> link to \\?\Device\Harddisk1\DP(1)0-0+15
> Removable media other than floppy. Block size = 512
> size is 1007681536 bytes
>
> I'll do some research on the HPA to see if I could find a potential solution
> there.
>
> -Toby


That means as far as "dd" is concerned (a program that accesses the device
at a raw level), it is finding the size is around 1GB. At the moment, I
don't see much reason to go any further with "dd", because the problem
doesn't appear to be a size coming from the file system itself. The size
must be coming from the hardware. You'd have to contact the manufacturer,
in the hope they have some piece of software to fix it (or perhaps they'll
offer a warranty return as an option).

The design of the SD chip is similar to a USB flash, in that there is a
flash chip and a controller. Which presumably leaves room for the
same capacity changing options that USB sticks have. The protocol would
be different and I haven't a clue what options it might support. On
ATA you have things like SETMAX to mess up storage devices. I don't know
if SD has an equivalent capability or not.

http://en.wikipedia.org/wiki/File:Sdcard_panasonic64mb_inside_front.jpg

Paul
 
W

windhair

Flightless Bird

> Paul wrote:
>
>
> \\?\Device\Harddisk3\Partition0 <----- represents the

whole stick
> link to \\?\Device\Harddisk3\DR15
> Removable media other than floppy. Block size = 512
> size is 8019509248 bytes
> \\?\Device\Harddisk3\Partition1 <----- my FAT32 partition
> link to \\?\Device\Harddisk3\DP(1)0-0+10
> Removable media other than floppy. Block size = 512
> size is 8013233152 bytes
>
> If I run PTEDIT32 by double clicking it, it shows me the contents

of the MBR.
>


Hello, I got a problem with my 1G Sandisk microSD, I can neither write
to the card nor format the card, but I can use the filesin the card.
When i try to format it from windows, it says, format can no t be
finished, not like the write protected thing. And when using HP
formation tool, it can not recognize the card even.

After some study of this thread I try to use dd and PTEDIT32 to fix it
, but not that successful. Firstly after i input "dd --list"
what I got is:

rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
Win32 Available Volume Information
\\.\Volume{778cf001-92ea-11dc-97a0-806d6172696f}\
link to \\?\Device\HarddiskVolume2
fixed media
Mounted on \\.\c:

\\.\Volume{778cf002-92ea-11dc-97a0-806d6172696f}\
link to \\?\Device\HarddiskVolume3
fixed media
Mounted on \\.\e:

\\.\Volume{778cf003-92ea-11dc-97a0-806d6172696f}\
link to \\?\Device\HarddiskVolume4
fixed media
Mounted on \\.\d:

\\.\Volume{778cf000-92ea-11dc-97a0-806d6172696f}\
link to \\?\Device\CdRom0
CD-ROM
Mounted on \\.\f:

\\.\Volume{c6d4c893-a4e6-11dd-adae-0013e8522d39}\
link to \\?\Device\CdRom1
CD-ROM
Mounted on \\.\g:

\\.\Volume{31f9c54f-e95e-11de-af8a-0013e8522d39}\
link to \\?\Device\Harddisk1\SP0
removeable media
Mounted on \\.\h:


NT Block Device Objects
\\?\Device\CdRom0
size is 2147483647 bytes
\\?\Device\CdRom1
Removable media other than floppy. Block size = 2048
size is 987738112 bytes
\\?\Device\Harddisk0\Partition0
link to \\?\Device\Harddisk0\DR0
Fixed hard disk media. Block size = 512
size is 160041885696 bytes
\\?\Device\Harddisk0\Partition1
link to \\?\Device\HarddiskVolume1
Fixed hard disk media. Block size = 512
size is 1572864000 bytes
\\?\Device\Harddisk0\Partition2
link to \\?\Device\HarddiskVolume2
\\?\Device\Harddisk0\Partition3
link to \\?\Device\HarddiskVolume3
\\?\Device\Harddisk0\Partition4
link to \\?\Device\HarddiskVolume4

Virtual input devices
/dev/zero (null data)
/dev/random (pseudo-random data)
- (standard input)

Virtual output devices
- (standard output)


the removable media exsits in the first part concering volume things,
but not on the second NT Block Device Objects part. So I can not get
which on is the real object name of this removable media h. Then I
try to use the volume link directly
\\?\Device\Harddisk1\SP0
to point the MicroSD card. and use the command
[code:1:fda6f2ad16]dd if=/dev/zero of=\\?\Device\Harddisk1\SP0 bs=512
count=10000[/code:1:fda6f2ad16] to erase part of the card, but after
it finished with
[code:1:fda6f2ad16]
1000+0 records in
1000+0 records out
[/code:1:fda6f2ad16]
I find no change has been made to the micorSD, at least I can still
use the files in it, and can not format the card still.

Now, how can I do to fix this card now, please to so kind to give a
help, thanks.
 

bamalynn

Baby Bird
Ok, I'm a newbie here, but after a little research, I corrected my SD disk after the same thing happened to me. My card got shrunk to a whopping 34MB from 4Gb! Anyway, after doing a search on my computer for the Disk Management program, I saw my card had three partitions with most of the free space as "unallocated". Nice. From there, I opened up a DOS prompt and was able to "clean" my disk and get rid of all three partitions that somehow managed to be added to my card. In the Disk Management program it listed all disks, both hard drives and removable for my computer. Make sure you select the CORRECT disk! Here are the steps I took to remove the partitions. Hope this helps! :

  1. Open a command prompt and type diskpart.
  2. At the DISKPART prompt, type list disk. Make note of the disk number you want fix.
  3. At the DISKPART prompt, type select disk <disknumber> ex. select disk 1
  4. At the DISKPART prompt, typeclean disk <disknumber> ex. clean disk 1
 
Top