Gary Davis' Blog

DotNET/PayPal Development and other Techie Stuff
posts - 45, comments - 123, trackbacks - 0

How to recover space from your Android-imaged SDCard

When using a (Micro)SDCard created in Windows for an Android boot, partitions are written to it in a Linux format that Windows does not completely understand.

I did this when rooting my NookColor with CyanogenMod 7. My 8GB card was imaged using the Win32DiskImager tool that takes an IMG file and writes it to the card, laying down various partitions, including one standard Windows partition of about 130MB. This basically hides the remainder of the card from Windows but boots up my NookColor into Andriod just fine.

Well, eventually, you need to recover the card to use in Windows again. You can't use the Windows format command since that will only empty out the small partition. Normally, partitions can be deleted using the Computer Management program (under Disk Management). You select the SDCard volume and right click the partition and delete it.This did not completely work - some partitions did not have the delete option.

To actually delete the partitions, drop down to the command line (run as administrator, just in case). Run diskpart.When the prompt displays, run these commands.

DISKPART> list disk      [lists all the disks on the system]

DISKPART> select disk n      [carefully select the disk that is the SDCard for the following command]

DISKPART> list partition      [lists all the partitions of the selected disk]

DISKPART> list disk      [lists all the disks on the system]

DISKPART> select partition n      [select a partition to delete]

DISKPART> delete partition      [delete the selected partition]

[At this point repeat the list, select and delete commands for each partition

DISKPART> exit      [exits diskpart] 

At this point, I used Disk Manager to create a new partition, assign a drive letter and format the partition to FAT32. This can also be done with DISKPART create partition and assign commands.

Diskpart commands

 References:

Print | posted on Friday, May 4, 2012 10:18 AM |

Feedback

Gravatar

# re: How to recover space from your Android-imaged SDCard

I've been reading about this SD formatting problem over on Raspberrypi.org and there are some of us that none of the fixes (that I have tried) work. I just tried yours thinking aha we're getting down into dos and that's gonna get it but sadly it doesn't do it.
In your instructions, when I list partitions, only 1 is shown. When I delete it and list partitions there are no more to delete. I'm beginning to believe I am stuck with a 1947 MB SD.
Thanks,
Charlie
1/2/2014 1:44 AM | Charlie
Gravatar

# re: How to recover space from your Android-imaged SDCard

After going through these steps then going back into SDFormatter it worked for me. Did you try that?
1/2/2014 11:02 AM | Kevin
Gravatar

# re: How to recover space from your Android-imaged SDCard

The above step works fine for me. Great. Good and Useful Post. My special Thanks.
8/20/2016 11:46 AM | Ponnuchamy

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 7 and 6 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET