10.100. Hfsutils-3.2.6

The Hfsutils package contains a number of utilities for accessing files on hfs filesystems. It is needed to run ybin.

10.100.1. Installation of Hfsutils

Apply the following patch to add a missing errno.h include and allow HFSutils to recognize devices larger than 2GB:

patch -Np1 -i ../hfsutils-3.2.6-fixes-1.patch

Prepare Hfsutils for compilation:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --mandir=/usr/share/man

Compile the package:

make

Install the package:

make install

10.100.2. Contents of Hfsutils

Installed programs: hattrib, hcd, hcopy, hdel, hdir, hfsutils, hformat, hls, hmkdir, hmount, hpwd, hrename, hrmdir, humount, hvol (these are all hardlinks to hfsutils).

Short Descriptions

hattrib

Change FS file or directory attributes.

hcd

Change working HFS directory.

hcopy

Copy files to or from an HFS volume.

hdel

Delete both forks of an HFS file.

hdir

Display an HFS directory in long format.

hformat

Create a new HFS filesystem and make it current.

hfsutils

Tools for accessing Macintosh HFS-formatted volumes.

hls

List files in an HFS directory.

hmkdir

Create a new HFS directory.

hmount

Introduce a new HFS volume and make it current.

hpwd

Print the full path to the current HFS working directory.

hrename

Rename or move an HFS file or directory.

hrmdir

Remaove an empty HFS directory.

humount

Remove an HFS volume from the list of known volumes.

hvol

Display or change the current HFS volume.