[HOWTO][GUIDE][Mi3][Mi4]Resize/extend system partition capacity

zard

Senior Member
Jul 19, 2005
3,463
307
213
This Procedure May Will Brick Your Device!!!!!

Only for users who comfort with single partition layout only !!!

This is a script to partiton your system partition as like stated in OP. Tested with Clockworkmod recovery.

How to use? Just flash through recovery on either partition. Remember, this will wipe your system partition, do backup for safe or no if you like to live dangerously.

Repartition_MI3W_1_2GB.zip

Credit :
http://forum.xda-developers.com/showthread.php?t=2765846
http://forum.xda-developers.com/galaxy-s3/development/guide-extra-1-5-gb-user-data-t2762594
@ari920629 & @audahadi,

Thanks for the OP and this script.

When I tried the steps from OP, I encountered error on some steps not working, eg that I need to unmount the 25 & 26.

Looking at your script, I tried the umount command but still didn't succeed. So I decided to run your script from cwm recovery on my MI 3. It worked.

Then I decided to revert back to original, using the guide from OP, and it worked too.
Then I decided I wanted to try the manual steps again, and chose the partition 3, ie tz.

Everything worked as expected but when I checked with print, it displayed the start and end correctly, but partition format was in ext2, when it was supposed to be nothing.

I decided to flash a developer ROM from cwm recovery to test it.

With latest developer ROM, I flashed and encountered error. I decided to reboot into recovery again to retry flashing the developer ROM.

Here's where my nightmare came. The screen got stuck at the MI Logo, so I decided to reboot by pressing and holding on to power button. The screen went blank, power led and buttons has no light, and when I connected my MI 3 to my computer, a number of Windows appeared and also prompts to format 3 or 4 drives.

Any advice would be appreciated.
 
Last edited:
  • Like
Reactions: akshayAXE

tongueinamow

Senior Member
Apr 11, 2013
176
20
0
Lipa City, Batangas
@ari920629 & @audahadi,

Thanks for the OP and this script.

When I tried the steps from OP, I encountered error on some steps not working, eg that I need to unmount the 25 & 26.

Looking at your script, I tried the umount command but still didn't succeed. So I decided to run your script from cwm recovery on my MI 3. It worked.

Then I decided to revert back to original, using the guide from OP, and it worked too.
Then I decided I wanted to try the manual steps again, and chose the partition 3, ie tz.

Everything worked as expected but when I checked with print, it displayed the start and end correctly, but partition format was in ext2, when it was supposed to be nothing.

I decided to flash a developer ROM from cwm recovery to test it.

With latest developer ROM, I flashed and encountered error. I decided to reboot into recovery again to retry flashing the developer ROM.

Here's where my nightmare came. The screen got stuck at the MI Logo, so I decided to reboot by pressing and holding on to power button. The screen went blank, power led and buttons has no light, and when I connected my MI 3 to my computer, a number of Windows appeared and also prompts to format 3 or 4 drives.

Any advice would be appreciated.
have you tried flashing a ROM through fastboot?
 

audahadi

Senior Member
Oct 14, 2012
1,699
3,350
0
Dimana-mana
Screen has no display and buttons are not lighted. Can't get into fastboot and issuing fastboot commands got be error of no device.
Fastboot tour only hope.. Power+volume down button.. If not happen anything.. Most highly end up being expensive paper weight. Connect USB nothing happen?

Sent from my MI 3 using XDA Free mobile app
 

zard

Senior Member
Jul 19, 2005
3,463
307
213
Fastboot tour only hope.. Power+volume down button.. If not happen anything.. Most highly end up being expensive paper weight. Connect USB nothing happen?

Sent from my MI 3 using XDA Free mobile app
When connected my MI 3 to my computer USB port, a number of Windows appeared and also prompts to format 3 or 4 drives. Screen still shows nothing.

Tried to get into fastboot with power+volume down button, still nothing on screen.
 

Justinwee95

New member
Feb 5, 2013
1
0
0
When connected my MI 3 to my computer USB port, a number of Windows appeared and also prompts to format 3 or 4 drives. Screen still shows nothing.

