Mac OS X DMG disk images

From Noah.org
Revision as of 02:54, 27 December 2014 by Root (talk | contribs) (Created page with 'Category: Engineering Make sure you have the kernel modules to support HFS and loop mounting. <pre> modprobe loop modprobe hfs modprobe hfsplus </pre> Check if the '''DMG''…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Make sure you have the kernel modules to support HFS and loop mounting.

modprobe loop
modprobe hfs
modprobe hfsplus

Check if the DMG file is compressed or raw.

file example.dmg

It will say something about HFS data or something about compressed data. If the dmg is compressed then 7zip handles these well. You can also use dmg2img, but 7zip is more general and flexible.

7z x example.dmg

The disk will be split into separate files based on partition. There may be lots of small partitions of little interest. Typically, the largest partition file will be the one of interest.

mkdir -p /media/dmg
mount -t hfsplus -o loop example.dmg /media/dmg
# Or try:
mount -t hfs -o loop example.dmg /media/dmg