yashsingh1/xdaforums huggingface dataset:
[Mi 3 General] karthikb89:
This changed method is still for increasing partition to 1.2 GB right?
[Mi 3 General] zard:
Thanks for the suggestion. Here's the thread:

http://xdaforums.com/xiaomi-mi-3/general/howto-how-to-unbreak-xiaomi-mi-3-to-t3027869
[Mi 3 General] i snort flour:
No the original zip file did that the changes I posted was a response to somebody who wanted a zip file to revert back to stock partitions in case they wanted to go back to miui or just back to stock partitions in general
[Mi 3 General] jmblazquezh:
Good afternoon.

I can confirm that the .zip file works in Mi4 with Rom MIUI V6 from miui.es.

Greetings from Spain.
[Mi 3 General] heisenberg12:
i am unable to flash back the original partition.also i am unable to get into parted through adb ..please help me
[Mi 3 General] i snort flour:
I don't know that should have worked you probably have to consult with op or audahadi
[Mi 3 General] heisenberg12:
could you create one yourself and send it to me?
[Mi 3 General] i snort flour:
I tried it even though in theory it should work it is giving me an error as well I'll see if I can figure it out and if I do I'll post it for you
[Mi 3 General] heisenberg12:
thank you.also i am unable to go into parted/deb/block/mmcblk0

it shows parted not found
[Mi 3 General] i snort flour:
I don't know how to use abd i got a good idea but never have. I also can flash the original zip so it's not like it's not reversible I'm sure audahadi can make it work beings he made the original work

---------- Post added at 05:54 AM ---------- Previous post was at 05:51 AM ----------

It's got to be something with how it's zipped because I just tried unzipping the original and rezipped it with a different name and tried it and it failed

---------- Post added at 06:44 AM ---------- Previous post was at 05:54 AM ----------

I figured it out we were repackaging it wrong instead of rezipping the directory you unzipped it to you need to go into your directory and zip the meta file but just to make it easy for you I'll double check my file and make sure I got my numbers correct and upload here for you I'll have it uploaded in 5 mins
[Mi 3 General] i snort flour:
Deleted
[Mi 3 General] heisenberg12:
thanks man that was a quick response.i'll try it and update you
[Mi 3 General] audahadi:
No need for permission..just make sure it usable and tested before share.
[Mi 3 General] i snort flour:
I have personally tested and confirm that it works. Thanks for your reply and allowing it to be shared for people who don't understand adb
[Mi 3 General] heisenberg12:
already did that.unfortunately cwm backup didnt work but i do have titanium backup..and it worked thank you :):)
[Mi 3 General] i snort flour:
Yeah I had that problem a lot using cwm that's why I switched to twrp2 beings I don't use system 2 or tdb. Like I said earlier though don't thank me thank audahadi I didn't do anything worth thanking
[Mi 3 General] sivabommakanti:
Will I be successful in following the below steps?

1. Reparation system 1 using zip provided by auhudadi using cwm

2. Flash twrp zip using cwm

3. Flash a lollipop ROM.???

Pls share feedback
[Mi 3 General] i snort flour:
If the new rom is in the new zip format (system.new.dat) it will not matter if you repartition your system to a large size or not as it will think it's almost full after the flash for some unknown reason. I have a theory on a workaround however I have not yet tested it myself so maybe it will work maybe it won't.

1st: You would have to flash just the rom, reboot and set up your phone.

2nd: Reboot phone into recovery and create a backup (I recommend using twrp2 as cwm has been known not to keep or create reliable backups)

