Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ newfs(8) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

disk(4)

fd(4)

hd(4)

scsi(4)

disktab(5)

fs(5)

diskpart(8)

format(8R)

fsck(8)

mkfs(8)

tunefs(8)

NEWFS(8)  —  

NAME

newfs − construct a new file system

SYNOPSIS

/etc/newfs [ −v ] [ −n ] [ −N ] [ mkfs-options ] special [ disk-type ]

DESCRIPTION

Newfs is a “friendly” front-end to the mkfs(8) program. Newfs looks up the type of disk a file system is being created on in the disk description file /etc/disktab and calculates the appropriate parameters to use in calling mkfs. Newfs then builds the file system by forking mkfs , and if the file system is a root partition, installs the necessary bootstrap programs.  The −n option prevents the bootstrap programs from being installed. 

If the −v option is supplied, newfs will print out its actions, including the parameters passed to mkfs.

The −N option prevents mkfs(8) from being invoked. 

If the special file supports the DKIOCGPART ioctl, then the disk-type is optional and the default size is taken from the actual partition size rather than /etc/disktab. 

Options which may be used to override default parameters passed to mkfs are:

−s size The size of the file system in sectors. 

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

−r revolutions/minute
The speed of the disk in revolutions per minute (usually 1800 or 3600).

−S sector-size
The size of a sector in bytes (almost never anything 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/disktabfor disk geometry and file system partition information
/etc/mkfsactually builds the file system
/usr/mdecfor boot-strapping programs

SEE ALSO

disk(4), fd(4), hd(4), scsi(4), disktab(5), fs(5), diskpart(8), format(8R), fsck(8), mkfs(8), tunefs(8)

“A Fast File System for Unix” in UNIX System Manager’s Manual
 

PRPQs 5799-WZQ/5799-PFF: IBM/4.3  —  Dec 1987

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