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

m
mkfs_hfs(1M) mkfs_hfs(1M)
NAME
mkfs (hfs) - construct an HFS file system
SYNOPSIS
/usr/sbin/mkfs
[-F hfs][-d][-L
-S][-V][-o specific_options] special
[size [nsect ntrack blksize fragsize ncpg minfree rps nbpi]]
/usr/sbin/mkfs
[-d][-F hfs][-L
-S][-V][-o specific_options]
special [proto [nsect ntrack blksize fragsize ncpg minfree rps nbpi]]
/usr/sbin/mkfs
[-F hfs][-m][
-V] special
Remarks
HFS file systems are normally created with the
newfs command (see newfs_hfs(1M)).
DESCRIPTION
The
mkfs command constructs an HFS file system by writing on the special file special. The
mkfs com-
mand builds the file system with a root directory and a
lost+found directory (see fsck_hfs(1M)). The
FS_CLEAN magic number for the file system is stored in the superblock.
The mkfs command creates the file system with a rotational delay value of zero (see tunefs(1M)).
Options
mkfs recognizes the following options:
-F hfs Specify the HFS file system type.
-d This option allows the mkfs command to make the new file system in an ordinary
file. In this case, special is the name of an existing file in which to create the file sys-
tem. When this option is used, the size of the new file system cannot be defaulted. It
must either be specified on the command line following special, or if a prototype file is
being used, it must be the second token in the prototype file as usual.
-L-S There are two types of HFS file systems, distinguished mainly by directory formats
that place different limits on the length of file names.
If -L is specified, build a long-file-name file system that allows directory entries (file
names) to be up to MAXNAMLEN (255) bytes long.
If -S is specified, build a short-file-name file system that allows directory entries (file
names) to be up to DIRSIZ (14) bytes long.
If neither -L nor -S is specified, build a file system of the same type as the root file
system.
-m Display the command line that was used to create the file system. The file system
must already exist. This option provides a means to determine the parameters used
to construct the file system.
-V Echo the completed command line, but perform no other action. The command line is
generated by incorporating the user-specified options and other information derived
from /etc/fstab . This option allows the user to verify the command line.
-o specific_options
Specify a list of comma separated suboptions and/or keyword/attribute pairs from the
list below.
largefiles|nolargefiles
Controls the largefile featurebit for the file system. The default is nolargefiles . This
means the bit is not set, and files created on the file system will be limited to less than 2 giga-
bytes in size. If largefiles is specified, the bit is set and the maximum size for files created
on the file system is not limited to 2 gigabytes (see mount_hfs(1M) and fsadm_hfs(1M)).
Arguments
mkfs recognizes the following arguments:
special The file name of a special file.
One of the following arguments can be included after special:
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M483