3rd: Wipe your system, cache, data and dalvik (very important you scrub your phone clean just make sure you don't delete your sdcard storage or you will not only lose your all your stuff and backups but you will then have to either push a rom by adb or flash through fastboot and that sucks)

4th: Install repartition zip audahadi provided

5th: Reboot recovery

6th: Restore the backup created in step 2

7th: Install gapps, supersu and any other zip files you desire to flash if you have any

8th: Download diskinfo from play store and check to see that your system repartition was successful and that you have plenty of space left to use in your system partition. If it's claiming you have used almost or all of your 1.2gb this did not work and you can restore your partition back to stock if you choose to from a zip I made on the previous page.

9th: Come back here and tell us if it worked and thank audahadi for eliminating the pains and frustrations of having to use adb for us.

Edit: I personally can confirm this method works with the new zip format
[Mi 3 General] KeyLimePies:
Yes, I can personally confirm this method works too. I'm using Ivan's new lollipop ROM. Before this even though there was 1.2gb of space for system 1 almost all of it was showing as used on diskinfo.
[Mi 3 General] r3v3nant33:
Tried above method in ivan's lollipop, 460mb used 700free. Works really nice and simple. thks
[Mi 3 General] Pallmalli:
Is the 5.35 KB size of the zip right?
[Mi 3 General] i snort flour:
I believe so there are only 2 zips listed. The one posted from audahadi is the zip to sacrifice just about all of system 2 for system 1 making it 1.2gb. The zip I posted which is a modified version of audahadi's zip is for if you want to go back to your original partitions making system 1 640mb and system 2 639mb again.
[Mi 3 General] Pallmalli:
Not working for me. Coming from Ivan's latest with Gapps. First installed TWRP through CWM. Than flashed Audahadi's zip but the partition size was still unchanged. Decided to follow your steps above but got an error in TWRP In red letters E: Can't install........... It is impossible to flash any zip file in my phone. Made a screenshot in TWRP but can't find it in my phone. :(:confused::(
[Mi 3 General] sivabommakanti:
Zip works only on cwm. flash cwm thru cwm & try flashing the zip
[Mi 3 General] Pallmalli:
Got it. Thank you.
[Mi 3 General] i snort flour:
I flashed both the zips using twrp2 by juliusss from the miui forums no problem maybe there's an issue with kundacools twrp2 I'm not sure but it does work with twrp2

---------- Post added at 10:35 AM ---------- Previous post was at 10:07 AM ----------

I think I know what happened here. You flashed the 1.2gb partition zip after you flashed Ivan's rom then tried flashing my file but by time you tried flashing my file your system 1 partition was reading full even though it really wasn't so the flash is erroring out thinking it didn't have the room so you don't brick you phone. You would have to wipe your system1 before you could flash my zip. But before doing that why don't you just try doing a backup of your rom, wiping your data, system, cache and dalvik cache. Then reboot your phone to make sure it wiped properly and that you don't have an os anymore (meaning it won't get past the mi logo), reboot back into recovery and restore your backup this should fix your false partition reading(either cwm or twrp should work fine however even though I never had a problem with cwm r7 final doing a proper wipe others have posted issues with cwm r8 and r11 doing so which is why many people have switched to twrp2 along with it has better features like naming backups and an easier to use graphic interface)
[Mi 3 General] Pallmalli:
Need Help

After trying few times to flash Audahadi's zip I decided to revert back to stock partition and here is where the hell broke loose.

Get the E: error can not delete nod. Format of system aborted.

Decided to flash miui through fastboot, it stops in the middle of it saying Unidentidied error target size is to large.

Can't install anything through cwm and also fastboot is not flashing.

Any help would be deeply apreciated:(

When trying to reboot the phone is got stuck at mi logo.

I am sure after trying to flash the phone through fastboot that the culprit is one of the zip's in this thread. If there is anyone who could help me with repartitionin the 2 systems through ADB I might be able to revive my phone.
[Mi 3 General] i snort flour:
Sounds like it error on format to ext4 just go do another manual wipe in recovery and it might solve your problem. I've used both zips multiple times and have never had a single issue note these are meant for the mi3w cancro not the Pisces or mi4. Or flash audahadis zip again and then try revert
[Mi 3 General] Pallmalli:
Done all of that. Manual wipes in recovery formating both systems. Still couldn't flash or restore anything. And couldn't flash with MiFlash. Even formated the sd card. So the only thing that might help is adb if anything other than service centre could help.
[Mi 3 General] i snort flour:
I wouldn't have formatted the sd card but good luck using and to push files I don't know how to use abd so I wish you the best of luck. There has been a thread opened for this problem from a person in your similar circumstances. Post number 73
[Mi 3 General] Pallmalli:
Could you please explain what I have to do through ADB to resore to stock partitionin so that I can flash with MiFlash? It is all i am left for a choice atm.

Just checked with adb following your steps and all looks the same as your first partition table expect that nr 26 has no ext4 next to it. If you can guide me how to cmd to put the ext4 maybe its all I should do to solve the problem.

Edit: after i have restored system1 as ext2 and quit I get the following message on adb

Information: you may need to update etc/fstab.

After the last step of converting system2 to ext4 I get this message

No such file or directory trying to open /dev/block/mmcblk0p26

Possibly non existend device?

:confused::confused::confused:
[Mi 3 General] zard:
Try this.

http://xdaforums.com/xiaomi-mi-3/general/howto-how-to-unbreak-xiaomi-mi-3-to-t3027869
[Mi 3 General] bhushan2k:
OP instructions work fine on Redmi 1S too.... i extended system partition by taking some space from cache... ;) thanks mate [MENTION=3563975]arif920629[/MENTION]
[Mi 3 General] Pallmalli:
Thanks but it didn't help.

Does anyone how to use commands in fastboot on how to repartition without cwm?
[Mi 3 General] ancola66:
Read here :

http://xdaforums.com/showpost.php?p=58602703&postcount=32

Or download then flash with CWM :

http://www.mediafire.com/download/mc90oweiqgmqx4z/Repartition_MI3W_MI4W_To_Factory.zip

* I do this is the file under the guidance here:

http://xdaforums.com/showpost.php?p=58602703&postcount=32
[Mi 3 General] Pallmalli:
Tried that but to avail.

Thanks for your help though.:good:

SOLVED. Using this.

http://xdaforums.com/showthread.php?t=2277112
[Mi 3 General] i snort flour:
Glad to see you got it working again. It may have sucked and been frustrating you broke your phone even though I'm unclear how it even happened I'm guessing you quit in the middle or mislabeled something when in adb. On the bright side of things you just learned a vast new knowledge and realize that 99.9% of the time your phone is not really trash even though the company or other people may tell you it is. You just need to put in the work and research. I remember hard bricking my first phone that I ever rooted and had to buy another one and everybody told me to throw it away but I kept it, researched on it time to time and after a year I had learned enough and development had come far enough to where I was able to bring it back to life and I learned a lot.
[Mi 3 General] balu1191:
i'm also conforming that its working on mi3

happe with ur guide..!! i did as u descrbed..!!

firstly i'm on smiui and mine is mi3 using latest cwm r11 u1 recovery..!! and also i have the smiui file on ma internel of mi3..!!

here the steps i followed:-

1.frst installed twrp reovery to do a nandroid backup to otg(cwm backups are not stable and does not support otg):)

2.did a nandroid on otg with twrp :o

3.and aigain installed the cwm(as u said tested on cwm) and flashed the zip u provided after

4.but the miracle is it doesn boot into system again it boot into recovery ony :mad:

5. so as i said above i flashed smiui.zip file again and flashed twrp again and cleared cache n dalvik and reboted ;)

again miracle :cowboy: :laugh: :cool: without loosing any data ma beast resumed to its updates(social netwrking) etc stuff..!! and bfore that, after read this post i installed disk nfo app.!! so eagerly oppend that app aww its awsome :fingers-crossed: :D some around 618 is used 656 free in my system partition..!!!

this is ma first post on XDA thanx XDA and Thanx original Author and Distributed Auther :laugh: :good:
[Mi 3 General] vishal1404:
And this method did the trick...thanks man....just flashed the biggest gapps package and now my phone is truely google edition phone
[Mi 3 General] vaib:
Why do we still need a second partition?

Can't we create just one partition?
[Mi 3 General] imranaryan:
i have flashed the update script but still i am not able to flash XENON -HD .... anyway to revert back to stock partitions

i have successfully flashed mokee latest build and now i have 1.31gb partition..

is there any zip file to revert to stock partition.. in case i need in future ..
[Mi 3 General] ashish289:
Thanks. It works :D
[Mi 3 General] Canaan-CN:
i revert back to stock partition

then

Decided to flash miui through fastboot, it stops in the middle of it saying Unidentidied error target size is to large. :(

please help me， thank you！
[Mi 3 General] Pallmalli:
Whatever you do don't wipe the sd card. I had the very same problem 2 weeks ago. If you have a back up on SD card wipe all except SD and restore your backup. If you have already wiped the SD card but still have cwm or twrp

download a rom of your choice and sideload it through cwm or twrp. If you have only mi recovery than your only option is fastboot.

In the previous page there is a post of mine with the link of fastboot guide.

Good luck.
[Mi 3 General] Canaan-CN:
thank you，i have a miui rom（zip15.02.13）in sd card 。i flash it，then，it can not update by ota ， i want to know could you flash miui with miflash now？
[Mi 3 General] zard:
You can do a factory reset or flash latest Miui ROM with MiFlash, as update.zip or from cwm or twrp.

Or search for the zip in this thread to return to stock partitions.
[Mi 3 General] Canaan-CN:
I have return to stock partitions, it get normal except flash miui by mi flash (saying size too large:()
[Mi 3 General] Pallmalli:
No still not possible in my case! But I can use both systems.

What you can try is to wipe everything than flash on both systems the same miui.zip. Afterwards try with MiFlash.
[Mi 3 General] Canaan-CN:
No way to solve.I am so sad about the problem. Now I use aosp by vian .the only problem is cant use miflash in case I cant boot and no zip in SD. That s terrible!
[Mi 3 General] i snort flour:
Where there is a will there is a way. It's not like they magically flash miui at the factory using pixie dust. This is another case of a beginner biting off more than they can chew. Start searching the internet and researching the answers. They are out there you just need to find them. You can't expect everything to be handed down on a silver plate all the time as this is not a paid job for anybody here and we all knew the risks of proceeding. This is going to be a long lesson in learning how your phone works and hence build your knowledge. Best of luck. If you are able to install miui and get it to boot you will have to restore their custom recovery for their ota updates not cwm or twrp as miui ota updates flash to both system partitions if I remember correctly.
[Mi 3 General] ancola66:
This is an experience for you, your device must always have:

* a stable rom *.zip

* CWM recovery.zip

* and TWRP recovery.zip >>> to fix if CWM fails

All files are not on the big size but it is very useful if your device fails
[Mi 3 General] The Dork Knight Rises:
One question, so if I resize partitions, then go back to stock partition sizes, will EVERYTHING be back the way it was, or will I be unable to flash MIUI or other ROMs due to target size too large error?

Cuz I don't wanna permanently lose TDB. If it can be implemented in TWRP, it'll be real awesome...(my friend used MultiROM on his Moto G for awhile and it was really cool, there was a boot menu with cool animations and stuff...)
[Mi 3 General] ZenR2:
Hi , i have extended my partition , now able to flash all android l roms with gapps , but today for change just tried flashing the miui dev rom , but it was not flashing , exactly don't remember what the error was but it TWRP was not letting it flash . is it like miui cant be flashed or what or it requires the system 2 to get installed
[Mi 3 General] The Dork Knight Rises:
DId you try flashing MIUI with extended partitioning or stock? And did you try flashing with CWM also?

(I really don't wanna resize if it's gonna cause problems later...)
[Mi 3 General] ZenR2:
With extended one buddy, using the official TWRP, with this new partition i have flashed almost all available Lollipop Roms , this is the first time i got this error that to with MIUI Rom.

.

Well Resizng is good if you ask me ,as i never use TDB ,so the second partition was anyhow not of any use for me ,and secondly now after this new partition one can flash any rom with full gapps no need to un install apps and clear space and all ,

But guess it has some negative aspects like the one am facing now ,but i guess it will surely have some way out :)
[Mi 3 General] The Dork Knight Rises:
No, I was just asking if you've also tried with other configs to see if error exists.

And as for extending, yeah, it is undoubtedly good option now, but see my post on previous page. If extending now means I'll face such errors later (when TDB capable TWRP is released), I'd rather not.
[Mi 3 General] Abhiroxx:
If I extend my system partition, how to revert back to stock partition and miui rom (dont need dual boot).

As I read many users couldn't go back to miui after changing system partition.
[Mi 3 General] ZenR2:
Dedicated to ones who are wondering if after Re size will MIUI work or not

1) To users who are a bit confused whether after increassing the partition size whether you will be albe to install MIUI or not ,

so answer is yes you can ,no issues at all

2) somewhere asking if OTA will work or not

yes OTA works fine :)

