newfs(8) CLIX newfs(8)
NAME
newfs - Constructs a new file system
SYNOPSIS
/etc/newfs [-N] [-v] [flag ... ] special disk-type
FLAGS
The flags that may be used to override the default parameters passed to
the ffsmkfs command for the file system are as follows:
-N Instructs the system to not make the file system, but display the
parameters used.
-v Turns on the ``verbose'' mode and displays the parameters passed to
the ffsmkfs command.
-s size
Specifies the size in sectors. The default size will be the size
of the partition indicated by the special argument.
-b block-size
Indicates the block size in bytes.
-f frag-size
Specifies the fragment size in bytes.
-t #tracks/cylinder
Specifies the number of tracks per cylinder.
-c #cylinders/group
Specifies the number of cylinders per cylinder group. The default
value is 16.
-m %minfree
Specifies the percentage of space reserved from normal users the
minimum free space threshold. The default is 10 percent.
-o [space|time]
The file system can either be instructed to minimize the time spent
allocating blocks or to minimize the space fragmentation on the
disk. If the value of minfree (see above) is less than 10 percent,
the default is to optimize for space. If the value of minfree is
greater than or equal to 10 percent, the default is to optimize for
time.
-r revolutions/minute
The speed of the disk in revolutions per minute (normally 3600).
2/94 - Intergraph Corporation 1
newfs(8) CLIX newfs(8)
-S sector-size
The size of a sector in bytes (almost always 512).
-i bytes-per-inode
The density of inodes. 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. This value will be bounded so that the number of
inodes is less than 65536.
DESCRIPTION
The newfs command is a ``friendly'' front-end to ffsmkfs. The newfs
command looks up the type of disk a file system is being created on in the
disk description file /etc/disktab, calculates the appropriate parameters
to use in calling ffsmkfs, and then builds the file system by forking the
ffsmkfs process. The newfs command determines the size of the file system
to be made by looking at the size of the disk partition special. The -N
flag causes the file system parameters to be displayed without actually
creating the file system.
If the -v flag is supplied, newfs displays its actions, including the
parameters passed to ffsmkfs.
EXAMPLES
The following command will call the ffsmkfs command with the parameters to
make a file system of 100,000 disk blocks, optimized for time, on the
named partition. The disk type corresponds to the entry for fdsk155 in
the /etc/disktab file. All of the parameters passed to the ffsmkfs file
will be displayed.
newfs -v -s 100000 -o time /dev/dsk/s0u0p7.3 fdsk155
FILES
/etc/disktab Contains disk geometry and file system partition
information
NOTES
The newfs command software should derive the type of the disk without the
user's help.
DIAGNOSTICS
The device given was not a block special device. A fast file system can
only be created on a block special device:
newfs: device: not a block device
2 Intergraph Corporation - 2/94
newfs(8) CLIX newfs(8)
The disk type given does not appear in the /etc/disktab file:
newfs: type: unknown disk type
The named partition does not have a default size recorded in the partition
table. Use the -s flag to specify the size:
newfs: device no default size for partition.
EXIT VALUES
The newfs command exits with a nonzero value when an error occurs.
RELATED INFORMATION
Commands: ffsfsck(8), ffsmkfs(8)
Files: disktab(4), ffsfs(4)
CLIX Programming Guide
2/94 - Intergraph Corporation 3