.\" $OpenBSD: newlfs.8,v 1.9 2000/03/18 22:56:02 aaron Exp $ .\" $NetBSD: newlfs.8,v 1.2 1995/03/18 14:58:54 cgd Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)newlfs.8 8.1 (Berkeley) 6/19/93 .\" .Dd June 19, 1993 .Dt NEWLFS 8 .Os .Sh NAME .Nm newlfs .Nd construct a new LFS file system .Sh SYNOPSIS .Nm newlfs .Fl L .Op Fl B Ar segsize .Op Fl b Ar blocksize .Op Fl m Ar freespace\&% .Op Fl s Ar size .Ar special .Sh DESCRIPTION .Nm builds a log-structured file system on the specified .Ar special device, basing its defaults on the information in the disk label. (Before running .Nm the disk must be labeled using .Xr disklabel 8 . ) .Pp The following options define the general layout policies: .Bl -tag -width Fl .It Fl B Ar segsize The logical segment size of the file system in bytes. .It Fl b Ar blocksize The block size of the file system in bytes. .It Fl L Create a log-structured file system (LFS). This flag is currently required. .It Fl m Ar freespace\&% The percentage of space reserved from normal users; the minimum free space threshold. The default value used is 10%. See .Xr tunefs 8 for more details on how to set this option. .It Fl s Ar size The size of the file system in sectors. .El .Sh SEE ALSO .Xr disktab 5 , .Xr fs 5 , .Xr disklabel 8 , .Xr diskpart 8 , .Xr dumplfs 8 , .Xr tunefs 8 .Rs .%A M. McKusick .%A W. Joy .%A S. Leffler .%A R. Fabry .%T A Fast File System for UNIX , .%J ACM Transactions on Computer Systems 2 .%V 3 .%P pp 181-197 .%D August 1984 .%O (reprinted in the BSD System Manager's Manual) .Re .Sh HISTORY The .Nm command appeared in .Bx 4.4 .