Closed cmonty14 closed 4 years ago
Solved.
For those who are interested in the solution, here are the steps I executed:
1. fdisk 2020-08-20-raspios-buster-armhf-lite.img
2. Delete parition 2
3. Create new partition with starting sector 532480 and ending sector proposed by fdisk
4. kpartx -a -s -v 2020-08-20-raspios-buster-armhf-lite.img
5. e2fsck -f /dev/mapper/loop<n>p2
6. resize2fs /dev/mapper/loop<n>p2
7. kpartx -d 2020-08-20-raspios-buster-armhf-lite.img
Hi,
the emulated system shows root filesystem with 1.5GB and 92% used:
In order to increase the filesystem I resize the image using QEMU tools: qemu-img resize 2020-08-20-raspios-buster-armhf-lite.img +10G
The output of fdisk -l confirms the new size, however the partition size remains 1.5GB.
Can you please advise how to resize the image?
THX