{
    "mode": "man",
    "parameter": "growpart",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/growpart/1/json",
    "generated": "2026-10-22T12:07:24Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "growpart - extend a partition in a partition table to fill available space\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "growpart [OPTIONS] DISK PARTITION-NUMBER",
                    "content": "growpart partition\nrewrite partition table so that partition takes up all the space it can\noptions:\n-h | --help      print Usage an exit\n--fudge F   if part could be resized, but change would be\nless than 'F', do not resize (default: 20480)\n-N | --dry-run   only report what would be done, show new 'sfdisk -d'\n-v | --verbose   increase verbosity / debug\n\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h | --help",
                    "content": "Show usage and exit\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-N | --dry-run",
                    "content": "Only report what would be done\n",
                    "flag": "-N",
                    "long": "--dry-run"
                },
                {
                    "name": "--fudge COUNT",
                    "content": "Only  modify partition table if the given partition would grow more than COUNT sectors\n(512 bytes).  The default value is 20480 indicating that no change will be made unless\nmore than 10M of space would be gained.\n",
                    "long": "--fudge",
                    "arg": "COUNT"
                },
                {
                    "name": "-v | --verbose",
                    "content": "Give more information to stderr.\n\n",
                    "flag": "-v",
                    "long": "--verbose"
                }
            ]
        },
        "ARGUMENTS": {
            "content": "DISK   The device or disk image to operate on\n\nPARTITION-NUMBER\nThe number of the partition to resize (counting from 1)\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Rewrite a partition table in a disk or disk image so that the given  partition  takes  up  as\nmuch  space  as  it can.  After running, the partition will end at the end of the disk, or at\nthe beginning of the next partition.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Extend partition 1 in /dev/sda to fill empty space until end of disk or next partition\ngrowpart /dev/sda 1\n\nExtend partition 2 in disk image my.image.\ngrowpart my.image 2\n\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The exit status is 0 if the partition was successfully grown or if  --dry-run  was  specified\nand  it  could be grown. The exit status is 1 if the partition could not be grown due to lack\nof available space. The exit status is 2 if an error occurred.\n\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This manpage was written by Scott Moser <smoser@canonical.com> for Ubuntu systems (but may be\nused by others).  Permission is granted to copy, distribute and/or modify this document under\nthe terms of the GNU General Public License, Version 3 published by the Free Software Founda‐\ntion.\n\nOn Debian systems, the complete text of the GNU  General  Public  License  can  be  found  in\n/usr/share/common-licenses/GPL.\n\ncloud-utils                                  25 Feb 2011                                 growpart(1)",
            "subsections": []
        }
    },
    "summary": "growpart - extend a partition in a partition table to fill available space",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show usage and exit"
        },
        {
            "flag": "-N",
            "long": "--dry-run",
            "arg": null,
            "description": "Only report what would be done"
        },
        {
            "flag": "",
            "long": "--fudge",
            "arg": "COUNT",
            "description": "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."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Give more information to stderr."
        }
    ],
    "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"
    ],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Extend a partition in a disk or disk image to fill available space.",
        "examples": [
            {
                "description": "Extend partition `n` from `sdX` to fill empty space until end of disk or beginning of next partition",
                "command": "growpart {{/dev/sdX}} {{n}}"
            },
            {
                "description": "Show what modifications would be made when growing partition `n` in a disk image",
                "command": "growpart {{-N|--dry-run}} /{{path/to/disk.img}} {{n}}"
            }
        ]
    }
}