Mi2S - extending size of storage partition


Hi.

Where do you get "partition_tools.zip"?

And I'm not able to get root access with adb in recovery mode, then I can't even use the adb shell option.

I can use it booting the device in normal mode, and because I have used a tool called adb insecure, but I guess I won't be able to change partitions without going to the recovery mode.

regards
 
Hello.

Some other sites say to use mke2fs .
Is it better or worse than the commands you have used?
 
Hello, so I followed this guide on my 32GB Mi2s, but I cannot restore the backup in CWM v6.0.5.0, because
error mounting /storage/sdcard0
this is log from CWM
IeSTtNq.jpg

this is my partition layout
Code:
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: MMC SEM32G (sd/mmc)
Disk /dev/block/mmcblk0: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End    Size    File system  Name      Flags
1      17.4kB  89.1MB  89.1MB  fat16        modem
2      89.1MB  178MB  89.1MB  fat16        modem1
3      178MB  179MB  524kB                sbl1
4      179MB  179MB  524kB                sbl2
5      179MB  180MB  1049kB              sbl3
6      180MB  181MB  1049kB              rpm
7      181MB  182MB  1049kB              tz
8      182MB  183MB  524kB                DDR
9      183MB  187MB  4194kB              aboot
10      187MB  188MB  1049kB              misc
11      188MB  191MB  2990kB              logo
12      191MB  192MB  799kB                m9kefs1
13      192MB  193MB  799kB                m9kefs2
14      193MB  193MB  1024B                m9kefsc
15      193MB  201MB  8501kB              bk1
16      201MB  202MB  799kB                m9kefs3
17      202MB  268MB  66.3MB              bk2
18      268MB  284MB  15.7MB              boot
19      284MB  300MB  15.7MB              boot1
20      300MB  316MB  15.7MB              recovery
21      316MB  327MB  11.5MB              bk3
22      327MB  336MB  8389kB  ext4        persist
23      336MB  872MB  537MB  ext4        system
24      872MB  1409MB  537MB  ext4        system1
25      1409MB  1812MB  403MB  ext4        cache
26      1812MB  11.0GB  9216MB  ext4        userdata
27      11.0GB  31.3GB  20.2GB  ext3        storage

OIC maybe because storage is type ext3? How did that happen :-]
 
LOL so I fixed that. Somebody can delete my previous post :)
Just ran the last commands again and it became ext4 and then I could restore the backup of /data and it seems my phone is now running as before but with 9GB of system storage ready to hold those crazy big google apps and such things :)
 
Last edited:
HELP...I followed the steps, but for me i needed to extend the system partition ( as my system got to 1% left and was not able to update or download any app).
According to the steps above, I did remove to the 23-27 (rm 23, rm 24 ...), and then I assigned 23-27 different sizes, and not after print I have this ( I have 32GB version):
Model: MMC SEM32G (sd/mmc)
Disk /dev/block/mmcblk0: 31269MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 0.02MB 89.1MB 89.1MB fat16 modem
2 89.1MB 178MB 89.1MB fat16 modem1
3 178MB 179MB 0.52MB sbl1
4 179MB 179MB 0.52MB sbl2
5 179MB 180MB 1.05MB sbl3
6 180MB 181MB 1.05MB rpm
7 181MB 182MB 1.05MB tz
8 182MB 183MB 0.52MB DDR
9 183MB 187MB 4.19MB aboot
10 187MB 188MB 1.05MB misc
11 188MB 191MB 2.99MB logo
12 191MB 192MB 0.80MB m9kefs1
13 192MB 193MB 0.80MB m9kefs2
14 193MB 193MB 0.00MB m9kefsc
15 193MB 201MB 8.50MB bk1
16 201MB 202MB 0.80MB m9kefs3
17 202MB 268MB 66.3MB bk2
18 268MB 284MB 15.7MB boot
19 284MB 300MB 15.7MB boot1
20 300MB 316MB 15.7MB recovery
21 316MB 327MB 11.5MB bk3
22 327MB 336MB 8.39MB ext4 persist
23 336MB 1409MB 1073MB ext4 system
24 1409MB 2483MB 1074MB ext4 system1
25 2483MB 2886MB 403MB ext4 cache
26 2886MB 6644MB 3758MB ext4 userdata
27 6644MB 31269MB 24625MB ext4 storage

