AnsweredAssumed Answered

How to change /system and /data partition sizes

Question asked by Krzysztof Szałach on May 7, 2015
Latest reply on May 21, 2015 by Krzysztof Szałach

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.

Outcomes