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 than COUNT sectors (512 bytes each). The default is 20480, 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 is 1, not 0, 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-run and 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 πŸ’–πŸ«Ά