hdik(8) | System Manager's Manual | hdik(8) |
hdik
— lightweight
tool to attach and mount disk images in-kernel
hdik |
imagefile [options] |
hdik |
-e device |
hdik
is a simple tool that can be used to
attach disk images directly to the DiskImages driver. The end result is
functionally similar to passing -kernel
to
hdiutil(1)'s
attach
verb. hdik
does not rely upon the presence of
DiskImages or other high-level frameworks.
The DiskImages driver only supports a selection of disk image formats: UDRW, UDRO, UDZO, ULFO, SPARSE (UDSP). It also supports shadow files. hdiutil(1)'s imageinfo verb indicates whether a particular image is kernel compatible.
hdik
requires root access to perform its
functions.
In the first form, an image to attach must be provided:
In its second form, hdik
issues an eject
command to the specified device. The argument is the
full device node path (e.g. /dev/disk2). Any volumes
mounted from the device must be unmounted first, or the command will fail.
See umount(8).
-shadow
[shadowfile]-shadow
defaults to
<imagename>.shadow. If the shadow file does not exist, it is
created.-nomount
-drivekey
keyname=valuehdiutil(1), diskarbitrationd(8), diskutil(8), umount(8), ioreg(8)
20 Mar 2014 | macOS |