Add example on how to use gpart before growfs. While here, reorder examples

so that the simplest one comes first.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2014-11-20 06:12:11 +00:00
parent 0309e4e4bb
commit 3f6d71ae79

View File

@ -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
.Pa /dev/ada0p1
up to 2GB if there is enough space in
.Pa /dev/ada0p1 :
.Dl growfs -s 2G /dev/ada0p1
.Pp
Enlarge root filesystem to fill up available space:
Expand root filesystem to fill up available space:
.Dl growfs /
.Pp
Resize
.Pa /dev/ada0p1
partition to 2GB and expand the filesystem:
.Dl gpart resize -i 1 -s 2G ada0
.Dl growfs -s 2G /dev/ada0p1
.Sh SEE ALSO
.Xr dumpfs 8 ,
.Xr ffsinfo 8 ,