I am using the Ubuntu 20.04 server version for Raspberry Pi 3. Sometimes I do full ISO image backups of my SD Card, by first shrinking the root partition of the SD card using "gparted" on another box. Then, I backup using ApplePiBaker on MacOS, which gives me a full ISO of my sd card.
Usually, after inserting the SD card with the shrunken root partition back into my raspberry pi, Ubuntu 20.04 Server will automatically expand the root partition to the full size of the disk so there is no extra space left on the sd Card. Apparently, the program that Ubuntu Server uses for this process is "growpart" which is apparently part of the "cloud-guest-utils" package.
THE PROBLEM, is that NOW, my sd card no longer expands it's root filesystem automatically after shrinking it with "gparted". I am immediately out of space on my SD card and the only way to get it working again is to expand the root partition of the SD card on an external box using "gparted" again.
MY QUESTION, is how do you start debugging, and fix, Ubuntu Server 20.04 not automatically expanding my root partition when booting up from my SD Card? Where does the problem lay? Where & how can I find and fix it? Any help is highly appreciated!
Thanks!