LinuxCommandLibrary

systemd-repart

Declarative disk partition management

TLDR

Grow partitions automatically

$ systemd-repart
copy
Dry run (view changes only)
$ systemd-repart --dry-run yes
copy
Grow root to specific size
$ systemd-repart --size 10G --root /
copy

SYNOPSIS

systemd-repart [OPTIONS] [DEVICE]

DESCRIPTION

systemd-repart automatically grows and adds partitions based on configuration files in `/usr/lib/repart.d/` and `/etc/repart.d/`. It reads declarative partition definitions and applies them to the disk.
This tool modifies partition tables but does not resize filesystems. Use `systemd-growfs` to extend filesystems after growing partitions.

PARAMETERS

--dry-run= BOOL

Show what would be done without applying changes
--size= SIZE
Target size for operations
--root= PATH
Operate on specified root directory
--definitions= PATH
Use configuration from specified directory

CAVEATS

Only modifies partition tables, not filesystems. Configuration files define desired partition layout declaratively. Use dry-run mode to preview changes before applying. Primarily designed for image-based systems.

HISTORY

systemd-repart supports image-based OS deployment by enabling declarative partition management, allowing systems to automatically configure disk layout on first boot.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community