hfs.util(8)

hfs.util8

Hfs+ file system utility

Usage

hfs.util -m device mountpoint [mountflag1] [mountflag2] [mountflag3] [mountflag4]

hfs.util -p device [mountflag1] [mountflag2] [mountflag3] [mountflag4]

hfs.util -J [size] mountpoint

hfs.util -U mountpoint

hfs.util -N device

hfs.util -I mountpoint

hfs.util [-aksu] device

Overview

The hfs.util command supports the mounting, probing, and unmounting of HFS+ file systems.

Options:

-a

Adopt permissions for the HFS file system at device

-I

Print out status information about the journal on the HFS file system at mountpoint

-J [size]

Enable journaling on the HFS file system mounted on mountpoint. An optional size may be specified (e.g. 32M for a 32 megabyte journal).

-k

Get the UUID key for the HFS file system at device.

-m

Mount the HFS file system located on device onto mountpoint with the flags mountflag1 mountflag2 mountflag3 mountflag4

-M

Force mount the HFS file system located on device onto mountpoint with the flags mountflag1 mountflag2 mountflag3 mountflag4. This is a deprecated option.

-N

Disable journaling on a HFS+ file system located at device

-p

Probe the device for an HFS file system using the flags mountflag1 mountflag2 mountflag3 mountflag4

-s

Set the UUID key (generates a new UUID value) for the HFS file system at device

-u

Unmount the HFS file system located at device

-U

Disable journaling on the HFS+ file system mounted on mountpoint

The mountflags referenced above are either:

  • removable or fixed

  • readonly or writeable

  • suid or nosuid

  • dev or nodev

Note that for the device references above, you must only supply the last component of the path to the device in question, such as disk0s2 rather than /dev/disk0s2.

Releases

161 releases since Mac OS X 10.1; the text changed 7 times.

  1. 10.1–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.3.9
  4. 10.4–10.5.8
  5. 10.6–10.7.5
  6. 10.8–10.8.5
  7. 10.9–11.5
  8. 12.0.1–26.5

-I since Mac OS X 10.3; -J since Mac OS X 10.3; -M since Mac OS X 10.3; -N since Mac OS X 10.6; -U since Mac OS X 10.3; -m since Mac OS X 10.3; -p since Mac OS X 10.3; -s since Mac OS X 10.2.

-n until Mac OS X 10.1.5.

History

Derived from the Openstep Workspace Manager file system utility programs.

From hfs 715.120.4 in macOS 26.5. Parsed by carta from the page's mdoc source.