LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

INSTALL

sudo apt install systemd-repart
copy

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid