growfs
—
start up script to grow the root file-system
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.
To expand the root file-system with-out rebooting, run the
following command:
% /etc/rc.d/growfs
onestart
The script requires that awk be present and on the path.
This usually means that /usr should be mounted prior
to running the script.
The growfs
utility exits 0 on success,
and >0 if an error occurs.
The growfs
manual page first appeared in
FreeBSD 10.1.
The man page and script were written by John-Mark Gurney
<jmg@FreeBSD.org>.