yashsingh1/xdaforums huggingface dataset:
[Mi 3 General] Parthmashrani:
Workaround? :p

Guys we could do one more thing. We could use system 2 as the primary system so that those who want to use MIUI can use it without issues and those who want to use custom rom can use it without issues. But then there won't be OTA updates on MIUI you would have to manually flash then through recovery. But cmon that's the price of getting a huge system partition. So now can we use system 2 as primary partition instead of system 1? Is that possible? Coz this could solve almost all the problems. :)
[Mi 3 General] The Dork Knight Rises:
Well, you won't be able to use the extremely awesome TWRP recovery, for one...
[Mi 3 General] Parthmashrani:
So it is possible to use only system 2. Well that's some news. Could you guide me how to do that? :p
[Mi 3 General] Pranav1909:
Can I flash miui on 1.2gb partition or do i need to go back to stock partitions.
[Mi 3 General] The Dork Knight Rises:
You'll have to modify the values when you recreate the system partitions. The values signify start point and end point for each partition, so sweet them as you want.

But question is, why you wanna do that? MIUI can always be flashed on both partitions. It is only recommended to flash to system 2 when using TDB, but if you repartition, anyway you'll lose dual boot...

Yes. Flash normally from recovery.
[Mi 3 General] Pranav1909:
Ok thanks
[Mi 3 General] KSKHH:
Is there any way we can touch SWAP & CACHE partition. Cache has been used very less space out of 300+ mb and that applies to SWAP where 0kb used.

Edit: Ok I feel SWAP can not be touched but definitely Cache can be reduce.

My plan is :-

System (which is system1) 1.2 GB for MIUI 1.2GB is too much but like to keep it in case in future load any Lollipop ROM.

System 1 (Which is system2) 5 mb

Cache (Which is used for OTA) 5mb

Rest all User data

I will flash new MIUI ROM from official site thru CWM once in a month. No OTA.

Can some one suggest me please. I need more user data as the device do not have SDCard slot.
[Mi 3 General] destructiontrace:
not able to go back to stock partition with the zip you provided,says installation aborted....any alternative method available?
[Mi 3 General] coolpixs4:
Looking back these thread to find solution

http://xdaforums.com/xiaomi-mi-3/general/howto-resize-extend-partition-capacity-t3011918/page16

http://xdaforums.com/showpost.php?p=59293873&postcount=149

you have to modify extractly partition in bytes in the script to back to factory :laugh:
[Mi 3 General] krishnami3:
revert back to original stock partition

could anyone please tell me how to revert back to stock partition... when i am trying to revert back to stock rom i am getting error 'remote : size too large error'
[Mi 3 General] The Dork Knight Rises:
Did you even read the post JUST before yours? Seriously...
[Mi 3 General] KSKHH:
I am using MIUI with extended partition. No issues here. only one system. 2nd system is 4mb in size
[Mi 3 General] ginny777singh:
Can u plz provide me the working zip file for this extended partion plz.
[Mi 3 General] scrollstory:
In Linux whenever we resize a partition we need to run e2fsck and tune2fs to make sure the filesystem does not becomes corrupted. It is like a religious ritual in for linux users. To make the concept clear- Imagine glass of milk, where milk is the filesystem and glass is the partition volume, now if you want to resize the size of glass by reducing it you need to remove some milk to resize the glass else milk will flow out. And at the end of resizing you check the level of milk if it is proper, because, if the milk is slighlty more than the glass it will flow. Similarly in linux after resizing the partition, filesystem is need to be tuned and checked to match the newly formed partion. Here filesystem is ext4 and the partition is /dev/....

:cool:
[Mi 3 General] B Nath:
Wanted this always, just wanna know if I flash a fastboot ROM will the partition get restored to stock that is "dual boot" ??:confused:
[Mi 3 General] Pallmalli:
No! After flashing the repartitioning zip you can't flash miui through fastboot. Read through this thread and you'll learn a little more about that. It's only 21 pages.
[Mi 3 General] nanotech17:
Only 4KB in size?
[Mi 3 General] nanotech17:
Ok guys if i flash this repartition zip file can i stay on the same(current running rom) rom without flashing a new rom?

