yashsingh1/xdaforums huggingface dataset:
[Mi 3 General] Vasoconstriction:
[MENTION=7051678]imgblur[/MENTION] Hey, yeah I'm that guy from the post on Ivan's thread. I barely dare saying it, but I think Ivan messed up. Might be a slip-up with translating. 1.5gb is a completely ridiculous size for a ROM with gapps (compare it to Cyanogenmod 12.1 with pico gapps which comes in under 0,4gb). Ivan's AOSP with pico GApps (open gapps) takes around 800mb of system storage. Maybe if you'd install the rom + largest gapps (which installs all normal Google user apps like gmail as a system app (why would you even want that)) + Xposed + SuperSU + Viper4Android + installing own apps as system with TitaniumBackup that you'd be able to cross the 1,2gb mark, but 1,5gb is absolutely not a requirement. Following Ivan's instructions and looking at his commands, all he does is merge the two 600mb system partitions (coming in at 1,2gb), but he's not extending anything to 1,5gb. The problem is, that if you manually extent your system partition to 1,2gb (which I did using this thread) you will not be able to install AOSP and his zip doesn't work (because his zip contains checks which you fail if your system 1 is 1,2gb and your system 2 0,05gb). So that's why I made that post which manually does the commands and doesn't use any checks, that way you MERGE instead of EXTEND your system partitions and Ivan's AOSP needs 1 system partition of 1,2gb. Not 2 system partitions of which one is 1,2gb and the other is tiny. So if you followed the instructions and you see you only have 1 system you should be able to flash his ROM. If you can't get this to work do this:

1. hook your phone up to the PC, go into your recovery (not fastboot) and open a command prompt

2. type in the following codes:

adb devices

adb shell

parted /dev/block/mmcblk0

unit MB

print

3. make a screenshot

you're supposed to get a table of something like this, i wanna see that:

Number Start End Size File system Name Flags

1 0.02MB 2.10MB 2.08MB sbl1

2 2.10MB 3.15MB 1.05MB rpm

3 3.15MB 4.19MB 1.05MB tz

4 4.19MB 5.24MB 1.05MB DDR

5 5.24MB 6.29MB 1.05MB ssd

6 6.29MB 7.34MB 1.05MB dbi

7 7.34MB 11.5MB 4.19MB aboot

8 11.5MB 16.8MB 5.24MB bk1

9 16.8MB 21.0MB 4.19MB misc

10 21.0MB 29.4MB 8.39MB logo

11 29.4MB 67.1MB 37.7MB bk2

12 67.1MB 68.7MB 1.57MB modemst1

13 68.7MB 70.3MB 1.57MB modemst2

14 70.3MB 70.3MB 0.00MB fsc

15 70.3MB 134MB 64.0MB bk3

16 134MB 136MB 1.57MB fsg

17 136MB 168MB 32.0MB bk4

18 168MB 201MB 33.6MB bk5

19 201MB 218MB 16.8MB boot

20 218MB 235MB 16.8MB boot1

21 235MB 252MB 16.8MB recovery

22 252MB 268MB 16.8MB ext4 persist

23 268MB 336MB 67.1MB fat16 modem

24 336MB 403MB 67.1MB fat16 modem1

25 403MB 1074MB 671MB ext4 system

26 1074MB 1745MB 671MB ext4 system1

27 1745MB 2147MB 403MB ext4 cache

28 2147MB 15758MB 13610MB ext4 userdata

Let me know the results.
[Mi 3 General] imgblur:
This is what happened. This happens even if I just type parted. It says not found.
[Mi 3 General] Vasoconstriction:
Wait did you type "adb shell" and entered, THEN type "parted /dev/block/mmcblk0" and enter again THEN "unit MB" and enter and finally "print" and enter? If you type all the commands on one line it will gave an error ofcourse.
[Mi 3 General] imgblur:
I typed "adb shell" enter, then the parted command with and without "unit MB" and "print". Both the times, it says not found.
[Mi 3 General] Vasoconstriction:
So after "adb shell" enter

you typed "parted /dev/block/mmcblk0"? not just "parted" enter?

If yes, then this is above my league. I'm just a Dutch med student, not an IT bachelor, so maybe the maintainer of the thread can help you.

If you're able to boot into a ROM, you could try installing the app "Diskinfo" that might provide some useful info you could post her.

