Merge Partitions Without Losing Custom Recovery

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by zipalign, Sep 8, 2015.

  1. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    hi everyone.
    I actually have an unmerged partitions [standard] layout on my Mi2s.
    I also have a custom recovery installed [TWRP].

    I'd like to merge partitions without losing TWRP.
    is it possibile?
    can anyone explain on how to proceed?

    thanks a lot.
     
  2. Addamas

    AddamasMembers

    Jun 2, 2015
    281
    82
    50
    Male
    It's impossible to use existing TWRP.
    All of the data will be erased after you merge partitions. So make a backup of all files you need even these from /data

    After you merge you have to install TWRP for MERGED partitions layout using fastboot.

    Can be found here: http://xiaomi.eu/community/threads/...r-mi2-s-supports-tdb.25982/page-3#post-249455
    Remember about putting ui.zip into TWRP/theme (have to create subfolder) from:
    http://xiaomi.eu/community/threads/...r-mi2-s-supports-tdb.25982/page-3#post-249560
     
  3. Haubitze88

    Haubitze88Members

    Apr 4, 2013
    86
    19
    18
    Male
  4. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    thanks a lot for your replies!
    this community is way more user friendly than official en.miui.com forum support.
    I opened there a thread 2 days ago [same topic] and no one replied.
    I will decide which way try to merge partitions and let you know the result this weekend.

    thanks again!
     
  5. Alberto_

    Alberto_Members

    Jul 24, 2013
    37
    2
    18
    Male
    hello, you have joined the memories and then install the TWRP, work ?, backups? can you do me a step by step guide? Thank you
     
  6. Suspiria

    SuspiriaMembers

    Sep 26, 2013
    95
    17
    18
    Male
    The "thanks" community, look at all posts there is only thanks in 100000 of posts.
    Most of the time when a new rom came out, there is not even a single post telling if it is working or not, just "thanks".
    And the worst is the multiple "are you excited about the new blablabla" that change barely nothing like the new miui7.
    Useless forum except for downloading.

    Interested by your result as I'm still in unmerged partition, I'd like to have a custom recovery after doing it.
     
  7. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    trying to do things done.
    but downloading TRWP themes give a 404 error everytime.
    does anyone have a mirror to share the theme?
     
  8. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    #8zipalign,Sep 18, 2015
    Last edited: Dec 14, 2015
    ok, here's what I have done, if it can help someone.
    I'll write a short step-by-step procedure, which is the exact one I have made right now merging DATA partitions and installing TWRP with CM12.1 from m1cha.

    - downloaded MIUI 5.9.2 fastboot package from official miui.com site
    - once downloaded, I extracted it within my PC running windows 10
    - flashed it via MiFlash, selecting "flash_all.bat" from advanced properties
    - when flashing finished, phone rebooted [in about 10 minutes] and I have checked into settings that my device has now merged partitions layout
    - powered off the phone and started again in fastboot mode
    - downloaded m1cha's script "aries_core_unified_single.zip" from XDA, and extracted it
    - navigated into "aries_core_unified_single\images" folder and grabbed "recovery.img" file, then moved into my adb-tools folder
    - flashed it via fastboot with these commands:
    fastboot oem unlock
    fastboot flash recovery recovery.img

    - removed battery and made a brutal shutdown
    - started TWRP with classic combo [power + volume up]
    - wiped everything and moved CM12.1 ROM file to my phone
    - flashed it via TWRP and started phone
    - job done
     
    DaRoni and bialabs like this.
  9. Alberto_

    Alberto_Members

    Jul 24, 2013
    37
    2
    18
    Male
    mirror please for MIUI 5.9.2 fastboot package. is very sloW
    tanks
     
  10. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    uploading on a mirror host, but it's very slow.

    I have noticed that xposed doesn't work. I tried to flash the .zip package but it gives me a bootloop.
    did anyone succeed?
     
  11. SkiFire13

    SkiFire13Members

    Nov 3, 2014
    526
    102
    80
    zipalign likes this.
  12. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    successfully done by flashing xposed-v74-sdk22-arm.zip from the official thread.
     
  13. Alberto_

    Alberto_Members

    Jul 24, 2013
    37
    2
    18
    Male
  14. bobanbg

    bobanbgMembers

    Jan 4, 2014
    20
    7
    13
    Male
    @zipalign which CM12.1 rom did you flash? 7/30/2015?
     
  15. zipalign

    zipalignMembers

    Sep 9, 2012
    211
    218
    67
    yes.
     
    bobanbg likes this.
  16. Suspiria

    SuspiriaMembers

    Sep 26, 2013
    95
    17
    18
    Male
    Is it possible to install twrp with an update.zip at root after flasing the fastboot package instead of adb ?
     
  17. SkiFire13

    SkiFire13Members

    Nov 3, 2014
    526
    102
    80
    No, you need fastboot or flashify
     
    Suspiria likes this.
  18. Fransis

    FransisMembers

    Nov 13, 2013
    11
    2
    13
    Male
    Hi ZipAlign , did you successfully flashed xposed framework in Mi2S Miui 7 Global Dev Rom? Which version 5.10.15 or higher?

    Thanks,

    Fransis
     
  19. nightmike

    nightmikeMembers

    Jun 14, 2013
    165
    67
    40
    Male
    He's using CM12.1 by m1cha, check the previous posts. ;)
     
    zipalign likes this.
  20. Fransis

    FransisMembers

    Nov 13, 2013
    11
    2
    13
    Male
    Thanks man! i should have read this before ;)
     
    nightmike likes this.
  21. bialabs

    bialabsMembers

    Nov 19, 2013
    96
    33
    30
    with this procedure i will have only data merged partition, right? how to have also system merged partitions?
     
  22. MikelFuchs

    MikelFuchsMembers

    Aug 19, 2013
    199
    35
    52
    Male
    yes, for merged system partitions you need to use MIUI 5.11.20 or later
    but in that case CM12.1 ROM will not start any longer
     
    bialabs likes this.

Share Our Site