Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newfs.1ffs(1M) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck.ffs(1M)

mkfs.ffs(1M)

tunefs.ffs(1M)

dumpfs.ffs(1M)

vdisk(1M)

fs.ffs(4)

disktab(5)



NEWFS.FFS(1M)       RISC/os Reference Manual        NEWFS.FFS(1M)



NAME
     newfs.ffs - construct a new file system

SYNOPSIS
     /etc/newfs.ffs [ -N ] [ -v ] [ -n ] [ mkfs.ffs-options ]
     special

DESCRIPTION
     newfs.ffs is a ``friendly'' front-end to the mkfs.ffs(1M)
     program.  newfs.ffs will read the volume header of the
     specified special device, calculate the appropriate parame-
     ters to use in calling mkfs.ffs, then build the file system
     by forking mkfs.ffs and, if the file system is a root parti-
     tion, install the necessary bootstrap programs in the ini-
     tial 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 param-
     eters to be printed out without actually creating the file
     system. The special device file could also be a virtual
     disk. For more information regarding virtual disks , refer
     to vdisk (1M).

     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 threshold.  The
               default value used is 10%.



                        Printed 11/19/92                   Page 1





NEWFS.FFS(1M)       RISC/os Reference Manual        NEWFS.FFS(1M)



     -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.

     -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),
     vdisk(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 11/19/92



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026