Oh and there was also a guy that seemed to have similar problems. He got it to work by flashing Ivan's AOSP and then flashing Slim GApps instead of Open Gapps. Try that too.
[Mi 3 General] imgblur:
Correct. After "adb shell" and enter I typed "parted /dev/block/mmcblk0" and it shows not found. Yea I saw someone had the same issue on the 1st page of the thread, but didn't see a clear answer. OP, can you help me?

Edit: Attached the system partition details as per Diskinfo.
[Mi 3 General] Vasoconstriction:
No, I PM'ed with a guy on MIUI. He got the same error, but the diskinfo app showed everything worked normally. Have you tried flashing Ivan's AOSP and then Slim Gapps? If not, try that, because the other guy might've had the exact same issue and that worked for him.
[Mi 3 General] imgblur:
OK. I'll try that and let you know if it works. Thanks for the help man. :)
[Mi 3 General] Pi3rluigi:
What recovery do you have on the phone?

If you have TWRP, it doesn't support the parted command!

Install CWM, do the trick and back to TWRP

Inviato dal mio D6633 utilizzando Tapatalk
[Mi 3 General] dhruvesh505:
PLEASE HELP phone is not booting up

ty
[Mi 3 General] imgblur:
Tried that too. But the PC doesn't recognize the adb device if CWM r11.
[Mi 3 General] Pi3rluigi:
Try r7

Inviato dal mio D6633 utilizzando Tapatalk
[Mi 3 General] Santy87:
is there any flashable zip as I am not a comp engg so dont know much about above and I am on mokee mm so would like to have this without having to format miui
[Mi 3 General] Fikshun:
https://docs.google.com/uc?id=0B40xilPwt6AXV1BZMC1DTkM4cDg&export=download

https://docs.google.com/uc?id=0B40xilPwt6AXWUdqc2pPc3pWaDg&export=download

1. Extended partition zip

2. Stock partition zip

just flash with cwm recovery
[Mi 3 General] imgblur:
Neither of them worked. Still shows as 1.2GB system.
[Mi 3 General] TofikLupus:
What exactly do you need? Do you need to return to the old double partition layout?

MI3W 64GB/Tapatalk
[Mi 3 General] imgblur:
I need the new partition layout. When I flash the first zip, it just says creating partitions and reboots into TWRP. But still have the 1.2 partition. And I don't want to download and flash miui just for this. Can you plese help me out? I tried the parted command also but didn't work. You can check a few posts above.
[Mi 3 General] TofikLupus:
Yes I can help you, your Data partition will stay untouched with this method, and after you're done you can install your ROM right away with your existing data and it will boot up like you haven't changed a thing. I've done it myself several months ago.

MI3W 64GB/Tapatalk
[Mi 3 General] imgblur:
I did the individual commands too. :P No use.
[Mi 3 General] TofikLupus:
If you did it, then you must've already merged them. Does DiskInfo or parted report these partition numbers? (or at least only one of each partition that used to be duplicate on the old layout)

MI3W 64GB/Tapatalk
[Mi 3 General] imgblur:
Yes this is how it looks but I have modemst1 and modemst2 on p12 and p13. Doesn't that mean that I still have 2 partitions?
[Mi 3 General] TofikLupus:
This is how it should look like:

If you got this, then you have your partitions merged successfully (no dual boot anymore).

MI3W 64GB/Tapatalk
[Mi 3 General] imgblur:
The parted command does not work at all. I don't know why:(
[Mi 3 General] TofikLupus:
It won't work because your /system/bin doesn't contain the parted binary file. You first have to copy it in there and then you have to run "chmod 0755 /system/bin/parted" command either using cmd+adb or in phone using a Terminal emulator. This will initialize the parted binary and allows you to use the parted command.

I'll attach the binary in case you want to do this. But it isn't really necessary if you don't need this particular command because you can get a full partition list also in the DiskInfo app. I just wanted to show you my partition list in such way that the whole list is visible without having to scroll up.
[Mi 3 General] imgblur:
Thank you so much! It worked. And my partitions are exactly the same as yours and I have only 1 system partition of 1.32gb. Thanks again1 :D
[Mi 3 General] TofikLupus:
You're welcome :) Most of the work you had already done yourself anyway.
[Mi 3 General] imgblur:
But never realized. :P But you gave more insight. Thanks! :)
[Mi 3 General] Mobile Care:
mi4i dead boot

