New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
FroyoShark
Old
#1  
FroyoShark's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 186
Join Date: Sep 2011
Location: South Dakota

 
DONATE TO ME
Question [Q] Incorrectly partitioned SD card, need fix.

Hi, I accidentally wiped my SD card in TWRP, and I held the power button in an attempt to stop it. That of course didn't work, and my SD card was unusable. So I tried partitioning it with TWRP (Advanced > Partition SD Card) and that didn't do anything. I plugged it into my PC running Ubuntu 11.04 and formatted it to Fat32, and I'm now able to copy files to it and such with my PC, but I can't flash anything from it, and I have no ROM currently installed on it. I need help getting the SD card working again.
Phones:
Evo V 4G (Evo 3D) | ROM: Aliendroid CM10.1 | Kernel: Hyperrunner's (1.5GHz OC)
Motorola Triumph (RIP)
LG Optimus V (Sold)

Tablets:
Kindle Fire HD 8.9 | ROM: CM10.1 | Kernel: Hashcode's
Kindle Fire 1 (Sold)
The Following User Says Thank You to FroyoShark For This Useful Post: [ Click to Expand ]
 
lmntone
Old
(Last edited by lmntone; 3rd January 2012 at 03:40 AM.)
#2  
Member
Thanks Meter 24
Posts: 84
Join Date: Oct 2011
Do you still have TWRP recovery installed? If you do, boot to it and post the result of the following...

Code:
adb shell
parted /dev/block/mmcblk0
unit
   ^This will ask for another input. Type "B" and hit Enter
print
This will show your current partition layout.
The Following 2 Users Say Thank You to lmntone For This Useful Post: [ Click to Expand ]
 
FroyoShark
Old
(Last edited by FroyoShark; 3rd January 2012 at 03:37 AM.) Reason: forgot the code tag
#3  
FroyoShark's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 186
Join Date: Sep 2011
Location: South Dakota

 
DONATE TO ME
Code:
print
Model: MMC M8G2FA (sd/mmc)
Disk /dev/block/mmcblk0: 7734296576B
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start        End          Size         File system  Name        Flags
 1      131072B      262143B      131072B                   xloader
 2      262144B      524287B      262144B                   bootloader
 3      524288B      11010047B    10485760B                 dkernel
 4      11010048B    212336639B   201326592B   ext4         dfs
 5      212336640B   229113855B   16777216B                 recovery
 6      229113856B   296222719B   67108864B    ext4         backup
 7      296222720B   306708479B   10485760B                 boot
 8      306708480B   311951359B   5242880B     ext4         splash
 9      311951360B   848822271B   536870912B   ext4         system
10      848822272B   2041053183B  1192230912B  ext4         userdata
11      2041053184B  2309488639B  268435456B   ext4         cache
12      2309488640B  7689732095B  5380243456B               media
Phones:
Evo V 4G (Evo 3D) | ROM: Aliendroid CM10.1 | Kernel: Hyperrunner's (1.5GHz OC)
Motorola Triumph (RIP)
LG Optimus V (Sold)

Tablets:
Kindle Fire HD 8.9 | ROM: CM10.1 | Kernel: Hashcode's
Kindle Fire 1 (Sold)
The Following 2 Users Say Thank You to FroyoShark For This Useful Post: [ Click to Expand ]
 
lmntone
Old
(Last edited by lmntone; 3rd January 2012 at 04:02 AM.)
#4  
Member
Thanks Meter 24
Posts: 84
Join Date: Oct 2011
It's showing that the "media" partition (sdcard) isn't formatted to fat32.

You would have to reformat it from TWRP recovery. The following should work.

Code:
adb shell
parted /dev/block/mmcblk0
mkfs 12 fat32
    ^This will format partition 12 to the fat32 filesystem.
The Following 3 Users Say Thank You to lmntone For This Useful Post: [ Click to Expand ]
 
FroyoShark
Old
#5  
FroyoShark's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 186
Join Date: Sep 2011
Location: South Dakota

 
DONATE TO ME
Quote:
Originally Posted by lmntone View Post
It's showing that the "media" partition (sdcard) isn't formatted to fat32.

You would have to reformat it from TWRP recovery. The following should work.

Code:
adb shell
parted /dev/block/mmcblk0
mkfs 12 fat32
    ^This will format partition 12 to the fat32 filesystem.
Thank you so much, that fixed it.
Phones:
Evo V 4G (Evo 3D) | ROM: Aliendroid CM10.1 | Kernel: Hyperrunner's (1.5GHz OC)
Motorola Triumph (RIP)
LG Optimus V (Sold)

Tablets:
Kindle Fire HD 8.9 | ROM: CM10.1 | Kernel: Hashcode's
Kindle Fire 1 (Sold)
The Following User Says Thank You to FroyoShark For This Useful Post: [ Click to Expand ]
 
lmntone
Old
#6  
Member
Thanks Meter 24
Posts: 84
Join Date: Oct 2011
Quote:
Originally Posted by FroyoShark View Post
Thank you so much, that fixed it.
Glad to hear your KF is back to normal.
The Following User Says Thank You to lmntone For This Useful Post: [ Click to Expand ]
 
thedeveloper1
Old
#7  
Junior Member
Thanks Meter 10
Posts: 29
Join Date: Feb 2012
Location: Indianapolis, IN
Default Missing partition 11 and flag msftres on partition 12

Hello, I have rooted my kindle fire and i tried to partition it with FireParted and it unsuccessfully parted. Here are the partition details:

Model: MMC M8G2FA (sd/mmc)
Disk /dev/block/mmcblk0: 7734296576B
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 131072B 262143B 131072B xloader
2 262144B 524287B 262144B bootloader
3 524288B 11010047B 10485760B dkernel
4 11010048B 212336639B 201326592B ext4 dfs
5 212336640B 229113855B 16777216B recovery
6 229113856B 296222719B 67108864B ext4 backup
7 296222720B 306708479B 10485760B boot
8 306708480B 311951359B 5242880B ext4 splash
9 311951360B 848822271B 536870912B ext4 system
10 848822272B 2041000447B 1192178176B ext4
12 2309488640B 4309000191B 1999511552B fat32 media msftres


Please help thankyou
 
b63
Old
#8  
Senior Member
Thanks Meter 436
Posts: 1,599
Join Date: Dec 2011
the simpliest way should be to use fff version 1.1 or higher
boot to fastboot mode and issue "fastboot oem format"
http://forum.xda-developers.com/show....php?t=1369405
this should restore the factory partitioning
 
thedeveloper1
Old
#9  
Junior Member
Thanks Meter 10
Posts: 29
Join Date: Feb 2012
Location: Indianapolis, IN
Default RE:

It says

. . . FAILED (remote failure)
finished. total time: 0.004s
 
b63
Old
#10  
Senior Member
Thanks Meter 436
Posts: 1,599
Join Date: Dec 2011
is your fff version 1.1 or newer ?
twrp installs version 1.0
would suggest to install (linked in) version 1.2 and retry

Tags
partition, rom, sd card, twrp, ubuntu