maximize image

Started by mimi1962, January 26, 2015, 12:33:17 AM

Previous topic - Next topic

mimi1962

hello

i want maximize to 8g the  img A20-OLinuXino-Lime Debian with kernel 3.4.90+ release 10.

How have to I make?

Thank you.

Michel

progmetalbg

If you feel comfortable using Linux command line tools:


As root run:

fdisk /dev/mmcblk0

Delete the second partition /dev/mmcblk0p2:
d
2

Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk:
n
p
2
enter
enter

Save and exit fdisk:
w

Now reboot. Once rebooted:
resize2fs /dev/mmcblk0p2


Note that commands above are valid for a 2 partition SD card, where /dev/mmcblk0p1 is /boot and /dev/mmcblk0p2 is / (root). If your system is a single partition only (/boot + /) mmcblk0p2 should be resplaced with mmcblk0p1. I don't use Olimex Debian image but I suppose there are 2 partitions in it and the second one is used for the root filesystem.

mimi1962