NEWFS_HFS(8)
okay so bestie, this is the NEWFS_HFS(8) page β System Manager's Manual vibes, but make it cute β and the command we're obsessed with is mkfs.hfsplus π
π NAME π
mkfs.hfsplus β construct a new HFS Plus file system β¨
β¨ SYNOPSIS β¨
mkfs.hfsplus [-N] [-U uid] [-G gid] [-M mask] [-P] [-s] [-b block-size]
[-c clump-size-list] [-i first-cnid] [-J [journal-size]]
[-n node-size-list] [-v volume-name] special
mkfs.hfsplus -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]] [-n node-size-list]
[-v volume-name]
πΈ DESCRIPTION πΈ
mkfs.hfsplus builds an HFS Plus file system on the specified special device. Before you run mkfs.hfsplus, the disk should be partitioned using the Disk Utility application or pdisk(8) β like, get your disk situation cute first, bestie π«Ά
The file system default parameters are calculated based on the size of the disk partition. Typically the defaults are reasonable, however mkfs.hfsplus has several options to allow the defaults to be selectively overridden. The options are as follows:
-N [partition-size]β Causes the file system parameters to be printed out without really creating the file system π. If the argument following the-Nstarts with a decimal digit, it is assumed to be a partition size. The partition size may be given in decimal, octal (with leading0), or hexadecimal (with leading0x). The partition size argument can be specified in 512-byte blocks (with absuffix), petabytes (psuffix), terabytes (tsuffix), gigabytes (gsuffix), megabytes (msuffix), or kilobytes (ksuffix). All suffixes indicate binary, not decimal, multipliers (e.g.,1kis 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 nospecialdevice argument shall be provided. If no partition size is given, then the size of the givenspecialdevice is used instead, and thespecialdevice will not be written to.-U uidβ Set the owner of the file system's root directory to uid.-G gidβ Set the group of the file system's root directory to gid.-M maskβ Specify the octal access permissions mask for the file system's root directory.-Pβ SetkHFSContentProtectionBitin the volume's attributes, which will cause the volume to be mounted with the"protect"option if the kernel supports it.-sβ Creates a case-sensitive HFS Plus filesystem. By default a case-insensitive filesystem is created. Case-sensitive HFS Plus file systems require a Mac OS X version of 10.3 (Darwin 7.0) or later.-b block-sizeβ The allocation block size of the file system. The default value is4096.-c clump-size-listβ This specifies the clump and/or initial sizes, in allocation blocks, for the various metadata files. Clump sizes are specified with the-coption followed by a comma separated list of the formarg=blocks.
Example: -c c=5000,e=500
a=blocksβ Set the attribute file clump size.b=blocksβ Set the allocation bitmap file clump size.c=blocksβ Set the catalog file clump size.d=blocksβ Set the data fork clump size.e=blocksβ Set the extent overflow file clump size.r=blocksβ Set the resource fork clump size.
-i first-cnidβ This specifies the initial catalog node ID for user files and directories. The default value is16.-J [journal-size]β Creates a journaled HFS+ volume. The default journal size varies, based on the size of the volume. Appending an'M'to the journal size implies megabytes (i.e.64Mis 64 megabytes). The maximum journal size is1024megabytes.-n node-size-listβ This specifies the b-tree node sizes, in bytes, for the various b-tree files. Node sizes are specified with the-noption followed by a comma separated list of the formarg=bytes. The node size must be a power of two and no larger than32768bytes.
Example: -n c=8192,e=4096
a=bytesβ Set the attribute b-tree node size.c=bytesβ Set the catalog b-tree node size.e=bytesβ Set the extent overflow b-tree node size.
-v volume-nameβ Volume name (file system name) in ascii or UTF-8 format.
π SEE ALSO π
π HISTORY π
The mkfs.hfsplus 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.
π source/version: Mac OS X; date: June 19, 2008 β bye bestie, go make a filesystem responsibly π
π¦ where this page comes from
- alpine 3.24: hfsprogs-doc 540.1_p3-r5 Β· APSL-2.0
- epel 9: hfsplus-tools 540.1.linux3-26.el9 Β· APSL 2.0
- fedora 43: hfsplus-tools 540.1.linux3-35.fc43 Β· APSL-2.0
- fedora 44: hfsplus-tools 540.1.linux3-36.fc44 Β· APSL-2.0
- Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms