1.\" $OpenBSD: growfs.8,v 1.10 2008/11/28 00:15:54 ckuethe Exp $ 2.\" Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz 3.\" Copyright (c) 1980, 1989, 1993 The Regents of the University of California. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to Berkeley by 7.\" Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgment: 19.\" This product includes software developed by the University of 20.\" California, Berkeley and its contributors, as well as Christoph 21.\" Herrmann and Thomas-Henning von Kamptz. 22.\" 4. Neither the name of the University nor the names of its contributors 23.\" may be used to endorse or promote products derived from this software 24.\" without specific prior written permission. 25.\" 26.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36.\" SUCH DAMAGE. 37.\" 38.\" $TSHeader: src/sbin/growfs/growfs.8,v 1.3 2000/12/12 19:31:00 tomsoft Exp $ 39.\" $FreeBSD: src/sbin/growfs/growfs.8,v 1.24 2005/01/18 10:09:34 ru Exp $ 40.\" 41.Dd $Mdocdate: November 28 2008 $ 42.Dt GROWFS 8 43.Os 44.Sh NAME 45.Nm growfs 46.Nd grow size of an existing ffs file system 47.Sh SYNOPSIS 48.Nm 49.Op Fl Nqy 50.Op Fl s Ar size 51.Ar special 52.Sh DESCRIPTION 53The 54.Nm 55utility extends the 56.Xr newfs 8 57program. 58Before starting 59.Nm growfs , 60the partition must be set to a larger size using 61.Xr disklabel 8 . 62The 63.Nm 64utility extends the size of the file system on the specified special file. 65.Pp 66Currently 67.Nm 68can only enlarge unmounted file systems. 69Do not try enlarging a mounted file system \- your system may panic and 70you will not be able to use the file system any longer. 71Most of the 72.Xr newfs 8 73options cannot be changed by 74.Nm growfs . 75In fact, you can only increase the size of the file system. 76Use 77.Xr tunefs 8 78for other changes. 79.Pp 80The following options are available: 81.Bl -tag -width "-s sizeXX" 82.It Fl N 83Test mode. 84Causes the new file system parameters to be printed out without actually 85enlarging the file system. 86.It Fl q 87Operate in quiet mode. 88With this option, 89.Nm 90will not print extraneous information like superblock backups. 91.It Fl s Ar size 92Determines the 93.Ar size 94of the file system after enlarging in sectors. 95This value defaults to the size of the raw partition specified in 96.Ar special 97(in other words, 98.Nm 99will enlarge the file system to the size of the entire partition). 100.It Fl y 101Expert mode. 102Usually 103.Nm 104will ask you if you have taken a backup of your data and will test 105whether 106.Ar special 107is currently mounted. 108The 109.Fl y 110flag suppresses this, 111so use this option with great care! 112.El 113.Sh SEE ALSO 114.Xr disklabel 8 , 115.Xr dumpfs 8 , 116.Xr fdisk 8 , 117.Xr fsck 8 , 118.Xr newfs 8 , 119.Xr tunefs 8 120.Sh HISTORY 121The 122.Nm 123utility first appeared in 124.Fx 4.4 . 125.Sh AUTHORS 126.An Christoph Herrmann Aq chm@FreeBSD.org 127.An Thomas-Henning von Kamptz Aq tomsoft@FreeBSD.org 128.An The GROWFS team Aq growfs@Tomsoft.COM 129.Sh BUGS 130Filesystems must be checked with 131.Xr fsck 8 132after enlarging. 133