Tried to get into fastboot with power+volume down button, still nothing on screen.
I knew this issue since the RedMi note 4G. The easiest solution is to disconnect the battery and plug back in and it'll magically boot again. But the problem is...mi3 can't remove back cover :/
 

audahadi

Senior Member
Oct 14, 2012
1,699
3,350
0
Dimana-mana
When connected my MI 3 to my computer USB port, a number of Windows appeared and also prompts to format 3 or 4 drives. Screen still shows nothing.

Tried to get into fastboot with power+volume down button, still nothing on screen.
Any update? Tried leave it charge and reboot to fastboot @ recovery again? Not familiar with Windows, on Linux, in terminal type "lsusb".. Is your device detected. Maybe partitions formatted in ext2...

Sent from my MI 3 using XDA Free mobile app
 

zard

Senior Member
Jul 19, 2005
3,463
307
213
Any update? Tried leave it charge and reboot to fastboot @ recovery again? Not familiar with Windows, on Linux, in terminal type "lsusb".. Is your device detected. Maybe partitions formatted in ext2...

Sent from my MI 3 using XDA Free mobile app
Firstly, I let it to deplete the battery (about 24 hours). Tried press power button and hold (30 seconds or more), screen still has no display.

Plug in USB cable and charger, LED flashing red, tried at different time from plug in until about 2 hours later, press power button and hold, also press power button and volume down buttons and hold (30 seconds or more), screen and capacitive buttons still doesn't light up.

Leaving it with USB cable and charger as suggested to charge for 12 hours or more before trying again.
 

i snort flour

Senior Member
Jan 17, 2013
866
364
0
Firstly, I let it to deplete the battery (about 24 hours). Tried press power button and hold (30 seconds or more), screen still has no display.

Plug in USB cable and charger, LED flashing red, tried at different time from plug in until about 2 hours later, press power button and hold, also press power button and volume down buttons and hold (30 seconds or more), screen and capacitive buttons still doesn't light up.

Leaving it with USB cable and charger as suggested to charge for 12 hours or more before trying again.
You could try following this link also hope it helps
http://www.technobuzz.net/flash-miui-fastboot-rom-dead-bricked-mi3-redmi-1s/
 

wajeehuzkhan

Senior Member
Sep 20, 2014
125
20
0
Didnt worked

though did tried but it didnt worked
This Procedure May Will Brick Your Device!!!!!

Only for users who comfort with single partition layout only !!!

This is a script to partiton your system partition as like stated in OP. Tested with Clockworkmod recovery.

How to use? Just flash through recovery on either partition. Remember, this will wipe your system partition, do backup for safe or no if you like to live dangerously.

Repartition_MI3W_1_2GB.zip

Credit :
http://forum.xda-developers.com/showthread.php?t=2765846
http://forum.xda-developers.com/galaxy-s3/development/guide-extra-1-5-gb-user-data-t2762594
 

i snort flour

Senior Member
Jan 17, 2013
866
364
0
Does not work if you flash rom with new zip format. Example lie CM12, Blisspop and etc that use "system.new.dat"
Why would it do that though. How does it register as more space than it actually is and will this problem be addressed in the near future because this is disappointing considering I just expanded my system to accommodate more system files and now all of the roms being installed are claiming to use 1gb on the system partition
 

zard

Senior Member
Jul 19, 2005
3,463
307
213
Firstly, I let it to deplete the battery (about 24 hours). Tried press power button and hold (30 seconds or more), screen still has no display.

Plug in USB cable and charger, LED flashing red, tried at different time from plug in until about 2 hours later, press power button and hold, also press power button and volume down buttons and hold (30 seconds or more), screen and capacitive buttons still doesn't light up.

Leaving it with USB cable and charger as suggested to charge for 12 hours or more before trying again.
After doing some research, I found the 3 links (see below) which helped me to unbreak my device from blank screen, no LED, capacitive buttons not lighted and last of all when my Mi 3 is plugged to my Windows 8.1 computer, there is many Windows pop-up asking to be formatted.

