:man| Alphabetical   Categories   About us 
GROWFS (8) | System administration commands and daemons | Unix Manual Pages | :man


growfs - grow size of an existing ufs file system


See Also


growfs [-Ny] [-s size] special


The growfs utility extends the newfs(8) program. Before starting growfs the disk must be labeled to a bigger size using bsdlabel(8). If you wish to grow a file system beyond the boundary of the slice it resides in, you must re-size the slice using fdisk(8) before running growfs. If you are using volumes you must enlarge them by using vinum(8). The growfs utility extends the size of the file system on the specified special file. Currently growfs can only enlarge unmounted file systems. Do not try enlarging a mounted file system, your system may panic and you will not be able to use the file system any longer. Most of the newfs(8) options cannot be changed by growfs. In fact, you can only increase the size of the file system. Use tunefs(8) for other changes.

The following options are available:

-N "Test mode". Causes the new file system parameters to be printed out without actually enlarging the file system.
-y "Expert mode". Usually growfs will ask you if you took a backup of your data before and will do some tests whether special is currently mounted or whether there are any active snapshots on the file system specified. This will be suppressed. So use this option with great care!
-s size
Determines the size of the file system after enlarging in sectors. This value defaults to the size of the raw partition specified in special (in other words, growfs will enlarge the file system to the size of the entire partition).


growfs -s 4194304 /dev/vinum/testvol

will enlarge /dev/vinum/testvol up to 2GB if there is enough space in /dev/vinum/testvol.


bsdlabel(8), dumpfs(8), fdisk(8), ffsinfo(8), fsck(8), newfs(8), tunefs(8), vinum(8)




fsck(8) fsck(8) fsck(8)

Share this page

     Follow us

Facebook Twitter Google+ LinkedIn

Created by Blin Media, 2008-2013