growpart(1)
π NAME π
okay so growpart(1) is literally the tool for when your partition is giving "too small" and you want it to take up all the room it can. It's from the cloud-utils crew, and the job is to extend a partition in a partition table to fill available space π
β¨ SYNOPSIS β¨
growpart [OPTIONS] DISK PARTITION-NUMBER
growpart partition
rewrite partition table so that partition takes up all the space it
can
options:
-h | --help print Usage an exit
--fudge F if part could be resized, but change would be
less than 'F', do not resize (default: 20480)
-N | --dry-run only report what would be done, show new 'sfdisk
-d'
-v | --verbose increase verbosity / debug
π OPTIONS π
-h,--helpβ pull up the usage info and bounce out π-N,--dry-runβ just tell you what would happen, no actual changes. very safe, very chill π§--fudge COUNTβ only touch the partition table if the partition would grow by MORE thanCOUNTsectors (512 bytes each). The default is20480, which means nothing changes unless you'd gain more than 10M of space. so it's not gonna bother you over tiny crumbs π-v,--verboseβ give more info to stderr. spill all the tea π«Ά
π¦ ARGUMENTS π¦
DISKβ the device or disk image you want to work on πPARTITION-NUMBERβ which partition to resize, counting from 1 (so the first one is1, not0, bestie) πΈ
π DESCRIPTION π
okay so this rewrites the partition table on a disk or disk image so the partition you picked gets as big as it possibly can. afterwards, it ends either at the very end of the disk or right where the next partition starts. main character glow-up β¨
π₯ EXAMPLES π₯
Extend partition 1 in /dev/sda to fill the empty space until the end of the disk or the next partition:
growpart /dev/sda 1
Extend partition 2 in the disk image my.image:
growpart my.image 2
π¦ EXIT STATUS π¦
the vibe check goes like this:
0β the partition grew successfully, OR you ran--dry-runand it could grow. β1β it couldn't grow because there's no available space. rip π2β an error happened. π
π AUTHOR π
this manpage was written by Scott Moser <smoser@canonical.com> for Ubuntu systems, but anyone can use it. permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3, published by the Free Software Foundation.
on Debian systems, the full text of the GNU General Public License lives in /usr/share/common-licenses/GPL. read your license, it's giving responsible π
π§ that's the tea on growpart(1) from cloud-utils, last updated 25 Feb 2011. go grow something and make it slay, bestie ππ«Ά
π¦ where this page comes from
- alpine 3.24: cloud-utils-doc 0.33-r1 Β· GPL-3.0-or-later
- arch rolling: cloud-guest-utils 0.34-1 Β· GPL-3.0-only
- centos-stream 10: cloud-utils-growpart 0.33-11.el10 Β· GPL-3.0-only
- centos-stream 9: cloud-utils-growpart 0.33-1.el9 Β· GPLv3
- debian bookworm: cloud-guest-utils 0.33-1 Β· GPL-3.0-only
- debian trixie: cloud-guest-utils 0.33-1 Β· GPL-3.0-only
- fedora 43: cloud-utils-growpart 0.33-11.fc43 Β· GPL-3.0-only
- fedora 44: cloud-utils-growpart 0.33-13.fc44 Β· GPL-3.0-only
- nixos 26.05: cloud-utils 0.33
- nixpkgs unstable: cloud-utils 0.33
- opensuse-leap 16.0: growpart 0.33-160000.3.2 Β· GPL-3.0-only
- ubuntu jammy: cloud-guest-utils 0.32-22-g45fe84a5-0ubuntu1 Β· GPL-3.0-only
- ubuntu noble: cloud-guest-utils 0.33-1 Β· GPL-3.0-only
- ubuntu questing: cloud-guest-utils 0.33-1 Β· GPL-3.0-only
- ubuntu resolute: cloud-guest-utils 0.33-1build1 Β· GPL-3.0-only
- ubuntu stonking: cloud-guest-utils 0.34-1 Β· GPL-3.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms