Score:0

Automatic expansion of root partition using growpart on Ubuntu Server 20.04 seems to be broken. How to fix?

us flag

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!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.