NEWFS.FFS(1M-SysV) RISC/os Reference Manual NEWFS.FFS(1M-SysV)
NAME
newfs.ffs - construct a new file system
SYNOPSIS
/etc/newfs.ffs [ -N ] [ -v ] [ -n ] [ mkfs.ffs-options ]
special disk-type
DESCRIPTION
newfs.ffs is a ``friendly'' front-end to the mkfs.ffs(1M)
program. newfs.ffs will look up the type of disk a file
system is being created on in the disk description file
/etc/disktab, calculate the appropriate parameters to use in
calling mkfs.ffs, then build the file system by forking
mkfs.ffs and, if the file system is a root partition,
install the necessary bootstrap programs in the initial 8
sectors of the device. The -n option prevents the bootstrap
programs from being installed. (In RISC/os, there are no
bootstrap programs, so the -n option is allowed but has no
effect.) The -N option causes the file system parameters to
be printed out without actually creating the file system.
If the -v option is supplied, newfs.ffs will print out its
actions, including the parameters passed to mkfs.ffs.
Options which may be used to override default parameters
passed to mkfs.ffs are:
-s size The size of the file system in sectors. This
number will be rounded down to an integral number
of file system blocks in order to properly create
the file system. One file system block will be
subtracted to account for the read-ahead mechanism
in the kernel.
-b block-size
The block size of the file system in bytes.
-f frag-size
The fragment size of the file system in bytes.
-t #tracks/cylinder
-c #cylinders/group
The number of cylinders per cylinder group in a
file system. The default value used is 16.
-m free space %
The percentage of space reserved from normal
users; the minimum free space threshhold. The
default value used is 10%.
-o optimization preference (``space'' or ``time'')
Printed 1/15/91 Page 1
NEWFS.FFS(1M-SysV) RISC/os Reference Manual NEWFS.FFS(1M-SysV)
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.
-r revolutions/minute
The speed of the disk in revolutions per minute
(normally 3600).
-S sector-size
The size of a sector in bytes (almost never any-
thing but 512).
-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.
FILES
/etc/disktab for disk geometry and file system partition
information
/etc/mkfs.ffs to actually build the file system
SEE ALSO
fsck.ffs(1M), mkfs.ffs(1M), tunefs.ffs(1M), dumpfs.ffs(1M).
fs.ffs(4), disktab(5) in the Programmer's Reference Manual.
Appendix A, A Fast File System for UNIX, in the System
Administrator's Guide.
ERRORS
Should figure out the type of the disk without the user's
help.
Page 2 Printed 1/15/91