NEWFS_HFS(8) | System Manager's Manual | NEWFS_HFS(8) |
newfs_hfs
—
construct a new HFS Plus file system
newfs_hfs |
[-N ] [-U
uid] [-G
gid] [-M
mask] [-P ]
[-s ] [-b
block-size] [-c
clump-size-list] [-i
first-cnid] [-J
[journal-size]] [-D
journal-device] [-n
node-size-list] [-v
volume-name] special |
newfs_hfs |
-N partition-size
[-U uid]
[-G gid]
[-M mask]
[-P ] [-h |
-w ] [-s ]
[-b block-size]
[-c clump-size-list]
[-i first-cnid]
[-J [journal-size]]
[-D journal-device]
[-n node-size-list]
[-v volume-name] |
Newfs_hfs
builds an HFS Plus file system
on the specified special device. Before running
newfs_hfs
the disk should be partitioned using the
Disk
Utility application or
pdisk(8).
The file system default parameters are calculated based on the
size of the disk partition. Typically the defaults are reasonable, however
newfs_hfs
has several options to allow the defaults
to be selectively overridden. The options are as follows:
-N
[partition-size]-N
starts with a decimal digit, it is assumed to
be a partition size. The paritition size may be given in decimal, octal
(with leading `0'), or hexadecimal (with leading `0x'). The partition size
argument can be specified in 512-byte blocks (with a `b' suffix),
petabytes (`p' suffix), terabytes (`t' suffix), gigabytes (`g' suffix),
megabytes (`m' suffix), or kilobytes (`k' suffix). All suffixes indicate
binary, not decimal, multipliers (e.g., `1k' is 1024 bytes). If no suffix
is specified, the value is assumed to be in bytes; if an illegal suffix is
specified, it results in a size of 0 bytes.
If the partition size is given, then no special device argument shall be provided. If no partition size is given, then the size of the given special device is used instead, and the special device will not be written to.
-U
uid-G
gid-M
mask-P
-s
-b
block-size-c
clump-size-list-c
option followed by
a comma separated list of the form arg=blocks.
Example: -c c=5000,e=500
-i
first-cnid-I
initial-size-list-I
option followed by
a comma separated list of the form arg=blocks.
Example: -I c=5000,e=500
-J
[journal-size]-D
journal-device-n
node-size-list-n
option followed by
a comma separated list of the form arg=bytes. The node
size must be a power of two and no larger than 32768 bytes.
Example: -n c=8192,e=4096
-v
volume-nameThe newfs_hfs
command appeared in Mac OS X
Server 1.0 . As of Mac OS X 10.6, this utility no longer generates HFS
standard file systems.
June 19, 2008 | Mac OS X |