2nd - if after i successfully flash the repattition zip file,can i straight away flash twrp recovery?

TIA
[Mi 3 General] The Dork Knight Rises:
I'm pretty sure your systems will be wiped, so you'll have to flash ROM.

And yeah, just reboot recovery once, then flash TWRP.
[Mi 3 General] nanotech17:
How about my personal files?It is wipe too?
[Mi 3 General] domeniko260:
No
[Mi 3 General] nanotech17:
Done - flashing successful - thanks all.Now on TWRP.
[Mi 3 General] B Nath:
After extending system I flashed MIUI using fastboot by changing flash_all.bat and it booted .Everything's fine but I see a Swap partition of 1023 mb in diskinfo.After restoring stock partition and reflashing with fastboot (without any changes) ,the swap file is still there.Other partitions are of the exact same size as they were. What has happened??
[Mi 3 General] B Nath:
Screenshots
[Mi 3 General] mejonoobpoako:
If I resize my mi3 partion, I can still install roms that does not need repartition? Like sMIUI, Ivan's aosp or restore to my buckup?
[Mi 3 General] ZenR2:
yes you can

the only thing you cant do is , you cant flash MIUI throgh fastboot method rest normal zip flash will work fine
[Mi 3 General] The Dork Knight Rises:
No I think even fastboot works with [MENTION=5073293]eaXier[/MENTION]'s restore stock zip (the one I mirrored on my zips thread)
[Mi 3 General] ZenR2:
well i guess he was asking for the things he can do after re-sizing his partition so just said that fast-boot wont work :)

but yes you can always restore back to stock partition and do a fast-boot as well :good:
[Mi 3 General] nanotech17:
Anybody know how to free up some space in system partition? I have done the flashing but now still left 84kb.
[Mi 3 General] ZenR2:
Install root uninstaller and delete some unusefull system apps like wallpapers browser, explorer, anything which has an alternate solution in playstore
[Mi 3 General] nanotech17:
Titanium Backup still shows 600++ mb

Ok I just found out something interesting regarding the system partition storage - in TB it still shows 600++ mb - the same goes to Drivers but in Diskinfo it shows 1.2gb

Which one is the correct info now ?
[Mi 3 General] mejonoobpoako:
I have resized my partition and I downloaded the called disk info. It shows that may system space 1.2 gb but it also shows the free space is 16mb. How should I fix this?
[Mi 3 General] zeyaan:
Thank you for your wonderful guide and thanks for the zip file.

I have an issue here.

I have repartitioned the system partion to 1.22gb.

Cm11 works fine

But when I flash cm12 the portion size magically becomes 640mb.

The only cm12 withch shows 1.22gb partion is the temasek cm12. But it has camera bug.

Can anyone help me understand this?
[Mi 3 General] limprasit:
excuse me i have a question after i resize partition and i flash custom rom the system1 show me i use the partition by 1GB :eek:

becuase i flash only custom rom not GAP not other app why it show i use 1GB

sorry for my bad english
[Mi 3 General] morpheus620:
I have used this script and everything works fine.
[Mi 3 General] limprasit:
thank you so much but dont work for me :crying:
[Mi 3 General] limprasit:
thank you i understand of this problem

this problem is new type .zip of custom rom
[Mi 3 General] Hadi al-Haiqal:
So just use cwm r11 right?.. Then flash twrp to backup rom.. I don't have time reading all.. Working time..
[Mi 3 General] SwastikAcharya:
After flashing reparation zip, I flashed TWRP & reboot recovery..

But it booted into cwm again. Reboot & reboot to bootloader caused the same.

So my advice is Place a rom zip in storage.