i have mi4i by mistake i flashed mis1 file flashing was success but phone did not on even not enter fastboot mode when plug to pc devise manager shows qualcomm hs usb dloader 9008 also detected as fastboot in miflash tool when try to flash through fastboot it gives this error "Not enough storage is available to process this command.(0x80070008), Max buffer sector is 32". experts pls help.
[Mi 3 General] Msf107252:
Hey Guys,

I want to ask u all that would it work on mi4i with re-instructed partitions

I want to use this guide ffor mi4i as mi4i has 34 and 36 as system and userdata so can i use this guide plz reply fast

ITS VERY IMP GUYS PLZ
[Mi 3 General] TofikLupus:
34 is your system and 36 is userdata? Then i guess 35 is system2. In theory it should work, but your recovery has to support parted and other commands needed for this.

And don't forget to set system1 as active.

MI3W 64GB/Tapatalk
[Mi 3 General] Msf107252:
Hey bro i did all the commands overwritnig just the partition numbers it went all right

but now i cant flash any rom in it it keeps on installing but never installs so how to get back to original any idea

and my recovery says /sdcard not ound in partiton so is there any thing i hv to do to get sd card from userdata partition

and btw the 35 partiton was cache i m using mi4i without 2 system os patch

and i wanna ask that if we r doing this with userdata partition that we have to use any othe part type like replacing primary with secondary or something like that help plzz

and now it shows E: unable to mount /system

and it shows unable t0 find partition for path /sdcard

any help plz
[Mi 3 General] TofikLupus:
You should've answered me before even doing anything! I thought partition 35 is system2. What exactly were you trying to do? This is a thread for partition extending, for which 2 system partitions are needed! Wow. If your phone has only one partition and you merged I dunno even what with your system partition, then congratulations, you just messed up your partition table. You have to revert your partition table to the original form. Which I don't know because I have an MI3.

MI3W 64GB/Tapatalk
[Mi 3 General] Dashing_97:
hey guys let me know one thing, u know that miui changed the partitions to its own way with marshmallow, u already have the bigger partition with MM update right? then y are u guys still talking in this thread?
[Mi 3 General] DutchMan_1990:
Becasue some of them didn't get the update or don't want to be on MIUI MM and newer CM13, Mokee need extended partition.

---------- Post added at 09:22 PM ---------- Previous post was at 09:19 PM ----------

First of all, do you have screenshot of default partition table, if yes then you may have a way to get back to there. I'm not sure about that.

Second of all WTF are you doing in a cancro- i.e Mi3/Mi4 thread?
[Mi 3 General] Saamyo:
Thanks a heap bro! You helped me out a loooot.
[Mi 3 General] itzikd1:
i did this on cwm 5.0.5.0 R8 but now my phone wont boot.

it does enter recovrey, but nothing else, and i cant trasfer any files i tryed to mount but computer wont reconize so i have no way of flashing a new rom (i belive thats what happen after the partion guide that it just delted all data)

is there a way to flash a rom threw fastboot?

or a special way to trasfer files so i can trasfer this rom and install it

http://www.needrom.com/download/xiaomi-mi3w-mi4-android-6-0-marshmallow-cm13-0-stable-rom/
[Mi 3 General] subhad43:
I also want to remove cache and userdata partition. So should I also do "mkpartfs primary ext2 xxxx xxxx"
[Mi 3 General] subhad43:
how to remove the userdata partition. It says " Device or resource is busy. Please unmount it. " How to unmount it ?
[Mi 3 General] teddymild:
Hi all, I'm on global stable 7.1.2.0. I'm confused about the size of my system.

In disk info app (1st screen shot) system partition size is 1,2 gb and used 1,2 gb.

In root Explorer and titanium backup system rom size is 660 mb and used 600 mb(2nd and 3rd screen shots).

Are those infos are normal? Or something wrong with partition? Thanks in advance.
[Mi 3 General] itzikd1:
hello, i have xiaomi mi4, i followed the guide but i still have 1.06gb storage when looking at setting...

can you check maybe you see something wrong here?

http://s33.postimg.org/unmps2avj/image.jpg

[IMG="http://s33.postimg.org/unmps2avj/image.jpg"]http://s33.postimg.org/unmps2avj/image.jpg[/IMG]
[Mi 3 General] TofikLupus:
Your partition layout is correct, I don't know what do you think is wrong on it.

