Main index | Section 7 | Options |
The following options in /etc/rc.conf control the behavior of growfs:
growfs_enable | |
("NO") If set to "YES", the first time the machine boots, the root file system will be automatically expanded, if possible, to fill up all available space after it, after optionally adding a swap device at the end. | |
growfs_swap_size | |
("amp;") If set to "0", the addition of a swap partition is disabled. An empty value ("amp;") allows the creation of a swap partition with the default size. If set to another value, the swap partition will be created with the specified size in bytes, even if another swap partition is detected. | |
A setting for growfs_swap_size can be set in the kernel environment, in which case it overrides the value from /etc/rc.conf.
To expand the root file system without rebooting, run the following command:
% /etc/rc.d/growfs onestart
In addition, if a swap partition is added, run the command:
% /etc/rc.d/growfs_fstab onestart
Note that if a disk is expanded again, and if the root file system had previously been expanded and a swap partition added, it is necessary to delete the swap partition before this procedure in order to expand the root file system to the new size. A new swap partition can be created during the expansion.
/etc/fstab
/etc/rc.conf | |
GROWFS (7) | November 22, 2022 |
Main index | Section 7 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Modern Unix impedes progress in computer science, wastes billions of dollars, and destroys the common sense of many who seriously use it. | ” |
— The Unix Haters' handbook |