I was on TWRP Recovery , and it was the recovery issue that miui was not flashing o but then switched back to Cwm and it flashed as expected Even started getting Beta updates so i assure Ota works .

Now switched back to TWRP just made a backup of MIUI :p

you can make a backup of it and place it in your Pc,lappy and when you feel like switching to Miui just restore it back :cowboy:

,
[Mi 3 General] Abhiroxx:
How to revert back to stock partition size? And Can I just flash the miui rom via fastboot on extended partition?
[Mi 3 General] The Dork Knight Rises:
Thanks a lot. I'm gonna repartition now.

But will MIUI flash after REVERTING to stock layout? Some ppl reported errors, I believe...

Can anyone confirm?

---------- Post added at 11:40 PM ---------- Previous post was at 11:38 PM ----------

You can revert to stock layout by redoing the procedure in OP using original values.

Or use the zip by [MENTION=5072699]i snort flour[/MENTION] on this thread. :P
[Mi 3 General] ZenR2:
Yes you can flash MIUI even after reverting back to stock partition ,i have tried that also and it works fine no issues at all :)
[Mi 3 General] clasher7:
i've been able to reset my partition size to default, but i encounter a problem which gave me an error on ota updates and miflash rom installation... can anybody a fix for this... thanks!:confused:
[Mi 3 General] LKc丶:
After flash Re-partition 1.2G.zip ,and go back to stock partition,i face some problems.

