fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

NOT a neat little tool (read the followups): manpages.debian.org/bookworm/c

70% of my fdisk usage is for this exact purpose, growpart is a NOT faster and safer approach

manpages.debian.orggrowpart(1) — cloud-guest-utils — Debian bookworm — Debian Manpages
Peter van Dijk

I have now read the growpart source code. Please Do Not Use This Tool. Use parted or cfdisk instead.

@habbie Now I've gotta know what you found. 🤣

@dalias @habbie Let's just say a support case didn't go as planned. At least the restore code worked as intended... AFAICS the code doesn't take extended partitions into account? At all?

@TobiX @dalias I received this paste from a user on (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.

@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!