summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-12-21 11:25:26 +0000
committertrasz <trasz@FreeBSD.org>2014-12-21 11:25:26 +0000
commit84195308d08687a4fe52481ac95e4955ce9c1fa1 (patch)
treef9962b6e54435edae792f0400965487ff4e8dae3 /sbin
parent950a2d50973025c0f9a573ba4ee0ad157405a953 (diff)
downloadFreeBSD-src-84195308d08687a4fe52481ac95e4955ce9c1fa1.zip
FreeBSD-src-84195308d08687a4fe52481ac95e4955ce9c1fa1.tar.gz
MFC r274741:
Add example on how to use gpart before growfs. While here, reorder examples so that the simplest one comes first. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin')
-rw-r--r--sbin/growfs/growfs.812
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/growfs/growfs.8 b/sbin/growfs/growfs.8
index da3d9ac..2286da0 100644
--- a/sbin/growfs/growfs.8
+++ b/sbin/growfs/growfs.8
@@ -96,14 +96,14 @@ This value defaults to the size of the raw partition specified in
will enlarge the file system to the size of the entire partition).
.El
.Sh EXAMPLES
-Enlarge
+Expand root filesystem to fill up available space:
+.Dl growfs /
+.Pp
+Resize
.Pa /dev/ada0p1
-up to 2GB if there is enough space in
-.Pa /dev/ada0p1 :
+partition to 2GB and expand the filesystem:
+.Dl gpart resize -i 1 -s 2G ada0
.Dl growfs -s 2G /dev/ada0p1
-.Pp
-Enlarge root filesystem to fill up available space:
-.Dl growfs /
.Sh SEE ALSO
.Xr dumpfs 8 ,
.Xr ffsinfo 8 ,
OpenPOWER on IntegriCloud