HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hdiutil — Utility to create and manage disk images. More information: <https://keith.github.io/xcode-man-pages

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommanddiskandclimanagehdiutilutility
macos

Problem

How to use the hdiutil command: Utility to create and manage disk images. More information: <https://keith.github.io/xcode-man-pages/hdiutil.1.html>.

Solution

hdiutil — Utility to create and manage disk images. More information: <https://keith.github.io/xcode-man-pages/hdiutil.1.html>.

Mount an image:
hdiutil attach {{path/to/image_file}}


Unmount an image:
hdiutil detach /Volumes/{{volume_file}}


List mounted images:
hdiutil info


Create an ISO image from the contents of a directory:
hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}

Code Snippets

Mount an image

hdiutil attach {{path/to/image_file}}

Unmount an image

hdiutil detach /Volumes/{{volume_file}}

List mounted images

hdiutil info

Create an ISO image from the contents of a directory

hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}

Context

tldr-pages: osx/hdiutil

Revisions (0)

No revisions yet.