Format Broken emmc

rmkilc

Senior Member
Nov 12, 2011
1,154
723
0
Vancouver, WA
www.rmkilc.com
I tried formatting my emmc to ntfs (I know, bad idea!), and now my emmc won't mount in Android, or through a USB cable. If I try formatting /emmc in recovery, I get "error mounting /emmc". I have tried "fastboot erase emmc" in fastboot and it gave an error also. How do I format the emmc partition so it is back to fat32 or whatever is normal?
 
  • Like
Reactions: merrygocow
S

Soldier-2Point0

Guest
I tried that. It erases the SD card, not the internal SD card if I'm not mistaken.

Sent from my Atrix using Tapatalk 2
Search for partition manager programs for windows. I downloaded one from cnet. I think it is called mini partition or something like that. It will let you see internal memory partitions and edit them. Be very careful not to format partitions like pds, etc. Good Luck!

Sent from my Nexus 7
 

raymasky

Senior Member
Sep 13, 2009
173
9
0
Mumbai
Can you please help me with the steps you followed ? I seem to have a similar problem on my Atrix and I cannot read or mount emmc now :(


Starting recovery on Wed Aug 1 05:48:04 2012
Loading volume table...
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /boot emmc /dev/block/mmcblk0p11 (null)
2 /cache ext4 /dev/block/mmcblk0p15 NULL
3 /data ext4 /dev/block/mmcblk0p16 NULL
4 /sdc vfat /dev/block/mmcblk1p1 (null)
5 /emmc vfat /dev/block/mmcblk0p18 (null)
6 /system ext4 /dev/block/mmcblk0p12 NULL
7 /recovery emmc /dev/block/mmcblk0p10 (null)
8 /osh ext3 /dev/block/mmcblk0p13 (null)
9 /preinstall ext3 /dev/block/mmcblk0p17 (null)

I:Internal path defined: '/emmc'
I:External path defined: '/sdc'
Pixel format: 540x960 @ 16bpp
Pixel format: BGR_565
framebuffer: fd 4 (540 x 960)
I:=> Installing busybox into /sbin
ln: /sbin/mke2fs: File exists
ln: /sbin/sh: File exists
ln: /sbin/tune2fs: File exists
I:=> Linking mtab
I:=> Getting locations
W:Device does not support /proc/emmc
* Verifying filesystems...
I:=> Let's update filesystem types via verifyFst aka blkid.
I:'data' was 'ext4' now set to 'ext3'
I:'cache' was 'ext4' now set to 'ext3'
I:=> Created /sdc folder.
I:=> Created /osh folder.
* Verifying partition sizes...
E:Unable to mount '/emmc' (tw_mount)
E:Unable to mount '/emmc' (tw_mount)
du: /emmc/.android_secure: No such file or directory
E:Unable to mount '/osh' (tw_mount)
+----------+-----------------------------+--------+----------+----------+---+---+
| Mount | Block Device | fst | Size(KB) | Used(KB) | M | B |
+----------+-----------------------------+--------+----------+----------+---+---+
| | | | 0 | 0 | 0 | u |
| system | /dev/block/mmcblk0p12 | ext4 | 327680 | 267096 | 1 | f |
| data | /dev/block/mmcblk0p16 | ext3 | 2097152 | 1204136 | 1 | f |
| boot | /dev/block/mmcblk0p11 | emmc | 8192 | 8192 | 0 | i |
| recovery | /dev/block/mmcblk0p10 | emmc | 8192 | 8192 | 0 | i |
| cache | /dev/block/mmcblk0p15 | ext3 | 655360 | 80816 | 1 | f |
| sdc | /dev/block/mmcblk1p1 | vfat | 15628288 | 11597696 | 1 | n |
| emmc | /dev/block/mmcblk0p18 | vfat | 11233792 | 0 | 1 | n |
| andsec | /emmc | vfat | 0 | 0 | 0 | f |
| sd-ext | /dev/block/mmcblk1p2 | | 0 | 0 | 1 | f |
| osh | /dev/block/mmcblk0p13 | ext3 | 786432 | 0 | 1 | f |
| | | | 0 | 0 | 0 | n |
| | | | 0 | 0 | 0 | n |
+----------+-----------------------------+--------+----------+----------+---+---+


Sent from my MB860 using Tapatalk 2
 
  • Like
Reactions: cheapes03

rmkilc

Senior Member
Nov 12, 2011
1,154
723
0
Vancouver, WA
www.rmkilc.com
I can't remember all the exact steps, or the order I did them in, as it took a lot of trial and error, but the general idea of what I did was this: In an ADB shell, I ran mke2fs /dev/block/mmcblk0p18. I used parted to delete the partition on mmcblk0p18. I used recovery to then format /emmc. This fixed it good as new! Now, before doing any of this, you will want to use parted to verify mmcblk0p18 is indeed the emmc block, otherwise you will be messing up the wrong thing and brick your phone!
 
  • Like
Reactions: merrygocow

raymasky

Senior Member
Sep 13, 2009
173
9
0
Mumbai
Tried the command you posted. Worked fine. Now I can access the emmc in recovery ... but it still doesnt show up in system and in windows it says no disk installed.

Sent from my MB860 using Tapatalk 2
 

rmkilc

Senior Member
Nov 12, 2011
1,154
723
0
Vancouver, WA
www.rmkilc.com
If recovery gives an error while formatting /emmc, then do this: Plug your phone into a computer, have your phone in recovery, and get an adb shell going. Then type
Code:
parted /dev/block/mmcblk0p18
print
Read what it says. If it shows a single partition, then run
Code:
rm 1
This deletes that partition. Now in recovery you should be able to format /emmc.
 

raymasky

Senior Member
Sep 13, 2009
173
9
0
Mumbai
Is it possible to run these commands via terminal ?

Edit: just tried. Terminal emulator doesnt recognised parted as a command

Sent from my MB860 using Tapatalk 2
 
Last edited:

raymasky

Senior Member
Sep 13, 2009
173
9
0
Mumbai
So I tried the commands. Everything went smoothly but I still can't seem to mount /emmc from recovery ..nor can I wipe it. Any other suggestions ? I even flashed a fruitcake SBF via RSDlite but it didn't help. Any way of knowing if my /emmc memory chip is fried ?

Sent from my MB860 using Tapatalk 2
 

rmkilc

Senior Member
Nov 12, 2011
1,154
723
0
Vancouver, WA
www.rmkilc.com
So I tried the commands. Everything went smoothly but I still can't seem to mount /emmc from recovery ..nor can I wipe it. Any other suggestions ? I even flashed a fruitcake SBF via RSDlite but it didn't help. Any way of knowing if my /emmc memory chip is fried ?

Sent from my MB860 using Tapatalk 2
Can you go in recovery and run this via adb and paste the results.

Code:
parted /dev/block/mmcblk0p18
print