After flashing reparation zip, go to mount and storage and mount system 1 & flash rom.Zip
[Mi 3 General] Hadi al-Haiqal:
So your advise is don't use twrp?..
[Mi 3 General] nanotech17:
Try wipe Delvik cache and see how it goes and reboot back to recovery.
[Mi 3 General] diongdyh:
What to do next? I'm a noob sorry.
[Mi 3 General] nikki3010:
Stuck at Mi3 boot logo

Hi I resized my Mi3's partition for the first time and after which I tried to install the XenonHD rom but it failed with errors that it failed to mount and locate certain directories.

So as of now, it's bricked and will not move past the logo. Any ideas how I can solve this? Thanks!
[Mi 3 General] Hadi al-Haiqal:
My step just now..

From ivan aosp lollipop..

1. Wipe data, cache, system 1&2, dalvik..

2. Install twrp 2.8.6

3. Reboot into recovery again..

4. Install rom and gapps..

5. Install any apps that detect system size.. (I use only titanium backup)
[Mi 3 General] Mitradis:
Plz HELP!

I used the script and I had lost partition 25 26 28! i do not know what to do... i lost phone?
[Mi 3 General] Hadi al-Haiqal:
Something went wrong.. I try to revert to stock partition using cwm, then flash aosp ivan, cannot boot.. Then i use twrp, it said system not mounted.. I flash again several time.. Then the good choice is extend partition and flash rom ivan.. System succesfully mounted.. Btw how is this happening?..
[Mi 3 General] adsim:
Thank you.
[Mi 3 General] neoonwheels:
The repartition1.2 did not work and I forgot to copy the original partition zip. Now I am neither able to install any ROM nor flash it through MIFlash. What should I do now?
[Mi 3 General] :
Mine everything is worked fine until

Rebooting into recovery in 5 seconds.

Thanks to forumber2 for his original GT-i9300 repartition script

E: Error in /data/media/0/Download/Repartition_MI3W_1_2GB.zip

(Status 2)

Installation aborted.

E:replace_device_node: could not delete node!

E:replace_device_node: could not delete node!

E:replace_device_node: could not delete node!
[Mi 3 General] neoonwheels:
Yes, got the same error.. Finally, solved it. Went to mount and storage, and mounted system 1 as System.

Flashed Xenon HD and the Stunxnet kernel.

The ROM is smooth and had a lot of options. Over the night, it consumed 6% battery while Ivan's used to consume only 3%.
[Mi 3 General] :
I tried the solution you stated above and it still doesn't work for me. Still getting the same error :(
[Mi 3 General] neoonwheels:
Keep playing around the mount options and turn off zip signature verification
[Mi 3 General] :
I tried everything tht's possible and still fail. Any other ways or anyone having the same problem? I couldn't find the same problem anywhere for a solution. Maybe i didn't search enough
[Mi 3 General] Ringford:
Try to use CWM 6.0.5.1
[Mi 3 General] :
Hey, thanks for your solution... It works now! Thanks a lot mate!
[Mi 3 General] neoonwheels:
In sorry, should have mentioned that I'm using cwm.. My bad..
[Mi 3 General] HanG:
Guys i have the same problem but i can't enter in phone because it's locked in CMW or Fastboot. Do u have any suggestion please?
[Mi 3 General] neoonwheels:
If the re partition gave you trouble and if you are using cwm, mount System 1 as System in Storage and Mount menu. Flash ROM and you would be good to go
[Mi 3 General] jaliee85:
This will work if Im using twrp?since they don't have dual boot?
[Mi 3 General] Hadi al-Haiqal:
Not.. Only cwm.. Then use twrp.. If wanna revert, use again cwm..
[Mi 3 General] Giga GJ:
i dont get it hang elaborate the problem please
[Mi 3 General] bluviper:
= dont mind me =

*lol*
[Mi 3 General] HanG:
Resolved. Thanks. My phone was without rom, I didn't have the possibility of insert file inside and MI flash doesn't worked because the 1.2 partition is wrong for miui rom. A very big problem! ? ... But now it's OK. I resolved with adb and prompt window in fastboot mode.
[Mi 3 General] bluviper:
i also want to share my experience with CWM.

