.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)newfs.8 6.2 (Berkeley) %G%
newfs \- construct a new file system
is a ``friendly'' front-end to the
will look up the type of disk a file system is
being created on in the disk description
calculate the appropriate
parameters to use in calling
then build the file system by forking
and, if the file system is a root partition,
install the necessary bootstrap programs
in the initial 8 sectors of the device.
bootstrap programs from being installed.
option causes the file system parameters to be printed out
without actually creating the file system.
will print out its actions, including
Options which may be used to override default
The size of the file system in sectors.
The block size of the file system in bytes.
The fragment size of the file system in bytes.
The number of cylinders per cylinder group in a file system.
The default value used is 16.
The percentage of space reserved from normal users; the minimum
free space threshhold. The default value used is 10%.
.B \-o optimization preference (``space'' or ``time'')
The file system can either be instructed to try to minimize the time spent
allocating blocks, or to try to minimize the space fragmentation on the disk.
If the value of minfree (see above) is less than 10%,
the default is to optimize for space;
if the value of minfree greater than or equal to 10%,
the default is to optimize for time.
.B \-r revolutions/minute
The speed of the disk in revolutions per minute (normally 3600).
The size of a sector in bytes (almost never anything but 512).
.B \-i number of bytes per inode
This specifies the density of inodes in the file system.
The default is to create an inode for each 2048 bytes of data space.
If fewer inodes are desired, a larger number should be used;
to create more inodes a smaller number should be given.
/etc/disktab for disk geometry and file system partition information
/etc/mkfs to actually build the file system
/usr/mdec for boot strapping programs
M. McKusick, W. Joy, S. Leffler, R. Fabry,
``A Fast File System for UNIX'',
\fIACM Transactions on Computer Systems 2\fP, 3.
(reprinted in the System Manager's Manual and in Volume 2c)
Should figure out the type of the disk without the user's help.