Amiga Unix — 68040 · 68060

Manual pages › BSD versions of commands (1B)

newfs(1B)

construct a new file system

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

newfs - construct a new file system

SYNOPSIS

/usr/ucb/newfs [ -nNv ] [ mkfs-options ] block-special-file

DESCRIPTION

newfs is a friendly front-end to the mkfs(1M) 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 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(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 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/mdec       for boot strapping programs
/dev

SEE ALSO

fsck(1M),  mkfs(1M),  tunefs(1M),  fs(4)   in   the   System
Administrator's Reference Manual.