Linux command
systemd-repart 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Grow
systemd-repart
Dry run
systemd-repart --dry-run yes
Example
systemd-repart --size 10G --root /
说明
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.
参数
- --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
FAQ
What is the systemd-repart command used for?
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.
How do I run a basic systemd-repart example?
Run `systemd-repart` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --dry-run= _BOOL_ do in systemd-repart?
Show what would be done without applying changes