Cubieboard2 – Lubundu – Extending NAND from 2GB to 4GB

When I install new Lubuntu NAND image to my new Cubieboard2 I had only 2GB of space out of 4GB available.

I followed this forum to expand the filesystem to 4GB.

sudo nand-part

In my case I used this nand-part command:

sudo nand-part -f a20 /dev/nand 32768 'bootloader 131072' 'rootfs 7569408'

the number in bootloader is the same as previous partition size.
The number in rootfs is the sum of previous partition size of partition 2 and partition 3 that we wanted to merge.

After the reboot, the df -h before and after the resize:

Note:
You can also try gparted (sudo apt-get install gparted) to allocate free space, but I think that gparted needs unmounted partition to work with it and we have our nand mounted so I haven’t even tried it. Leave a note if there is easier way to extend nand partition.


Related Posts

I2C on Cubieboard with Lubuntu

I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface so I wanted to enable I2C also[…]

Continue reading ...

Enable UART on Cubieboard with Lubuntu

I wanted to connect my cubieboard with lubuntu to my arduino via serial communication. For that I had to enable a UART and connect pins to my arduino (only RX/TX is needed). I have arduino[…]

Continue reading ...

Mount SATA drive in Cubieboard with Lubuntu

The main advantage of cubieboard is it’s SATA connector. I have old HDD from notebook, so I wanted to use it as a media server. This post has 3 parts related to HDD connected to[…]

Continue reading ...