newfs(1M-BSD) MISC. REFERENCE MANUAL PAGES newfs(1M-BSD)
NAME
newfs - construct a new file system
SYNOPSIS
/usr/ucb/newfs [ -nNv ] [ mkfs-options ] character-special-
file [ disk-type ]
DESCRIPTION
newfs is a friendly front-end to the mkfs(1M) program. The
disk type is determined by reading the disk label for the
specified character-special-file. If the character-
special-file is the name of a floppy disk, newfs will look
up the type of the disk in the disk description file
/etc/disktab. character-special-file is the name of a char-
acter special device residing in /dev. If you want to make
a file system on sd000, you specify /dev/rdsk/sd000; newfs
then calculates the appropriate parameters to use in calling
mkfs, builds the file system by forking mkfs and, if the
offset of file system start from sector 0, installs the
necessary bootstrap programs in its initial 16 sectors.
Building new filesystems on a new disk requires the use of
format, which formats the disk, fmthard, which adds the disk
partition table to the disk, newfs or mkfs, which creates
filesystems, and mount, which makes the filesystems avail-
able for use.
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(1M) 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
1
newfs(1M-BSD) MISC. REFERENCE MANUAL PAGES newfs(1M-BSD)
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 allo-
cating 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
/stand/mdec for boot strapping programs
/etc/disktab for the disk geometry and partition layout
table
/dev
NOTES
On the floppy disk, there is no multiple partitions support
and no disk label required before building a file system,
however, user need to specified the disk-type on the command
line.
2
newfs(1M-BSD) MISC. REFERENCE MANUAL PAGES newfs(1M-BSD)
SEE ALSO
fsck(1M), mkfs(1M), tunefs(1M), fs(4) fmthard(1M)
prtvtoc(1M) disktab(4) in the System Administrator's Refer-
ence Manual.
3