[SCRIPT] Fix partition table for Android 4.4

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by M1cha, Dec 1, 2013.

  1. dexxa05

    dexxa05Members

    Jan 3, 2013
    163
    9
    28
    Male
    #2dexxa05,Dec 1, 2013
    Last edited by a moderator: Dec 2, 2013
    Installed on my MI2S Working Well

    MI2S 32Go

    Envoyé de mon MI 2 en utilisant Tapatalk
     
  2. nice to hear that it worked :)
     
  3. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    If I don't want to install gapps
    I don't need to do this right?
     
  4. dexxa05

    dexxa05Members

    Jan 3, 2013
    163
    9
    28
    Male
    Right

    Envoyé de mon MI 2 en utilisant Tapatalk
     
  5. GuidingL

    GuidingLMembers

    Oct 8, 2013
    30
    1
    18
    Male
    I installed it on MI2S and my screen stayed at MI logo, trying downloading the file and doing it again...
     
  6. Sounds like u didn't flash a rom after the resize. The Script disables TDB and deletes all userdata and installations.
     
  7. GuidingL

    GuidingLMembers

    Oct 8, 2013
    30
    1
    18
    Male
    sounds damn right :(
     
  8. so this is easy to fix. just boot into recovery and flash whatever u like :)
    No need to re-execute the resize-script.

    BTW why the download-counter s still at 0? devhost seems to be buggy :p
     
  9. GuidingL

    GuidingLMembers

    Oct 8, 2013
    30
    1
    18
    Male
    I went with my nandroid back up and everything's fine, gotta flash you last 4.4 rom :D
     
  10. Henry_01

    Here a snapshot from my MI2 16 GB.

    Code:
    Model: MMC 016G92 (sd/mmc)
    Disk /dev/block/mmcblk0: 15.8GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start  End    Size    File system  Name      Flags
    1      17.4kB  89.1MB  89.1MB  fat16        modem
    2      89.1MB  178MB  89.1MB  fat16        modem1
    3      178MB  179MB  524kB                sbl1
    4      179MB  179MB  524kB                sbl2
    5      179MB  180MB  1049kB              sbl3
    6      180MB  181MB  1049kB              rpm
    7      181MB  182MB  1049kB              tz
    8      182MB  183MB  524kB                DDR
    9      183MB  187MB  4194kB              aboot
    10      187MB  188MB  1049kB              misc
    11      188MB  191MB  2990kB              logo
    12      191MB  192MB  799kB                m9kefs1
    13      192MB  193MB  799kB                m9kefs2
    14      193MB  193MB  1024B                m9kefsc
    15      193MB  201MB  8501kB              bk1
    16      201MB  202MB  799kB                m9kefs3
    17      202MB  268MB  66.3MB              bk2
    18      268MB  284MB  15.7MB              boot
    19      284MB  300MB  15.7MB              boot1
    20      300MB  316MB  15.7MB              recovery
    21      316MB  327MB  11.5MB              bk3
    22      327MB  336MB  8389kB  ext4        persist
    23      336MB  872MB  537MB  ext4        system
    24      872MB  1409MB  537MB  ext4        system1
    25      1409MB  1812MB  403MB  ext4        cache
    26      1812MB  5570MB  3758MB  ext4        userdata
    27      5570MB  15.8GB  10.2GB  ext4        storage
     
  11. @Henry_01: It will work with 16gb, too because the only difference is the size of the storage partition.
     
    L.Simon likes this.
  12. Henry_01

    Probably, but just to make sure cause you asked for layout for 16 GB models. Can't hurt :)
     
  13. Yep, thx for the confirmation.
     
  14. Frederik VDP

    Aug 10, 2013
    96
    38
    28
    Male
    Can somebody write a short step for step guide for this?
    I know my phone has to have USB debugging enabled and I have to push those commands with CMD.exe. But this is the first time, so I would like somebody to hold my hand ;)
     
  15. GuidingL

    GuidingLMembers

    Oct 8, 2013
    30
    1
    18
    Male
    Frederik VDP likes this.
  16. Frederik VDP

    Aug 10, 2013
    96
    38
    28
    Male
  17. Vivek Burse

    Mar 30, 2012
    126
    40
    40
    Male
    Job
    Mumbai
    can I revert back to original partition size? if yes then please let me know how
     
  18. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    Isn't it possible to delete system 2 partition?

    Inviato dal mio Xiaomi Mi-5f (f sta per fun,non per fan)...con tapatalk 26°
     
  19. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Can I include this on My Aries Toolkit (as always I'll add credits) @M1cha
     
  20. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Yes, but if you do that your phone won't boot up because the bootloader is setted for both system partition, not one
    You may restringe it to a small one
     
  21. Yes, maybe your script can ask the user for the partition sizes(so it's possible to revert to original or make system1 1kb in size)
     
    xeGox likes this.
  22. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Good idea, if i have problem i'll ask you with Pm ;)
     
    xeGox and M1cha like this.
  23. The bootloader doesn't care about system,system1,userdata and storage :)
    I deleted them and could still boot into recovery.
     
  24. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Try Aries Toolkit I've added this Now, so you can use this without need adb and co.... This is automated, let i upload it ;)
     
    Chemicalbuz likes this.

Share Our Site