Using hdiutil to create a blank .dmg image in the current directory
3
votes
1
answer
4704
views
As a workaround to this issue , I want to use the
hdiutil
to create a blank image in the current directory. The settings should be identical to these of the GUI Disk Utility (File
> New Image
> Blank Image
):
So far I have figured out the below options for![]()
hdiutil create
:
- -size 100m
or -megabytes 100
- -type SPARSEBUNDLE
--> It seems like -type SPARSE
and -type UDIF
should be possible. I am not sure what is the difference though, or which one is better.
- -fs 'Case-sensitive APFS'
--> That seems to be more performant than the conventional -fs 'Case-sensitive Journaled HFS+'
file system
the part I can't figure out are:
- how to make a blank image, not from a folder
- how to place it in the current directory
- what other options should I specify
I would appreciate it if you could help me figure out the above issues and, if possible, answer my other questions.
Asked by Foad
(163 rep)
Dec 17, 2021, 10:56 PM
Last activity: Dec 17, 2021, 11:45 PM
Last activity: Dec 17, 2021, 11:45 PM