Increase GSI System Image size [Guide]

fawazahmed0

Senior Member
Jan 31, 2015
305
205
63
All praise and All thanks to God:)
Sometimes you are not able to install gapps or other zips from TWRP due to small size of system image.
Here are the steps to increase/decrease the system image size

1. Boot to TWRP and connect your phone through usb cable.

2. unmount system from TWRP

3. commands to execute:
adb shell
e2fsck -f /dev/block/by-name/system
resize2fs /dev/block/by-name/system 4G (Increasing size of system image size to 4gb, you can use any number you want, for example 2500M for 2500mb)

4. Mount the system in TWRP , now you have 4gb system image. check it by:
df system

5. Try installing the gapps or zip again. Done


Refer: https://linux.die.net/man/8/resize2fs
 
Last edited:
  • Like
Reactions: TBM 13

matibu06

Senior Member
Jan 26, 2013
68
6
8
Dont work on Motorola One Power

chef:/ # resize2fs /dev/block/by-name/system_a 3500M
resize2fs 1.43.3 (04-Sep-2016)
The containing partition (or device) is only 655360 (4k) blocks.
You requested a new size of 896000 blocks.