HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
newfs_hfs(1M) newfs_hfs(1M)
-c cylinders_per_group
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.
-f 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.
-i number_of_bytes_per_inode
The density of inodes in the file system specified as the number of bytes per inode.
The default 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.
-m free_space_percent
The minimum percentage of free disk space allowed. The default value is 10 per-
cent.
Once the file system capacity reaches this threshold, only users with appropriate
privileges can allocate disk blocks.
-r revolutions_per_minute
The disk speed in revolutions per minute (rpm). The default value is 3600 revolu-
tions per minute.
-s 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. See mkfs_hfs(1M) for limits on the size of
HFS file systems.
-t tracks_per_cylinder
The number of tracks per cylinder. The default value depends on the size of the file
system. For file systems of less than 500 MB, the default is 7; for file systems
between 500 MB and 1 GB, the default is 12; for file systems larger than 1 GB the
default is 16.
-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 nolar-
gefiles. This means the bit is not set and files created on the file system
will be limited to less than 2 gigabytes 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)).
Access Control Lists
Every file with one or more optional ACL entries consumes an extra (continuation) inode. If you antici-
pate significant use of ACLs on a new file system, you can allocate more inodes by reducing the value of
the argument to the
-i option appropriately. The small default value typically causes allocation of many
more inodes than are actually necessary, even with ACLs. To evaluate the need for extra inodes, run the
bdf -i command on existing file systems. For more information on access control lists, see acl(5).
EXAMPLES
Execute the
newfs command to create an HFS file system on a non-LVM disk /dev/rdsk/c1t0d2
and reserve 40 megabytes of swap space.
HP-UX 11i Version 2: August 2003 − 2 − Hewlett-Packard Company Section 1M−−531