1st. (using MIUI)i cant OTA on system1 , but can OTA on system2.

2nd.MIflash not working(size too large )

Could anybody help me?[emoji20] How can i solve them? :/

(Sorry for my English)
[Mi 3 General] DarkJohn:
What about 64Gb versions ?
[Mi 3 General] oyvinja:
Worked perfectly, with one exception/change compared to the (excellent) guide above: when flashing the repartition zip, I flashed it in TWRP first, it ran with no errors, but partition size didn't change. Tried the entire procedure again, but flashed the zip in CWM, and it worked perfectly. I think others made the same observation, but a good thing can always be repeated once more. :)
[Mi 3 General] i snort flour:
Not sure why but some people can flash with twrp some can't. Mine flashed just fine both expansion and return to stock perfectly in twrp I haven't needed cwm since twrp was released so it leads me to believe later xioami phones have been built with different or cheaper parts since the first ones they put out on the market. I got mine in mid to late September 2014 from a hong kong distributer with a warehouse in Taiwan off of eBay when it couldn't be found anywhere and it came with gorilla glass 3 instead of that cheap dragons tail they switched to. Don't surprise me though as this company is very shady. It sucks that I couldn't get it in silver but after seeing everybody else's issues I'm glad I didn't wait.
[Mi 3 General] imranaryan:
help me having same problem.. neet to revert back to MiUi.. v6 cant flash MiUi Rom

