How to change /system and /data partition sizes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change /system and /data partition sizes

Jump to solution
785 Views
krzysztofsza_ac
Contributor III

Hello.

On our VAR-SOM-MX6Q (512mb nand flash version) we've installed Android KK4.4.2. Unfortunatelly, there is not much data storage available.

root@md_70:/data # df

Filesystem               Size     Used     Free   Blksize

/dev                   385.8M   136.0K   385.7M   4096

/sys/fs/cgroup         385.8M    12.0K   385.8M   4096

/mnt/secure            385.8M     0.0K   385.8M   4096

/mnt/asec              385.8M     0.0K   385.8M   4096

/mnt/obb               385.8M     0.0K   385.8M   4096

/mnt/shm              1024.0K     0.0K  1024.0K   4096

/system                321.9M   308.9M    13.0M   4096

/data                   66.6M    29.3M    37.3M   4096

/cache                   7.6M    20.0K     7.6M   4096

/device                  7.6M    20.0K     7.6M   4096

/mnt/shell/emulated     66.6M    29.3M    37.3M   4096

Is there any possibility to change partitions layout that /system will occupy less space (and I will remove some apks/odex files before creating image) and that way for /data there will be more space available? I'm using nand-recovery.sh script from Yocto SD Card to flash module. I see there you're using nandwrite command with proper /dev/mtdX. I suppose I need to change mount information about mtd devices and how they are formatted, but can't find place where I can do this.

Labels (2)
0 Kudos
1 Solution
595 Views
krzysztofsza_ac
Contributor III

Well, that was pretty easy - just change sizes in ubinize.ini and remove packages from system/app and system/priv-app that system would fit new partition size.

View solution in original post

0 Kudos
1 Reply
596 Views
krzysztofsza_ac
Contributor III

Well, that was pretty easy - just change sizes in ubinize.ini and remove packages from system/app and system/priv-app that system would fit new partition size.

0 Kudos