1 .\" Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
3 .\" The contents of this file constitute Original Code as defined in and
4 .\" are subject to the Apple Public Source License Version 1.1 (the
5 .\" "License"). You may not use this file except in compliance with the
6 .\" License. Please obtain a copy of the License at
7 .\" http://www.apple.com/publicsource and read it before using this file.
9 .\" This Original Code and all software distributed under the License are
10 .\" distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
11 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
12 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
13 .\" FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
14 .\" License for the specific language governing rights and limitations
15 .\" under the License.
23 .Nd construct a new HFS Plus file system
32 .Op Fl b Ar block-size
33 .Op Fl c Ar clump-size-list
34 .Op Fl i Ar first-cnid
35 .Op Fl J Ar [journal-size]
36 .Op Fl D Ar journal-device
37 .Op Fl n Ar node-size-list
38 .Op Fl v Ar volume-name
41 .Fl N Ar partition-size
48 .Op Fl b Ar block-size
49 .Op Fl c Ar clump-size-list
50 .Op Fl i Ar first-cnid
51 .Op Fl J Ar [journal-size]
52 .Op Fl D Ar journal-device
53 .Op Fl n Ar node-size-list
54 .Op Fl v Ar volume-name
57 builds an HFS Plus file system on the specified special device.
60 the disk should be partitioned using the
65 The file system default parameters are calculated based on
66 the size of the disk partition. Typically the defaults are
69 has several options to allow the defaults to be selectively overridden.
70 The options are as follows:
72 .It Fl N Ar [partition-size]
73 Causes the file system parameters to be printed out
74 without really creating the file system.
75 If the argument following the
77 starts with a decimal digit, it is assumed to be a partition size.
78 The paritition size may be given in decimal, octal (with leading `0'),
79 or hexadecimal (with leading `0x').
80 The partition size argument can be specified in 512-byte blocks (with a `b' suffix),
81 petabytes (`p' suffix), terabytes (`t' suffix), gigabytes
82 (`g' suffix), megabytes (`m' suffix), or kilobytes
83 (`k' suffix). All suffixes indicate binary, not decimal,
84 multipliers (e.g., `1k' is 1024 bytes). If no suffix is
85 specified, the value is assumed to be in bytes; if an illegal
86 suffix is specified, it results in a size of 0 bytes.
88 If the partition size is given, then no special device argument shall be provided.
89 If no partition size is given, then the size of the given special device
90 is used instead, and the special device will not be written to.
92 Set the owner of the file system's root directory to
95 Set the group of the file system's root directory to
98 Specify the octal access permissions mask for the file system's root
101 Set kHFSContentProtectionBit in the volume's attributes, which will cause the
102 volume to be mounted with the "protect" option if the kernel supports it.
104 Creates a case-sensitive HFS Plus filesystem. By
105 default a case-insensitive filesystem is created.
106 Case-sensitive HFS Plus file systems require a Mac OS X
107 version of 10.3 (Darwin 7.0) or later.
108 .It Fl b Ar block-size
109 The allocation block size of the file system.
110 The default value is 4096.
111 .It Fl c Ar clump-size-list
117 blocks, for the various metadata files.
119 sizes are specified with the
121 option followed by a comma
122 separated list of the form arg=blocks.
124 Example: -c c=5000,e=500
127 Set the attribute file clump size.
129 Set the allocation bitmap file clump size.
131 Set the catalog file clump size.
133 Set the data fork clump size.
135 Set the extent overflow file clump size.
137 Set the resource fork clump size.
139 .It Fl i Ar first-cnid
140 This specifies the initial catalog node ID for user files
141 and directories. The default value is 16.
142 .It Fl I Ar initial-size-list
146 blocks, for the various metadata files.
148 sizes are specified with the
150 option followed by a comma
151 separated list of the form arg=blocks.
153 Example: -I c=5000,e=500
156 Set the initial attribute file size.
158 Set the initial catalog file size.
160 Set the initial extent overflow file size.
162 .It Fl J Ar [journal-size]
163 Creates a journaled HFS+ volume.
164 The default journal size varies, based on the size of the volume. Appending an 'M' to the
165 journal size implies megabytes (i.e. 64M is 64 megabytes).
166 The maximum journal size is 1024 megabytes.
167 .It Fl D Ar journal-device
168 Creates the journal on special device
170 .It Fl n Ar node-size-list
171 This specifies the b-tree
174 for the various b-tree files.
176 sizes are specified with the
178 option followed by a comma separated list of
179 the form arg=bytes. The
181 size must be a power of two and no larger than
184 Example: -n c=8192,e=4096
187 Set the attribute b-tree node size.
189 Set the catalog b-tree node size.
191 Set the extent overflow b-tree node size.
193 .It Fl v Ar volume-name
194 Volume name (file system name) in ascii or UTF-8 format.
202 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.