Name
growpart - extend a partition in a partition table to fill available spaceSynopsis
growpart [OPTIONS] DISK PARTITION-NUMBERgrowpart 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 Show usage and exit
-N | --dry-run Only report what would be done
--fudge COUNT Only modify partition table if the given partition would grow more than COUNT sectors (512 bytes). The default value is 20480 indicating that no change will be made unless more than 10M of space would be gained.
-v | --verbose Give more information to stderr.
Arguments
DISK The device or disk image to operate on
PARTITION-NUMBER The number of the partition to resize (counting from 1)
Description
Rewrite a partition table in a disk or disk image so that the given partition takes up as much space as it can. After running, the partition will end at the end of the disk, or at the beginning of the next partition.Examples
Extend partition 1 in /dev/sda to fill empty space until end of disk or next partition growpart /dev/sda 1
Extend partition 2 in disk image my.image. growpart my.image 2