---------- Post added at 04:01 AM ---------- Previous post was at 03:08 AM ----------

this is not working am having error while flashing miui rom .. please help.. its urgent..
[Mi 3 General] i snort flour:
This only changes the partition if you are having problems flashing miui either your recovery isn't working properly or your miui rom you have downloaded is corrupted. Miui claims you have to download them with a computer and transfer them to your phone I was able to get it to download properly with Google chrome beta set to desktop page view on my phone however. This is another case of beginners biting off more than they can chew. Seriously people you shouldn't mess with system partitions and roms if you are not intermediate to advanced in knowledge or willing to take however long is needed to do the research to understand and fix any complications including bricking your device. I can not stress this enough and it will be my last response to these issues.
[Mi 3 General] ashish289:
i want to return to stok partition and flash via fastboot . is it possible to just flash partition zip by [MENTION=5072699]i snort flour[/MENTION] and flash via faastboot.

thank iin advance :)

tried that zip and now unspecifed remote size too large error HELP PLZZZZZZ :crying:

yessss flashed recovery via fastboot i m saved now .:cowboy: :D :D
[Mi 3 General] imranaryan:
even after flashing you script via cwm recovery.. i am still having 1.2G of space .. i am just asking you for solution .. if you can just tell me steps how to get back to original stock partition .. coz i have tried am not able to get back to miui

---------- Post added at 01:28 PM ---------- Previous post was at 01:26 PM ----------

bro can you please help in getting back to stock miui partitions