Mi2S - extending size of storage partition


Done after 2 days of focus reading hhhh ... your tutorial is master ... I really like it.

Can you explain me which values you prompted to do this partition? i would have 8GB for app too! (i have a 32 gb mi2s as you) :)
 
Last edited:
I tried this but it's not easily possible for different reasons.
However if you use the CM gapps you may not need to resize the partition.(I didn't try it but they are 80MB only)
I confirm that with the CM gapps you don't need to extend it.
Tried with cm11, aosp and mokee roms.
 
Can you explain me which values you prompted to do this partition? i would have 8GB for app too! (i have a 32 gb mi2s like you) :)


Sorry for the late reply, HYG

Code:
26      2419MB  10500MB  8081MB  ext4        userdata
27      10500MB  31269MB  20769MB  ext4        storage
 
  • Like
Reactions: bobanbg
help me master :(

My Mi2s cannot flash miflash, and can't wipe data, update.zip is corrupted, stuck on mi logo. and my recovery is not CWM :(

but mi recovery.
 

Attachments

  • partition table.jpg
    partition table.jpg
    68.2 KB · Views: 518
you may have messed up your partition table. If you dunno how to manually fix it you can restore everything in dload mode with the tweezer-battery-shortcut
 
you may have messed up your partition table. If you dunno how to manually fix it you can restore everything in dload mode with the tweezer-battery-shortcut
can you explain me ? :(
what is dload mode?
Can you teach me step by step ,micha?
 
Hi, I have updated little bit the procedure to make it more user friendly + added 1 hint to get even more Storage space :)
 
Last edited:
I know but you can manually enter dload mode with the shortcut described in this thread.
When your phone is in dload mode miflash recreates the partition table
 
I know but you can manually enter dload mode with the shortcut described in this thread.
When your phone is in dload mode miflash recreates the partition table
woww,,, amazing. :D
Thank you Master Micha. You've saved my life.
My M2S have risen from the grave now. : D
 
After this I can not write anything in filemanager, what did I do wrong?

Logs in CWM say this:

I: Checking for extendedcommand...
I: Skipping execution of extendedcommand, file not found...
I: Can't partition non-vfat: ext4
I: Can't format unknown volume: /external_sd
I: Can't format unknown volume: /emmc

Anyone knows what I did wrong or how I could fix it? I feel terrible because I don't want my phone to break... It costed me alot of money. :(

Thanks in advance for anyone thats reading it or has an idea how to fix it.
 
  • Like
Reactions: Beyaz
for some reason one partition wasn't formatted correctly.
can you post the output of this command please?(within CWM via adb)
"parted -s /dev/block/mmcblk0 print"

And btw it's nearly impossible to brick this phone.
 
for some reason one partition wasn't formatted correctly.
can you post the output of this command please?(within CWM via adb)
"parted -s /dev/block/mmcblk0 print"

And btw it's nearly impossible to brick this phone.

http://gyazo.com/db2e6cd9c56e02f59df76929a3568b43

I had to make a new account as I got locked out of my old one... I am not receiving the messages.

It looks alright as far as I can see?

EDIT: Fixed, followed all steps again and installed MIUI again, dunno what I did but its working. Thanks M1cha for suggesting! :D

Greetings, @alt_mimang.
 
Last edited:
Could someone help me on the parted command. It like it doesn't do something instead of giving me the partition table. Screenshot here. What did I do wrong?


Edit: When I try "adb shell parted -s /dev/block/mmcblk0 print"
this give me "Error: Error opening /dev/block/mmcblk0: Permission denied".
I looked (in system/bin) parted file's ownership (root:root) and permissions (777). Don't know what to do more than that..

Edit: PLEASE FORGET all that I wrote! I tried again and for now, it works. And what I meant before is that I couldn't see that I wrote the first time after tipping "parted" because of many lags, bugs, virus, trojans, ads, spiders, dust and others stranges inhabitants in/on my pc :D
 

Attachments

  • adb.jpg
    adb.jpg
    43 KB · Views: 495
Last edited:
Could someone help me on the parted command. It like it doesn't do something instead of giving me the partition table. Screenshot here. What did I do wrong?


Edit: When I try "adb shell parted -s /dev/block/mmcblk0 print"
this give me "Error: Error opening /dev/block/mmcblk0: Permission denied".
I looked (in system/bin) parted file's ownership (root:root) and permissions (777). Don't know what to do more than that..

Edit: PLEASE FORGET all that I wrote! I tried again and for now, it works. And what I meant before is that I couldn't see that I wrote the first time after tipping "parted" because of many lags, bugs, virus, trojans, ads, spiders, dust and others stranges inhabitants in/on my pc :D

Some kind advice, reinstall your pc. Then make use of a virusscanner and be careful with whatever you do.
Or maybe stop visiting those weird porn sites :p
 
Some kind advice, reinstall your pc. Then make use of a virusscanner and be careful with whatever you do.
Or maybe stop visiting those weird porn sites :p
shouldn't browsers be secure enough that websites can't do anything bad? ;)
anyway it's always a good idea to stop visiting weird sites :D
 
shouldn't browsers be secure enough that websites can't do anything bad? ;)
anyway it's always a good idea to stop visiting weird sites :D
Lol ^^
Even if they were secure enough, people would still be stupid enough to get infected :p
 
via the download link to the file onemilliondollar.exe? :D
Yes indeed they will haha.. When I sometimes take a look at computers of friends of mine... Lol... People even have fake virusscanners on their pc which infect the pc instead of protecting them hehe.
 
Haha! My roommate ils not the kind of personne to overlook certains activities that he practices with his computer.. :) I do with waiting to receive my new one. Thznks for Your great interest about this subject!
 
  • Like
Reactions: RobinHood00
after changing the partitions, i have no write access to sdcard ;-(
it seems a permission problem, but i'm unable to find the bug. sdcard is mounted, i can read everything, but no write access.

update1: i also can delete files, but don't create
factory reset didn't solve the problem.

update2: recreate alle partitions from 23-27 + reboot recovery + fresh install last CM11 from micha via sideload
if i try to create a file on sdcard with filemanager i got the message "Dieser Vorgang benötigt höhere Berechtigung"
a simple "mkdir" via terminal gives only "permission denied"

someone have a idea?

Code:
parted -s /dev/block/mmcblk0 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  899MB  563MB  ext4        system
24      899MB  900MB  1000kB  ext2        system1
25      900MB  1300MB  400MB  ext4        cache
26      1300MB  2800MB  1500MB  ext4        userdata
27      2800MB  31.3GB  28.5GB  ext4        storage
 
Last edited:
after changing the partitions, i have no write access to sdcard ;-(
it seems a permission problem, but i'm unable to find the bug. sdcard is mounted, i can read everything, but no write access.

update1: i also can delete files, but don't create
factory reset didn't solve the problem.

update2: recreate alle partitions from 23-27 + reboot recovery + fresh install last CM11 from micha via sideload
if i try to create a file on sdcard with filemanager i got the message "Dieser Vorgang benötigt höhere Berechtigung"
a simple "mkdir" via terminal gives only "permission denied"

someone have a idea?

Code:
parted -s /dev/block/mmcblk0 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  899MB  563MB  ext4        system
24      899MB  900MB  1000kB  ext2        system1
25      900MB  1300MB  400MB  ext4        cache
26      1300MB  2800MB  1500MB  ext4        userdata
27      2800MB  31.3GB  28.5GB  ext4        storage
Curiously I'm able to do almost anything since I've partitionned my phone with the help of this thread but only symlinks aren't created on /storage/sdcard0. And when created through /storage_int, they don't appear in both. Could this be also related to what you got?