A20LIME2, change partion size on android

Started by yoann_q, September 25, 2015, 08:08:25 AM

Previous topic - Next topic

yoann_q

hi,
with the LIME2 pre built image (SD Card) , the system partition is small (512mo) so it restrict the number of application we can install.
is there a trick to change the partition size ? , i try gparted but it fail , so i need to generate a new image ?
can i use the A20 micro SDK avalaible here ? https://www.olimex.com/wiki/A20-OLinuXino-MICRO
thank you

frederic_alexandre

Hi,
when you say that you faild to resize your partition with gparted, what do you mean ?
Is there an error given by gparted or nothing happen ?
BR,

JohnS

Worst case you can take the image you have as a file, mount via loopback, make a new (empty) loopback image with the partition(s) you want, then mount it loopback and copy files across.  Finally dd it to SD card.

No need for gparted

John

Pawel_W

https://drive.google.com/file/d/0B1O7sjguEoffVFY4QnZXX2RkbVE/view?usp=sharing
Image of an 8GB microSD with Android 4.2.2 for OLinuXino A20 Lime2.
There is 5 GB free space for apps available.
System partition has been expanded twice to 1 GB.
To copy uncompressed image to microSD issue command:
dd if=Android_A20_8GB.img of=/dev/sdX
or use Win32 Disk Imager.
Partition FAT32 sdcard has capacity 260MB , but you can resize it if you have a 16GB or larger microSD card by the command:
sfdisk -f -N1 /dev/sdX
then format it by the command:
mkfs.vfat /dev/sdX

yoann_q

thanks pawel, i'll test tomorrow
john, the partition of the are not understood by gparted, i don't know why
see the screen below (partition list bellow)


Device          Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       4497408 15523839 11026432  5,3G  b W95 FAT32
/dev/mmcblk0p2  *      73728   106495    32768   16M  6 FAT16
/dev/mmcblk0p3             1  4497408  4497408  2,1G 85 Linux extended
/dev/mmcblk0p5        106496   139263    32768   16M 83 Linux
/dev/mmcblk0p6        139264   172031    32768   16M 83 Linux
/dev/mmcblk0p7        172032  1482751  1310720  640M 83 Linux
/dev/mmcblk0p8       1482752  2531327  1048576  512M 83 Linux
/dev/mmcblk0p9       2531328  2564095    32768   16M 83 Linux
/dev/mmcblk0p10      2564096  2629631    65536   32M 83 Linux
/dev/mmcblk0p11      2629632  3940351  1310720  640M 83 Linux
/dev/mmcblk0p12      3940352  4464639   524288  256M 83 Linux
/dev/mmcblk0p13      4464640  4497407    32768   16M 83 Linux


JohnS

As I posted, you do not need to use gparted.

John

Pawel_W

I simply dumped all affected partitions from microSD to files, used sfdisk to edit partition table manually in sector mode and then copied partitions back and resized them to match the new partition sizes.

Sfdisk is not easy to use, you really need to RTFM, know what you are doing and be able to type (or paste from bc) calculated sector numbers flawlessly.

yoann_q

pawel , your image works thanks for your advise, , i currently use fdisk, i'll try sfdisk now ,
sorry john , my comment on gparded was about frederic message