after flashing this ZIP file for repartition. and also the ROMS that needs the extra 1.2gb space for system drive.

and when i tried rebooting to system, the phone just reboots back to CWM. i tried replacing the recovery with TWRP but it always reboot me to CWM. no until i tried hard resetting the phone, then it went to the new ROM... and it all went fine after that.

and when i tried rebooting to recovery from the newly installed ROM, it now has the TWRP recovery in place of the previous CWM.

so i just cant figured out how it got tangled to that process.... but if someone has troubled doing this same as mine. it will only work with a hard reset.
[Mi 3 General] Riichard63:
I had the same problem with CWM. That's a bit scary ;)

Envoyé de mon MI 4 en utilisant Tapatalk
[Mi 3 General] bluviper:
well others are saying that its TWRP is more stable than CWM at the moment.
[Mi 3 General] Riichard63:
Yes TWRP development is followed and cwm one seems abandoned long ago, I wrote to dev that make cwm. He told me that he abandoned as he doesn't own a Mi3 and he made it because a friend asked him and make test.

Envoyé de mon MI 4 en utilisant Tapatalk
[Mi 3 General] userprince:
After Doing this process. I flashed CM12.1 but at the end i get an error cannot unmount system?

How do i revert back?
[Mi 3 General] coolpixs4:
look back page 16~18, #152 post

Solution is there
[Mi 3 General] gamersam16:
I tried the repartition method manually and did all the steps carefully without doing it wrong everything was right until i tried to reboot i get a error node not found

i can reboot my phone to recovery and fastboot but whenever i try to flash a rom i get a error during the process saying failed to mount the system1 at system!

then in the next line it says cant unmount system

btw i have cwm r11

please help i need my phone to work again

quick help would be highly appreciated

i know htc mania gave us a zip file but could you walk me through the whole procedure

thanks guys your help is really appreciated
[Mi 3 General] neoonwheels:
Faced same issue with cwm after re partition. Go to storage and Mount, and manually mount System 1 as System.

That should enable you to install new ROM.
[Mi 3 General] gamersam16:
i think i have already tried it

did you get node error while you were rebooting the recovery or phone

could you explain me the steps you did to recover your phone thanks
[Mi 3 General] neoonwheels:
I was not able to flash ROM, and was getting same mount error. I was on CWM. Age the manual mount and toggling the checksum checking, I could install the ROM.
[Mi 3 General] gamersam16:
thank you people

I want to thank you all for helping me fix my phone properly it had been lying there for 2 days but now its back to its former glory

i am writing the steps i followed so anyone in similar situation can follow

but please make sure to follow this only if you believe you know what you are doing and i please do it at your own risk

i repeat at your own risk

before doing this please contact me through pm explaining if you have the same kind of error

follow this only if you can reboot to cwm recovery

1 ) download the zip file available to revert back to stock partition

it is available at the page 16

2) push the zip file through adb to your sdcard

3)flash the zip file

4)download a stock partiton rom available

personally i downloaded the ivan 5.1 rom available in the general section

5)flash the rom and the reboot the device

the first boot may take some time

and again i want to thank all the people who helped me
[Mi 3 General] Hadi al-Haiqal:
How the step 2?.. I cannot understand..
[Mi 3 General] gamersam16:
you need to have adb installed in order to step 2

please follow this at your own risk

once in the folder Android in the root of your hard drive

then copy the stock partition zip to the folder

right click and open command prompt there

then execute the following command (without quotes )

" adb devices "

if you see your device listed then follow

" adb push (name of the repartition zip) /sdcard/ "