THIS IS WHAT I DID:
1. Download MiFlash from Xiaomi

2. Download Miphone Manager from Xiaomi and install it. Look in C drive for the directory.

3. Reboot Windows 8.1 in safe mode, select unsigned drivers option.

4. When the Mi 3 is connected to my computer by USB, in device manager, the detected device "QHSUSB_BULK" is with "!".

5. Click on "QHSUSB_BULK" to install drivers by pointing to the directory in point (2) above.

6. Follow the MiFlash steps from the below thread " Unbrick Your Completely Dead Mi3 With No Fastboot/Recovery" to flash the files under Advanced Mode.

7. After the flashing completed, press Power button for about 20 seconds, and my Mi 3 booted up.

LINKS FOR REFERENCE:
Recover From Hard Bricked OnePlus One
https://forums.oneplus.net/threads/solution-recover-from-hard-bricked-oneplus-one.104943/


How to Disable Driver Signature Verification on 64-Bit Windows 8.1 (So That You Can Install Unsigned Drivers)
http://www.howtogeek.com/167723/how...8.1-so-that-you-can-install-unsigned-drivers/


Unbrick Your Completely Dead Mi3 With No Fastboot/Recovery
http://en.miui.com/thread-73348-1-1.html
 
Last edited:

audahadi

Senior Member
Oct 14, 2012
1,699
3,350
0
Dimana-mana
After doing some research, I found the 3 links (see below) which helped me to unbreak my device from blank screen, no LED, capacitive buttons not lighted and last of all when my Mi 3 is plugged to my Windows 8.1 computer, there is many Windows pop-up asking to be formatted.

THIS IS WHAT I DID:
1. Download MiFlash from Xiaomi

2. Download Miphone Manager from Xiaomi and install it. Look in C drive for the directory.

3. Reboot Windows 8.1 in safe mode, select unsigned drivers option.

4. When the Mi 3 is connected to my computer by USB, in device manager, the detected device "QHSUSB_BULK" is with "!".

5. Click on "QHSUSB_BULK" to install drivers by pointing to the directory in point (2) above.

6. Follow the MiFlash steps from the below thread " Unbrick Your Completely Dead Mi3 With No Fastboot/Recovery" to flash the files under Advanced Mode.

7. After the flashing completed, press Power button for about 20 seconds, and my Mi 3 booted up.

LINKS FOR REFERENCE:
Recover From Hard Bricked OnePlus One
https://forums.oneplus.net/threads/solution-recover-from-hard-bricked-oneplus-one.104943/


How to Disable Driver Signature Verification on 64-Bit Windows 8.1 (So That You Can Install Unsigned Drivers)
http://www.howtogeek.com/167723/how...8.1-so-that-you-can-install-unsigned-drivers/


Unbrick Your Completely Dead Mi3 With No Fastboot/Recovery
http://en.miui.com/thread-73348-1-1.html
Open a thread so others with same situation know what to do

Sent from my MI 3 using XDA Free mobile app
 

karthikb89

Senior Member
Jun 10, 2013
108
16
18
Just unzip it and open Repartition_mi3w_1_2gb\meta-inf\com\google\android\update-binary and edit these 2 lines:

parted /dev/block/mmcblk0 mkpart primary 403MB 1740MB
parted /dev/block/mmcblk0 mkpart primary 1740MB 1745MB

To this:

parted /dev/block/mmcblk0 mkpart primary 403MB 1074MB
parted /dev/block/mmcblk0 mkpart primary 1074MB 1745MB

Then save the file, then re-zip all the files with a different zip folder name and poof you will have a zip file to partition almost everything to system1 and a zip to partition your systems back to factory

Thanks audahadi for sharing this with us

---------- Post added at 10:08 PM ---------- Previous post was at 09:41 PM ----------

PS if you brick your phone you can take me for everything I own which is $1.83 USD in change and my phone [emoji90]
This changed method is still for increasing partition to 1.2 GB right?
 

i snort flour

Senior Member
Jan 17, 2013
866
364
0
This changed method is still for increasing partition to 1.2 GB right?
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