MI3W 64GB/Tapatalk
[Mi 3 General] itzikd1:
fixed the issu by useing mi flash tool and doing "flash all"
[Mi 3 General] joaodanielkm:
Hello , it did not work for me. Now when I try to install the rom with miflash appears remote error : size too large helllp
[Mi 3 General] thendrluca:
Big thanks!

In adventure to resize my Nexus 4 system partition, deleted cache partition, and didn't know how to make that partition ext4 back, because parted does not support as I saw )) thought will be bricked forever...

This post helped to create cache partition again, and also to resize system partition. Big Thanks to author! :good::good::good:
[Mi 3 General] adin59:
can somebody help me with my partition table

i don't have system1 or system2 partition.

i have a mi pad 1

print

Model: MMC SDW64G (sd/mmc)

Disk /dev/block/mmcblk0: 62537MB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Number Start End Size File system Name Flags

1 2.10MB 4.19MB 2.10MB NVC

2 4.19MB 6.29MB 2.10MB RMB

3 6.29MB 14.7MB 8.39MB EBT

4 14.7MB 23.1MB 8.39MB RBL

5 23.1MB 27.3MB 4.19MB DFI

6 27.3MB 31.5MB 4.19MB TOS

7 31.5MB 32.5MB 1.05MB EKS

8 32.5MB 34.6MB 2.10MB FB

9 34.6MB 35.7MB 1.05MB WB0

10 35.7MB 39.8MB 4.19MB MSC

11 39.8MB 67.1MB 27.3MB USP

12 67.1MB 71.3MB 4.19MB MDM

13 71.3MB 75.5MB 4.19MB MLO

14 75.5MB 79.7MB 4.19MB MRO

15 79.7MB 101MB 21.0MB BKB

16 101MB 117MB 16.8MB ext4 PST

17 117MB 126MB 8.39MB MDA

18 126MB 134MB 8.39MB LOG

19 134MB 138MB 4.19MB MRW

20 138MB 168MB 29.4MB BKC

21 168MB 201MB 33.6MB BKD

22 201MB 222MB 21.0MB LNX

23 222MB 243MB 21.0MB LN1

24 243MB 264MB 21.0MB SOS

25 264MB 268MB 4.19MB BKE

26 268MB 940MB 671MB ext4 APP

27 940MB 1611MB 671MB ext4 AP1

28 1611MB 2013MB 403MB ext4 CAC

29 2013MB 62535MB 60522MB ext4 UDA
[Mi 3 General] vamsi2710:
How can I create a flash FILE TO Reparation MI3W 16GB, WITH 2GB or 2.5GB OF SYSTEM memory, REMAINING FOR CACHE AND USER DATA .

---------- Post added at 09:12 PM ---------- Previous post was at 09:06 PM ----------

How can I create a flash FILE TO Reparation MI3W 16GB, WITH 2GB OF SYSTEM memory, REMAINING FOR CACHE AND USER DATA .

---------- Post added at 09:18 PM ---------- Previous post was at 09:12 PM ----------

How can I create a flash FILE TO Reparation MI3W 16GB, WITH 2or2.5GB OF SYSTEM memory, REMAINING FOR CACHE AND USER DATA .
[Mi 3 General] psshirke.shirke@gmail.com:
I need too, pls help.
[Mi 3 General] weiziahahaha:
Parted / dev / block / mmcblk0 can not be opened in recovery mode.
[Mi 3 General] xandaodobraiz:
Can I do this guide in any Xiaomi? Like Mi 9T?
[Mi 3 General] ancola66:
I confirm that this method works on my mi4 :good:
[Mi 3 General] (M)iPhone:
Thanks, but I am still not able to flash PA Gapps(mini)... Still says Insufficient storage :/
[Mi 3 General] ancola66:
I have another question :

When the system updates via OTA, The new version rom will default system 1 install and Mi recovery will replace the current recovery ( CWM, TWRP)?
[Mi 3 General] i snort flour:
Do you have a mi3 or mi4? This may help users or devs solve the issue. I have a mi3w and I was able to install temasek lollipop along with pagapps stock without any problems
[Mi 3 General] tongueinamow:
i don't know why but this seems not work on my mi3w..

flash it as instructed but still my /system is 629MB.

:confused::confused::confused::confused::confused:
[Mi 3 General] ancola66:
Disable True Dual Boot before, Yes or no ?
[Mi 3 General] tongueinamow:
already disabled but no avail.

