NOT a neat little tool (read the followups): https://manpages.debian.org/bookworm/cloud-guest-utils/growpart.1.en.html
70% of my fdisk usage is for this exact purpose, growpart is a NOT faster and safer approach
I have now read the growpart source code. Please Do Not Use This Tool. Use parted or cfdisk instead.
@habbie true. I also recently learned that `cfdisk` now has a "resize" option, so you don't have to do the "delete old part, make sure to create the new one at the very same starting block" in fdisk anymore for the more complicated usecases.
@habbie oh, nice! I tend to use parted for this as it’s slightly smarter about it but still a pretty scary method. Gonna use this from now on!
@marlies lees vooral m'n volgende toot even
@habbie oh fffffffuuuuu, thanks!
@habbie oh joy het is bash met slechte error handling en hardcoded ‘LANG=C’ om non-machine output te kunnen parsen aaaaaaaaaaaaa
@marlies nou is LANG=C vaak een goed idee maar hier zijn de redenen verkeerd :D
@habbie What's wrong with it?
@habbie Now I've gotta know what you found.
@TobiX @dalias I received this paste from a user on #debian (where TobiX got that context too) that used the tool. I apologise for posting it as a screenshot, but the actual URL will expire soon. Indeed, you see it deleting partitions 1/2/5 and then attempting to create 1/2/3. Then it uses dd to restore! All of this from a shell script. The code itself smells roughly like this paste/picture does.
@habbie bug reports or didn't happen.
@muelli that's not how reality works, really ;) but I might file something, yes
@habbie if it is really that bad, you might want to edit your initial post ;)
@jeffpc will do that now, forgot about that option!