ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).




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

NAME
     hdik -- lightweight in-kernel disk image mounting tool.

SYNOPSIS
     hdik imagefile [options]

DESCRIPTION
     hdik is a lightweight tool that can be used to attach disk images in-kernel (i.e. not using a user-land
     process to providing the backing store).  Only a subset of disk images can be mounted in this manner
     including read/write disk images, UDIF disk images that use zlib compression, shadowed disk images, and
     sparse disk images.

     hdik is intended for use in situations where linking against the DiskImages framework is problematic or
     an extremely lightweight mechanism for attaching a disk image is needed.

     You can specify that the image should not be processed by disk arbitration by specifying the -nomount
     option.  You can also specify that the image be mounted with a shadow file by using the -shadow option.

     The following argument must be specified:

     imagefile   the disk image to be mounted.

OPTIONS
     -shadow [shadowfile]
                 Use a shadow file in conjunction with the data in the image.  This option prevents modifi-cation modification
                 cation of the original image and allows read-only images to be used as read/write images.
                 When blocks are being read from the image, blocks present in the shadow file override
                 blocks in the base image.  When blocks are being written, the writes will be redirected to
                 the shadow file.  If not specified, -shadow defaults to <imagename>.shadow.  If the shadow
                 file does not exist, it is created.
     -nomount    Suppress automatic mounting of the image or partitions on it.  This will result in /dev
                 entries being created, but will not mount any volumes.
     -drivekey keyname=value
                 Specify a key/value pair for the IOHDIXHDDrive object created (shows up in the IOKit reg-istry registry
                 istry of devices which is viewable with ioreg(8)).

SEE ALSO
     hdid(8), hdiutil(1), diskarbitrationd(8)

Mac OS X                          29 Apr 2003                         Mac OS X

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.