Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

MOUNT_HFS(8)              BSD System Manager's Manual             MOUNT_HFS(8)

     mount_hfs -- mount an HFS/HFS+ file system

     mount_hfs [-e encoding] [-u user] [-g group] [-m mask] [-o options] [-j] [-w] [-x] special directory

     The mount_hfs command attaches the HFS file system residing on the device special to the global file
     system namespace at the location indicated by directory.  This command is normally executed by mount(8)
     at boot time.

     The options are as follows:

     -e encoding (standard HFS volumes only)
             Specify the Macintosh encoding. The following encodings are supported:

             Arabic, ChineseSimp, ChineseTrad, Croatian, Cyrillic, Greek, Hebrew, Icelandic, Japanese,
             Korean, Roman (default), Romanian, Thai, Turkish

     -u user
             Set the owner of the files in the file system to user.  The default owner is the owner of the
             directory on which the file system is being mounted.  The user may be a user-name, or a numeric

     -g group
             Set the group of the files in the file system to group.  The default group is the group of the
             directory on which the file system is being mounted.  The group may be a group-name, or a
             numeric value.

     -m mask
             Specify the maximum file permissions for files in the file system.  (For example, a mask of 755
             specifies that, by default, the owner should have read, write, and execute permissions for
             files, but others should only have read and execute permissions.  See chmod(1) for more infor-mation information
             mation about octal file modes.)  Only the nine low-order bits of mask are used.  The default
             mask is taken from the directory on which the file system is being mounted.

     -o      Options are specified with a -o flag followed by a comma separated string of options.  See the
             mount(8) man page for possible options and their meanings.

     -j      Ignore the journal for this mount.

     -w      Mount the HFS wrapper volume.

     -x      Disable execute permissions on a standard HFS file system.

     mount(2), unmount(2), fstab(5), mount(8)

     Some HFS file systems with highly fragmented catalog files may not mount.

     The mount_hfs utility first appeared in Mac OS X Server 1.0.

Mac OS X                        March 14, 2001                        Mac OS X

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.