that all
[Mi 3 General] Hadi al-Haiqal:
Hurm.. I don't have computer.. Went wrong.. Reverse partition.. Only manage to install miui or iuni in system 1.. If aosp ivan, system 1 cannot be mounted.. Now i'm in system 2 on aosp.. Help please.. Or just using extended partition..
[Mi 3 General] prarun2030:
Ok, i got this weird problem. I extended the partition using the script from few post back and it worked successfully, I flashed xenon hd's latest build and gapps and now the free space is shown as 4kb. Unfortunately, coz of this I'm unable to flash any fonts via recovery or anything else via recovery. Anyway to solve this issue.
[Mi 3 General] diongdyh:
Try to wipe data, cache n dalvik again. Then restore your nandroid backup. Hope this helps :D
[Mi 3 General] husen96:
thanks for guide, but more easy use flashable zip
[Mi 3 General] prarun2030:
Will try and report back bro :)
[Mi 3 General] debondo:
cheer up

allready answered thanx
[Mi 3 General] Wanny!:
(for now I'm going to be tl;dr)

I'm installing the 1.2GB repartition zip, but... the partitions aren't being resized (/system keeps having a size of 629 MB). Maybe it's because I'm using TWRP instead of CWM?

I'll try the manual way from the very 1st post.

EDIT: I didn't want to install CWM but oh well. Install CWM -> Install repartition ZIP -> install TWRP again = voilà
[Mi 3 General] hvashar:
Works perfect!

Thanks OP! Repartitioned successfully to 1.2GB
[Mi 3 General] ravinder0003:
it's not working with cm12 based roms...

it's working with any KK based rom but not with cm12...

i have changed the partition sizes but when i am flashing any rom or backup it again shows old spaces...

but it's working with cache and userdata ... i have changed the size of cache from userdata ...

seems as if cm12 rom zip is formatting system in a different way than KK...
[Mi 3 General] Hadi al-Haiqal:
It is the new format system.. You will need to backup system, data and boot.. Then wipe data, system dalvik n cache, then restore back system, data and cache..
[Mi 3 General] Napsterabhi:
Just a Lil questions... Which system will get formated the one which we r flashing in or the other one
[Mi 3 General] Pi3rluigi:
By default, if you use the provided zip file, system 1; but if you edit it you can choose to resize system 2.

Inviato dal mio MI 3W utilizzando Tapatalk
[Mi 3 General] kakangalex:
I've done flashing zip via Cwm or twrp, has also do method with a backup first with twrp continues to flash repartition zip via Cwm, but nonetheless still a 600 mb partition, what's the solution?

first position global rom MIUI on system 2 active, system 1 has been activated before the flash zip, but still it is not willing to change the partition..

if i use method on first page via adb, my mi3 cannot detected on adb, how to make adb can detect my mi3 on recovery?

sorry for my bad english
[Mi 3 General] diongdyh:
You have to wipe both systems before proceeding to flash the zip. And rmb to select System 1 to flash the zip
[Mi 3 General] kakangalex:
i've done wipe both systems with twrp, then use cwm to flash the zip, it still no change..
[Mi 3 General] diongdyh:
Try redo it. Maybe you've missed some steps
[Mi 3 General] kakangalex:
i've done format system 1 and system 2 use cwm, then flash the zip, and still no change.. :(
[Mi 3 General] Pi3rluigi:
No change, what does it means?

Do you still have two 600 Mb partition?

Inviato dal mio MI 3W utilizzando Tapatalk
[Mi 3 General] marko94:
Are you sure that your active system is 1 before flashing this zip ?
[Mi 3 General] manohar.desale@gmail.com:
Extended partition.

Respected Audahadi Thank you for making MI3 re-partition so easy. I done it on my mob without any problem. I flashed rom and restore backup without any problem. system-1.2 gb and system 1-5mb. I flashed discinfo and check partition. It showed system with 1.2 gb and only 30 mb free. please help
[Mi 3 General] diongdyh:
Make a backup with TWRP, wipe data, dalvik and cache. Restore your backup. Done!
[Mi 3 General] manohar.desale@gmail.com:
Thank you bro. I done same what you advised. Problem solved.
[Mi 3 General] sivabommakanti:
Hi. I have installed Ivan aosp today on extended partition. But after installation I have only 600mb ROM space left. How do I regain 1.2 GB back while still staying on Ivan?
[Mi 3 General] diongdyh:
It's normal to have 600MB left after installing a ROM. If you want 1.2GB free space of system partition, wipe all your data and don't flash anything (No ROM)
[Mi 3 General] sivabommakanti:
What I was trying to say was total space of 1.2 GB got reduced to 600 mb & the free space is only 128kb now.
[Mi 3 General] diongdyh:
Oh ok. Follow the instructions:

http://xdaforums.com/showthread.php?p=61135477
[Mi 3 General] Pachanka:
I've used your commands with success (thanks for the job :) ), but now i'm trying to install a rom with TWRP (Xenon or CM-cancro, cM112 based roms) and i have a message "can' t mount /system".

Think there's a link with partionning ?
[Mi 3 General] Pachanka:
Ok, problem solved using this tutorial : http://en.miui.com/thread-109619-1-1.html

Just need to flash a zip after extend partition to get back to stock partition layout :)

