growpart (1) - Linux Manuals
growpart: extend a partition in a partition table to fill available space
NAME
growpart - extend a partition in a partition table to fill available spaceSYNOPSIS
growpart [OPTIONS] DISK PARTITION-NUMBER
growpart partition
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
rewrite partition table so that partition takes up all the space it can
options:
OPTIONS
ARGUMENTS
DESCRIPTION
Rewrite a the 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
growpart
growpart my.image 2
EXIT STATUS
The exit status is 0 if the partition was sucessfully grown or if --dry-run was specified and it could be grown. The exit status is 1 if the partition could not be grown due to lack of available space. The exit status is 2 if an error occured.
AUTHOR
This manpage was written by Scott Moser <smoser [at] canonical.com> for Ubuntu systems (but may be used by others). 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.