GROWFS(8)
π GROWFS β the system manager's manual page, but make it group chat π
okay so bestie, welcome to growfs(8), aka the system manager's manual glow-up era. this is a <pink>System Manager's Manual</pink> page, and yes we're doing the whole thing, no skips, no cap.
β¨ NAME β¨
growfs β expand an existing UFS file system π
like, your filesystem said "i want more space actually" and this is the tool that makes it happen.
π¦ SYNOPSIS π¦
growfs [-Ny] [-s size] special | filesystem
πΈ DESCRIPTION πΈ
so the growfs utility makes it possible to expand an UFS file system. that's the whole vibe. π
but β and this is the important part, bestie β before you run growfs, the partition or slice containing the file system must be extended using gpart(8). the partition grows first, then growfs comes in and makes the file system on the specified special file match. the following options are available:
-Nβ βTest modeβ. causes the new file system parameters to be printed out without actually enlarging the file system. it's giving window shopping, not checkout. ποΈ-ssize β determines the size of the file system after enlarging, in sectors. size is the number of 512 byte sectors unless you suffix it with ab,k,m,g, ort, which denotes byte, kilobyte, megabyte, gigabyte and terabyte respectively. this value defaults to the size of the raw partition specified in special β in other words,growfswill enlarge the file system to the size of the entire partition. go big or go home, literally. π₯-yβ causesgrowfsto assume yes as the answer to all operator questions. no more y + Enter spam, we're just saying yes to the universe. π«Ά
β EXIT STATUS β
exit status is 0 on success, and >= 1 on errors. here's the breakdown:
- errors recoverable by user action are indicated by
2β you got this, you can fix it πͺ - OS errors, which are usually not recoverable, are indicated by
3or greater β at that point it's giving "call tech support" energy π
π EXAMPLES π
expand root file system to fill up available space:
growfs /
refresh the LUN size, resize the partition to use all available capacity, and expand the filesystem accordingly:
camcontrol reprobe da0
gpart recover da0
gpart resize -i 1 da0
growfs /dev/da0p1
the way that's a whole four-step combo like a dance routine π do them in order, don't freestyle.
π SEE ALSO π
growfs(7), camcontrol(8), fsck(8), gpart(8), newfs(8), tunefs(8)
the whole friend group honestly π«Ά go say hi.
π§ HISTORY π§
the growfs utility first appeared in FreeBSD 4.4. the ability to resize mounted file systems was added in FreeBSD 10.0 β that's the glow-up update, iykyk. β¨
π AUTHORS π
- Christoph Herrmann
<chm@FreeBSD.org> - Thomas-Henning von Kamptz
<tomsoft@FreeBSD.org> - The GROWFS team
<growfs@Tomsoft.COM> - Edward Tomasz Napierala
<trasz@FreeBSD.org>
legends, every single one. π
π CAVEATS π
when expanding a file system mounted read-write, any writes to that file system will be temporarily suspended until the expansion is finished. so like, don't panic if your writes go quiet for a sec β it's not ghosting you, it's just busy. π
π BUGS π
normallygrowfswrites cylinder group summary to disk and reads it again later for doing more updates. this read operation will provide unexpected data when using-N. therefore, this part cannot really be simulated and will be skipped in test mode.
so yeah β -N is a vibe check, not a rehearsal for everything. the cylinder group summary bit just sits out test mode entirely. π«
and that's the whole page, bestie. no notes. π
sign-off: this page is from the <lavender>Debian</lavender> pack, dated <mint>January 23, 2025</mint> β mwah, go expand something. π¦π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
- Copyright (c) 1980, 1989, 1993 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms