2019-10-12 15:17:22 +01:00
|
|
|
# hdiutil
|
|
|
|
|
|
|
|
> Utility to create and manage disk images.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/hdiutil.1.html>.
|
2019-10-12 15:17:22 +01:00
|
|
|
|
|
|
|
- Mount an image:
|
|
|
|
|
2019-11-22 15:03:55 +00:00
|
|
|
`hdiutil attach {{path/to/image_file}}`
|
2019-10-12 15:17:22 +01:00
|
|
|
|
|
|
|
- Unmount an image:
|
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`hdiutil detach /Volumes/{{volume_file}}`
|
2019-10-12 15:17:22 +01:00
|
|
|
|
|
|
|
- List mounted images:
|
|
|
|
|
|
|
|
`hdiutil info`
|
|
|
|
|
|
|
|
- Create an ISO image from the contents of a directory:
|
|
|
|
|
2019-11-22 15:03:55 +00:00
|
|
|
`hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}`
|