HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
mkfs_hfs(1M) mkfs_hfs(1M)
size The number of DEV_BSIZE blocks in the file system.
DEV_BSIZE is defined in
<sys/param.h> . The default value is the size of the entire disk or disk section
minus any swap or boot space requested.
The size of HFS file systems are limited by
UFS_MAXDEVBLK (defined in
<sys/fs.h> ) to 256GB-1 or 268,435,455 blocks.
proto The name of a file that can be opened. The
mkfs command assumes it is a prototype
file and takes its directions from that file. See "Prototype File Structure" below.
The following optional arguments allow fine-tune control over file system parameters:
nsect The number of sectors per track on the disk. The default value is 32 sectors per track.
ntrack The number of tracks per cylinder on the disk. The default value is 16 tracks per
cylinder.
blksize The primary block size for files on the file system. Valid values are: 4096, 8192,
16384, 32768, and 65536. The default value is 8192 bytes.
fragsize The fragment size for files on the file system. fragsize represents the smallest amount
of disk space to be allocated to a file. It must be a power of two no smaller than
DEV_BSIZE and no smaller than one-eighth of the file system block size. The default
value is 1024 bytes.
ncpg The number of disk cylinders per cylinder group. This number must be in the range 1
to 32. The default value is 16 cylinders per group.
minfree The minimum percentage of free disk space allowed. The default value is 10 percent.
Once the file system capacity reaches this threshold, only users with appropriate
privileges can allocate disk blocks.
rps The number of disk revolutions per second. The default value is 60 revolutions per
second.
nbpi The density of inodes in the file system specified as the number of bytes per inode.
The default value is 6144 bytes per inode.
This number should reflect the expected average size of files in the file system. If
fewer inodes are desired, a larger number should be used; if more inodes are desired,
a smaller number should be used.
Note: The number of inodes that will be created in each cylinder group of a file sys-
tem is approximately the size of the cylinder group divided by the number of bytes per
inode, up to a limit of 2048 inodes per cylinder group. If the size of the cylinder group
is large enough to reach this limit, the default number of bytes per inode will be
increased.
Prototype File Structure
A prototype file describes the initial file structure of a new file system. The file contains tokens separated
by spaces or newline characters. It cannot contain comments.
The first token is the name of a file to be copied onto block zero as the bootstrap program (usually
/etc/BOOT). If the file name is "", no bootstrap code is placed on the device. The second token is a
number specifying the number of DEV_BSIZE blocks in the file system.
The next three tokens specify the mode, user ID, and group ID of the root directory of the new file system,
followed by the initial contents of the root directory in the format described for a directory file below, and
terminated with a $ token.
A file specification consists of four tokens giving the name, mode, user ID, and group ID, and an initial con-
tents field. The syntax of the initial contents field depends on the mode.
A name token is a file name that is valid for the file system. The root directory does not have a name
token.
A mode token is a 6-character string. The first character specifies the type of the file. It can be one of the
following characters:
- Regular file
Section 1M484 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005