NEWFS(8) — MAINTENANCE COMMANDS
NAME
newfs − construct a new file system
SYNOPSIS
/etc/newfs [ −N ] [ −v ] [ −n ] [ mkfs-options ] block-special-file
DESCRIPTION
newfs is a “friendly” front-end to the mkfs(8) program. On the Sun, 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 and, if the file system is a root partition, installs the necessary bootstrap programs in its initial 16 sectors.
OPTIONS
−n Do not install the bootstrap programs.
−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.
−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 threshhold. The default value used is 10%.
−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
FILES
/etc/mkfsto actually build the file system
/usr/mdecfor boot strapping programs
SEE ALSO
System Administration for the Sun Workstation
Sun Release 3.2 — Last change: 11 April 1986