This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to change the size of partitions?

Hi,
I want to change the size of the partitions such as boot, filesystem and data. How can i do that? What infomation that i need to change?
  • Hello,

    To do that, you need to open the script used to create the SD card, "mkmmc-android.sh".
    On lines 73 to 77, each "echo" is used to describe a partition for sfdisk to write, respectively "boot", "rootfs", "usrdata" and "data".

    To change the size, you need to change the number or expression after the first comma. Be careful, they are described as cylinders.
    You can see the first one is 9 for the "boot" partition, which correspond to around 70MB.
    The second and third one, for "rootfs" and "usrdata" partitions take both of them a quarter of your SD card ($CYLINDERS / 4).
    The last one, for "data", as nothing, meaning it will take all the remaining space.

  • Hi,
    Thank you for your answer!