Difference between revisions of "Growpart"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(27 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Draft}} | {{Draft}} | ||
+ | {{lc}} | ||
+ | <code>[[growpart]]</code> [[extend]] a [[partition]] in a partition table to fill available space. It is included in <code>[[cloud-guest-utils]]</code> package. | ||
+ | * Man page: http://manpages.ubuntu.com/manpages/hirsute/man1/growpart.1.html | ||
+ | * <code>growpart [[--dry-run]] </code> | ||
+ | |||
+ | growpart disk [[partition_number]] | ||
+ | |||
+ | * <code>growpart [[/dev/sda]] 1</code> | ||
+ | |||
+ | growpart /dev/nvme0n1 1 | ||
+ | mkdir: cannot create directory ‘/tmp/growpart.1357728’: [[No space left on device]] | ||
+ | FAILED: failed to make temp dir | ||
+ | |||
+ | growpart /dev/nvme0n1 1 | ||
+ | CHANGED: partition=1 start=227328 old: size=16549855 end=16777183 new: size=133990367 end=134217695 | ||
+ | |||
+ | growpart /dev/nvme1n1 1 | ||
+ | WARN: [[unknown label]] | ||
+ | failed [sfd_dump:1] sfdisk --unit=S --dump /dev/nvme1n1 | ||
+ | sfdisk: /dev/nvme1n1: [[does not contain a recognized partition table]] | ||
+ | FAILED: failed to dump sfdisk info for /dev/nvme1n1 | ||
+ | |||
+ | growpart [[/dev/root]] 1 | ||
+ | WARN: unknown label | ||
+ | failed [sfd_dump:1] sfdisk --unit=S --dump /dev/root | ||
+ | sfdisk: /dev/root: does not contain a recognized partition table | ||
+ | FAILED: failed to dump [[sfdisk]] info for /dev/root | ||
+ | Solution: | ||
+ | growpart [[/dev/nvme0n1]] 1 | ||
+ | CHANGED: partition=1 start=227328 old: size=16549855 end=16777182 new: size=104630239 end=104857566 | ||
+ | |||
+ | |||
+ | [[growpart /dev/nvme0n1 1]] | ||
+ | failed [sfd_list:1] [[sfdisk --list]] --unit=S /dev/nvme0n1 | ||
+ | FAILED: failed: sfdisk --list /dev/nvme0n1 | ||
+ | |||
+ | |||
+ | growpart /dev/nvme0n1p1 | ||
+ | /usr/bin/growpart: line 112: cannot create temp file for here-document: [[No space left on device]] | ||
+ | [[must supply partition-number]] | ||
+ | |||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[resize2fs]]</code> | ||
+ | * <code>[[/proc/partitions]]</code> | ||
+ | * <code>[[kpartx]]</code> | ||
+ | * <code>[[fdisk -l]]</code> | ||
== See also == | == See also == | ||
+ | * {{sfdisk}} | ||
+ | * {{Partition}} | ||
* {{Block}} | * {{Block}} | ||
+ | |||
+ | |||
+ | [[Category:Linux]] |
Latest revision as of 17:07, 2 May 2023
This article is a Draft. Help us to complete it.
growpart
extend a partition in a partition table to fill available space. It is included in cloud-guest-utils
package.
growpart --dry-run
growpart disk partition_number
growpart /dev/sda 1
growpart /dev/nvme0n1 1 mkdir: cannot create directory ‘/tmp/growpart.1357728’: No space left on device FAILED: failed to make temp dir
growpart /dev/nvme0n1 1 CHANGED: partition=1 start=227328 old: size=16549855 end=16777183 new: size=133990367 end=134217695
growpart /dev/nvme1n1 1 WARN: unknown label failed [sfd_dump:1] sfdisk --unit=S --dump /dev/nvme1n1 sfdisk: /dev/nvme1n1: does not contain a recognized partition table FAILED: failed to dump sfdisk info for /dev/nvme1n1
growpart /dev/root 1 WARN: unknown label failed [sfd_dump:1] sfdisk --unit=S --dump /dev/root sfdisk: /dev/root: does not contain a recognized partition table FAILED: failed to dump sfdisk info for /dev/root Solution: growpart /dev/nvme0n1 1 CHANGED: partition=1 start=227328 old: size=16549855 end=16777182 new: size=104630239 end=104857566
growpart /dev/nvme0n1 1 failed [sfd_list:1] sfdisk --list --unit=S /dev/nvme0n1 FAILED: failed: sfdisk --list /dev/nvme0n1
growpart /dev/nvme0n1p1 /usr/bin/growpart: line 112: cannot create temp file for here-document: No space left on device must supply partition-number
Related terms[edit]
See also[edit]
Advertising: