Files
cheatsheet-tldr/tldr/linux/growpart
2025-08-17 00:22:45 +00:00

18 lines
518 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`