systemd-repart
Automatically grow and add partitions. tldr-pages
On Linux
Linux
Automatically grow and add partitions. Grows and adds partitions based on the configuration files described in repart.d. Does not automatically resize filesystem on partition. See systemd-growfs to extend filesystem.
Grow the root partition (/) to all available disk space
systemd-repartIdentifySimulate repartitioning, showing the changes without applying them
systemd-repart --dry-run yesIdentifyGrow root partition size to 10 gigabytes
systemd-repart --size 10G --root /Identify