NEWFS(8) — MAINTENANCE COMMANDS
NAME
newfs − construct a new file system
SYNOPSIS
/usr/etc/newfs [ −Nv ] [ mkfs-options ] block-special-file
DESCRIPTION
newfs is a “friendly” front-end to the mkfs(8) program. On Sun systems, the disk type is determined by reading the disk label for the specified block-special-file.
block-special-file is the name of a block special device residing in /dev. If you want to make a file system on sd0, you can specify sd0 rsd0 or /dev/rsd0; if you only specify sd0, newfs will find the proper device.
newfs then calculates the appropriate parameters to use in calling mkfs, builds the file system by forking mkfs.
OPTIONS
−N Print out the file system parameters without actually creating the file system.
−v Verbose. newfs prints out its actions, including the parameters passed to mkfs.
mkfs-options
Options that override the default parameters passed to mkfs(8) are:
−b block-size
The block size of the file system in bytes.
−c #cylinders/group
The number of cylinders per cylinder group in a file system. The default value used is 16.
−d rotdelay
This specifies the expected time (in milliseconds) to service a transfer completion interrupt and initiate a new transfer on the same disk. It is used to decide how much rotational spacing to place between successive blocks in a file.
−f frag-size
The fragment size of the file system in bytes.
−i bytes/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.
−m free-space%
The percentage of space reserved from normal users; the minimum free space threshold. The default value used is 10%.
−o optimization
(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 minimum free space threshold (as specified by the −m option) is less than 10%, the default is to optimize for space; if the minimum free space threshold is 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 size
The size of the file system in sectors.
−t #tracks/cylinder
The number of tracks per cylinders on the disk.
FILES
/usr/etc/mkfs to actually build the file system
SEE ALSO
fs(5), installboot(8S), fsck(8), mkfs(8), tunefs(8)
System and Network Administration
NOTES
To install the bootstrap programs for a root partition, one has to run installboot(8S) after newfs.
Sun Release 4.0 — Last change: 22 March 1989