in fact i tried also with TWRP but same result. FAILED..
[Mi 3 General] (M)iPhone:
I have a Mi3W and using Lollipop here - http://xdaforums.com/xiaomi-mi-3/development/cancrocm-cyanogenmod-12-cancro-t2988593. I am not using Temasek Lollipop because it has a lot of bugs... I am thinking of moving to either MIUI 6 or any AOSP 4.4.4 :confused:
[Mi 3 General] i snort flour:
Weird it shouldn't matter what rom your flashing as this is a matter of insufficient space. I'm not sure whats going on with yours maybe try downloading a program such as diskinfo and check to make sure it repartitioned correctly
[Mi 3 General] ancola66:
By your device System 1 or System 2 is active ?

This method is to reduce the size of the systems 2, so you must set the system 1 is active.
[Mi 3 General] intimateangel:
Resize modem1 and system1 to increase space in data?

Is it possible to resize modem1 and system1 to increase space in userdata?

Will that prove to be ineffective?

Anybody with knowledge of this please give an insight.

I think maybe due to the location of the partitions it may not be possible or am I wrong?
[Mi 3 General] (M)iPhone:
DiskInfo shows that everything is fine... 1.2GB to system and 4MB to system1(According to the flashable zip given by audahadi) Of which 710MB is used and 564MB is free... That should be more than enough for a gapps package of a measly 200+MB.
[Mi 3 General] deepesh.tickoo:
Try this, format both system1, system 2, data, cache.

Install repartition zip by [MENTION=284461]audi[/MENTION]hadi.

Again format sys1, sys 2, data and cache.

Check partition sizes.

If correct, flash ROM, flash Gapps and report.

And do try latest temasek (4th feb build i guess) with PA gapps.
[Mi 3 General] vishal1404:
okay after repartitioning if i wish to have both system back seperately what should i do???
[Mi 3 General] ancola66:
Read here :

http://xdaforums.com/showpost.php?p=58602703&postcount=32
[Mi 3 General] (M)iPhone:
Did all of that... Still same old insufficient storage... Maybe its a problem with the gapps package itself. Didn't have the time to try Temasek.
[Mi 3 General] audahadi:
Script only work with old zip format.. New zip format will revert back to old partition size. Just noticed.
[Mi 3 General] heisenberg12:
i did everything after that in diskinfo system is still at 629mb..what now?
[Mi 3 General] (M)iPhone:
Sorry, didn't get you. What are you saying?
[Mi 3 General] tongueinamow:
if this will be the case, then that explains why i still have 629MB in /system1

no matter how i flash the zip. (just my speculation though, since i don't have

any knowledge in programming. i just flash the zip.. :p :p :p)

will you be kind sir to re-upload the script????

thanks.

edit1: tried to unzip and check the script using notepad and

saw that it should have made my /system1 1.2GB. re-tried and

still failed. i quit. but still thanks to OP. keep it up.

edit2: if it matters, i am currently running CWM r11 and BlissPop v2.0
[Mi 3 General] zard:
[MENTION=260223]ari[/MENTION]920629 & [MENTION=4898058]audahadi[/MENTION],

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.
[Mi 3 General] tongueinamow:
have you tried flashing a ROM through fastboot?
[Mi 3 General] zard:
Screen has no display and buttons are not lighted. Can't get into fastboot and issuing fastboot commands got be error of no device.
[Mi 3 General] audahadi:
Fastboot tour only hope.. Power+volume down button.. If not happen anything.. Most highly end up being expensive paper weight. Connect USB nothing happen?
[Mi 3 General] zard:
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.
[Mi 3 General] Justinwee95:
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 :/
[Mi 3 General] audahadi:
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...
[Mi 3 General] zard:
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.
[Mi 3 General] i snort flour:
You could try following this link also hope it helps

http://www.technobuzz.net/flash-miui-fastboot-rom-dead-bricked-mi3-redmi-1s/
[Mi 3 General] wajeehuzkhan:
Didnt worked

though did tried but it didnt worked
[Mi 3 General] audahadi:
Does not work if you flash rom with new zip format. Example lie CM12, Blisspop and etc that use "system.new.dat"
[Mi 3 General] i snort flour:
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
[Mi 3 General] zard:
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
[Mi 3 General] adsim:
deleted
[Mi 3 General] audahadi:
Open a thread so others with same situation know what to do