systemd-growfs
TLDR
Grow root filesystem to fill partition
SYNOPSIS
/usr/lib/systemd/systemd-growfs mountpoint
DESCRIPTION
systemd-growfs is a systemd utility that instructs the kernel to grow a mounted filesystem to fill its underlying block device. It is typically used after partition resizing to expand the filesystem to use the newly available space.
The utility is usually invoked automatically by systemd services based on the x-systemd.growfs mount option in /etc/fstab. It can also be triggered by GPT partition flag 59 as defined in the Discoverable Partitions Specification.
Supported filesystems include ext4, btrfs, xfs, and dm-crypt encrypted partitions. The filesystem must already be mounted for the operation to succeed.
FSTAB USAGE
Add x-systemd.growfs option to /etc/fstab:
RELATED SERVICES
systemd-growfs@.service: Template service for arbitrary mount points.
systemd-growfs-root.service: Service for growing the root filesystem.
systemd-makefs@.service: Creates filesystems on first boot.
CAVEATS
Only works with mounted filesystems. Only supports ext4, btrfs, xfs, and dm-crypt. The underlying partition must already be resized before growing the filesystem. Errors during filesystem growth produce warnings but don't fail the mount.
HISTORY
systemd-growfs was introduced as part of systemd's image-based deployment and container features. It enables automatic filesystem expansion for cloud instances and embedded systems that need to grow their filesystem after initial provisioning.
SEE ALSO
systemd(1), xfs_growfs(8), resize2fs(8), systemd-repart(8)