Enjoy Lollipop with a 1.2GB partition :)
[Mi 3 General] AlbertXiong:
Some Commands Invalid

Thank u for ur post m8!!!!!!! I tried it out and found those commands that convert ext2 to ext 4 dont work for me. In the end, I used the following commands to finish it:

mke2fs -t ext4 /dev/block/mmcblk0p25 (same for 26)

lol I Googled all the away through >.<:eek:
[Mi 3 General] SerjP:
+1

During clean Mokee release installing I'm getting "failed to mount /dev/block/platform/msm_sdcc.1/by-name/system"

---------- Post added at 10:43 PM ---------- Previous post was at 10:41 PM ----------

By flashing mentioned zip, you'll get the stock partition layout (640Mb+640Mb), not the 1.2Gb
[Mi 3 General] sahafdeen:
install twrp recovery ,and select wipe menu/ select system/ re-partition -change file system format :

take cwm : back up first ,:laugh:
[Mi 3 General] srvoleti:
You misunderstood my question. I have asked why there is a change in the file system. Not how to do it. I very well know how to change!!
[Mi 3 General] sahafdeen:
ext3 to ext4 why?

dear friend , sorry for not understanding your question:

ext4:

ext4 provides some additional benefits and perforce over ext3 file system. You can easily convert ext3 to ext4 file system.

The ext4 filesystem has more features and generally better performance than ext3, which is showing its age in the Linux filesystem world. Features include:

Delayed allocation & mballoc allocator for better on-disk allocation

Sub-second timestamps

Space preallocation

Journal checksumming

Large (>2T) file support

Large (>16T) filesystem support

Defragmentation support
[Mi 3 General] KSKHH:
@ all

Is there anyone help me to understand how to make the system1 partition only 750MB.

What I want:-

System1 : 750mb

System2:5mb

Cache:380mb

User: Rest

This will increase user partition around 500mb. We really do not need a system1 partition 1.2GB for Lollipop ROM/other ROM. We need around 750mb only and wasting rest of the system1 space.

I have done 1.2 partition several time with the help of the flash .zip file available in the forum. I am not looking for that rather I do want to touch Cache & User partition here.

EDIT: I have successfully able to extend my userdata partition. The journey was not so easy though.
[Mi 3 General] sam_chk:
Hi every one.. To modify extended partition.. I hv read this thread many times. Below is the issue i m facing.. After installing CWM6.0.5.1 i wiped both system and flashed Stock miui 6.5.3.0.. But rebooting always make Mi3w cwm.. Posting flashing i hv cleared cache and dalvik too.. Even twrp zip fashing boots into cwm recovery.. Any suggestion?
[Mi 3 General] SerjP:
it is known issue with CWM. Instead of rebooting phone via menu try to hard reset phone by holding the Power button for 10 sec. Then it will reboot to right recovery (TWRP or stock one).
[Mi 3 General] sam_chk:
Thanks for the quick reply..I will try that option.. But with CWM along with stock miui 6.5.3 zip flashing phone doesn't boot up on extended partition....unless i roll back to stock partition with both system 1/2..

Regards

Sam