Dmg2img
DMG2IMG allows you to convert a (compressed) Apple Disk Images (imported from http://vu1tur.eu.org/dmg2img). Note: the master branch contains imported code, but lacks bugfixes/features from the develop branch. "develop" branch is recommended!
Install / Use
/learn @Lekensteyn/Dmg2imgREADME
DMG2IMG
DMG2IMG is a tool which allows converting Apple compressed dmg archives to standard (hfsplus) image disk files.
This tool handles zlib, bzip2, and LZFSE compressed dmg images.
Usage:
dmg2img [-l] [-p N] [-s] [-v] [-V] [-d] <input.dmg> [<output.img> | -]
or
dmg2img [-l] [-p N] [-s] [-v] [-V] [-d] -i <input.dmg> -o <output.img | ->
Options: -s (silent) -v (verbose) -V (extremely verbose) -d (debug)
-l (list partitions) -p N (extract only partition N)
See the original README file for platform-specific instructions to open or mount the resulting output file.
The original author is vu1tur, http://vu1tur.eu.org/dmg2img. This Git repository is maintained by Peter Wu at https://github.com/Lekensteyn/dmg2img based on imported tarballs. It includes bug and security fixes and further enhancements.
Building
Required packages:
- zlib1g-dev (zlib support)
- libbz2-dev (bzip2 support)
- libssl-dev (only required for vfdecrypt, not needed for dmg2img)
LZFSE decompression support requires the LZFSE library which can be found at https://github.com/lzfse/lzfse/. As this library is not widely available on Linux distributions, it is not enabled by default.
To build dmg2img:
make dmg2img
To build dmg2img with LZFSE support:
make dmg2img HAVE_LZFSE=1
To build dmg2img with Address Sanitizer for debugging purposes:
make dmg2img CC=clang LDFLAGS=-fsanitize=address
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
