SD Card Rootfs Resize

Hi, I’ve successfully flashed a527_cubie_a5e_bullseye_beta_20250303_raw_disk image to an SD card and booted from it.

However, the base partition size of the root file system is merely 7GB, and I’d like to increase it to fill the entire SD card. I’ve tried using gparted, but have failed to get it to boot after any change.

The tools complain about two things:

  1. GPT needs to be resized to fit the device
  2. The backup table is not at the end

Letting gparted fix either of these makes the SD card unbootable, even if I don’t change any of the partitions themselves. I’m at a bit of a loss on what to do, and reflashing to try again takes quite a while. Any help would be appreciated!

I can’t remember exactly how I did mine, but I made some notes, so its something like below, but don’t quote me on this, I only made the notes.

parted /dev/mmcblk0
resizepart 4 100%
echo 1 > /sys/block/mmcblk0/device/rescan
reboot

my cubie is sitting in the cupboard until kernel 6.16 is released.

gparted does pretty much the same as what you listed there. Just to be sure I now did the same thing with parted, answering Fix for both questions, and it is now unbootable again.

After rebooting, it should automatically resize on boot, which may take a little time to process.

what output did you see on the monitor, any errors ?

I don’t get any output and the led only ever stays green, it never turns blue like it does when I have a fresh flash.