I’m using Banana Pi M5 and I installed the Ubuntu 20.04 image to eMMC on BPI. After installing some stuff I got the error message, “no space left”. I was confused because BPI M5 has 16 GB of space. After running df -h I’ve seen, that the system partition is only 6,8 GB. I suppose that while copying image to eMMC using bpi-copy, the tool made the mmcblk0p2 partition only 6,8 GB because the image has this size. What can I do, to get the 16 GB of eMMC? Is there a command to extend the partition?
I had the same issue with BPI-M5 and Raspios lite:
mmcblk0 179:0 0 14.6G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 2.5G 0 part /
Fdisk said: "Unpartitioned space /dev/mmcblk0: 11.77 GiB"
I solved the problem this way:
apt-get install cloud-utils
growpart /dev/mmcblk0 2
resize2fs /dev/mmcblk0p2