HFS

The Hierarchical File System, abbreviated HFS, is Article description::the native filesystem of the Apple Macintosh and its operating system up to Mac OS 8. It was the primary base filesystem of the Macintosh on the Motorola 68000 architecture. The filesystem is case-insensitive.

Its successor HFS+ became the standard base filesystem in Mac OS 8.1 on PowerPC as well as Mac OS X on PowerPC and Intel x86. However, on PowerPC-based Macs a HFS partition is still used for the bootstrap partition.

Kernel
Since HFS partitions are normally only found on Apple Partition Maps (APM), enable this partitioning scheme in the kernel:

diskdev_cmds
The package is a port of HFS/HFS+ utilities from OpenDarwin, the BSD core operating system of macOS. It includes and  userspace utilities.

The commands have names common to OpenDarwin: and. The package creates symlinks to and. To create a new filesystem on a partition, e.g. on, use:

To use to create the NewWorld Bootblock from the example below, the command would be:

hfsutils
The package traditionally provides means to access the Hierarchical File System on m68k and ppc/ppc64 Macs. The included utilities provide limited access to a filesystem on a selected partition.

Instead of mounting the filesystem as a subfolder under the root directory, the various utilities of package access the filesystem directly. selects the partition for theese utilities and releases it again. The use of is highly recommended.

Select the partition with :

On the selected partition, the commands can be used for file and filesystem operations.

This will copy a file from the Linux filesystem to the HFS volume and vice versa. The utilities will automatically determine if the source or target is on the HFS volume or the Linux filesystem, thus the pathname should be unambiguous and use the slash "/" for Linux and the colon ":" for HFS.

The partition is released (unmounted) with the utility:

NewWorld Bootblock
A specialty of the PowerPC-based NewWorld Macs is the use of a NewWorld Bootblock for yaboot or GRUB. NewWorld Macs are PowerPC-based Macs with Open Firmware version 3.0 (OF3) or later. OF3+ will automatically look for bootable partitions, like those of the type Apple_Boot. When such a partition contains a filesystem of the type HFS, and this filesystem contains a "blessed" file (attribute ":tbxi"), this file will be selectable as a boot option from OF3+.

First, a NewWorld Bootblock has to be created using :

At the interactive command prompt this partition can either be created manually e.g. by using the command for "create new partition, specifying the partition type", or semi-automatic by using the  command for "create new 800k Apple_Bootstrap partition (used by yaboot)". Either way you should get a bootable HFS partition of either the type Apple_Boot or Apple_Bootstrap. Assuming this partition is, to bless a bootloader such as yaboot or GRUB, can be used.