I did wipe dalvik cache, wipe data, wipe cache, and reboot to system from CWM, but no the phone is stuck on the MI icon..

How can I resolve this? I hope I did not brick the phone. I did before the change backup, and also copied all internal storage to my PC.

Please assist me, as I am stuck...
 
Which guide are you talking about? You should have removed just 26 and 27! What is the point of removing 23 and 24?
 
can someone explain to me why the mi2s has partitions setup the way it is? i only ask because i looked at my friend's mi3 as well as my mipad, and both look to have more of a unified storage layout. is it because mi2s is android 4.1 and mi3/mipad are 4.4?
 
can someone explain to me why the mi2s has partitions setup the way it is? i only ask because i looked at my friend's mi3 as well as my mipad, and both look to have more of a unified storage layout. is it because mi2s is android 4.1 and mi3/mipad are 4.4?
Yes.
And also because the MIUI 6 4.4.4 update is a fake update.
 
The whole point is to change the size of the system partitions, or so I thought :)
The whole point of this thread is very different - to change size of the "system storage" and "internal storage". That does not mean the two partitions where system resides. I think you are just confused... There is no point in changing the partitions for the OS, because the two systems fit there just right.
 
Fake update? Ehh what?

Sent from my MI 4W
Same internal stuff of MIUI V5 ROM, that's why they called "Special Edition". The MIUI 6 Kit Kat based for Mi2/S is like a Custom ROM, with all the tweaks needed to run Kit Kat. No developer here can use some source from it, because there aren't. Or better, they are the same old stuff.
 
  • Like
Reactions: jauling and mehdoux
Hey Fortinho, you're the closest person to have replied about unified storage on mi2s. Any idea what is blocking it on mi2s? From what I understand, this is a "feature" that should be available since Android 4.0!
 
M1cha has an idea on how to implement it in his port of CM12 for Mi2(s). But since he's very busy making the basic functions work, such as working sound, microphone and similar, unified storage will probably only be looked after stabilisation of CM12. I'm also interested, so I keep an eye on all relevant threads :)
 
  • Like
Reactions: jauling
Hey Fortinho, you're the closest person to have replied about unified storage on mi2s. Any idea what is blocking it on mi2s? From what I understand, this is a "feature" that should be available since Android 4.0!
Is something related to the manifacturer (thank you Xiaomi) that decided to not change that stuff, I guess. Is not only about Android version, otherwise we should have unified storage, but is about partition table and ROM compatibility.

Don't want to give useless "hopes", but mabye with G4A and some M1cha's magic we could have something.
 
  • Like
Reactions: jauling
Thanks @Fortinho

I recently also came across this thread about Oppo Find 7 getting unified storage... which exacerbated my jealousy lol.

Is something related to the manifacturer (thank you Xiaomi) that decided to not change that stuff, I guess. Is not only about Android version, otherwise we should have unified storage, but is about partition table and ROM compatibility.

Don't want to give useless "hopes", but mabye with G4A and some M1cha's magic we could have something.
 
  • Like
Reactions: Fortinho
Thanks @Fortinho

I recently also came across this thread about Oppo Find 7 getting unified storage... which exacerbated my jealousy lol.
yea the manufacturer can easily change it but for CyanogenMod we don't want to expect that users change their partition table and kill compatibility with all rom's but one.
 
  • Like
Reactions: ancamon
How I can reduce the system 2 partition? I have a 16gb Mi2S. Someone can post the repartition.sh or a string?
 
Is there a way to use this script without using recovery? My USB port broke, and I use ADB over WiFi when I need it, but I'm helpless if I have to use it through CWM...

Maybe there's a way to make flashable zip with the script to automatically repartition system2 and data to a certain size? If there is I would really appreciate it someone explained me how to do it...