Linux command
systemd-growfs 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Grow root filesystem to fill partition
/usr/lib/systemd/systemd-growfs /
Grow filesystem at mount point
/usr/lib/systemd/systemd-growfs [/home]
Enable automatic grow at boot
systemctl enable systemd-growfs-root.service
Check service status
systemctl status systemd-growfs-root.service
说明
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.
FAQ
What is the systemd-growfs command used for?
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.
How do I run a basic systemd-growfs example?
Run `/usr/lib/systemd/systemd-growfs /` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more systemd-growfs examples?
This page includes 4 examples for systemd-growfs, plus related commands for nearby Linux tasks.