HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemd-repart — Automatically grow and add partitions. Grows and adds partitions based on the configuration files de

Submitted by: @import:tldr-pages··
0
Viewed 0 times
growcommandandsystemd-repartclipartitionsaddautomatically
linux

Problem

How to use the systemd-repart command: Automatically grow and add partitions. Grows and adds partitions based on the configuration files described in repart.d. Does not automatically resize file system on partition. See systemd-growfs to extend file system. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-repart.html>.

Solution

systemd-repart — Automatically grow and add partitions. Grows and adds partitions based on the configuration files described in repart.d. Does not automatically resize file system on partition. See systemd-growfs to extend file system. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-repart.html>.

Grow the root partition (/) to all available disk space:
systemd-repart


View changes without applying:
systemd-repart --dry-run yes


Grow root partition size to 10 gigabytes:
systemd-repart --size 10G --root /

Code Snippets

Grow the root partition (/) to all available disk space

systemd-repart

View changes without applying

systemd-repart --dry-run yes

Grow root partition size to 10 gigabytes

systemd-repart --size 10G --root /

Context

tldr-pages: linux/systemd-repart

Revisions (0)

No revisions yet.