HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

growpart — Extend a partition in a disk or disk image to fill available space. More information: <https://githu

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddiskextendpartitioncliimagegrowpart
linux

Problem

How to use the growpart command: Extend a partition in a disk or disk image to fill available space. More information: <https://github.com/canonical/cloud-utils>.

Solution

growpart — Extend a partition in a disk or disk image to fill available space. More information: <https://github.com/canonical/cloud-utils>.

Extend partition n from sdX to fill empty space until end of disk or beginning of next partition:
growpart {{/dev/sdX}} {{n}}


Show what modifications would be made when growing partition n in a disk image:
growpart {{[-N|--dry-run]}} /{{path/to/disk.img}} {{n}}

Code Snippets

Extend partition `n` from `sdX` to fill empty space until end of disk or beginning of next partition

growpart {{/dev/sdX}} {{n}}

Show what modifications would be made when growing partition `n` in a disk image

growpart {{[-N|--dry-run]}} /{{path/to/disk.img}} {{n}}

Context

tldr-pages: linux/growpart

Revisions (0)

No revisions yet.