Dmg file contains a volume with identifier Apple_HFS, which is compressed with various methods (zlib, bz2, etc.), how can I extract a raw, uncompressed HFS volume from DMG file?
Right now, it cannot be done with Catacombae – HFSExplorer, due to unknown block type, with the 0x80000007 identifier, which is probably LZFSE compression method, 7z also won't do a good job.
Command line tool would be nice. I can't mount it and extract files because I want exactly, let say Apple_HFS.hfs file.
Best Answer
Solution, mount dmg file on mac, dump it to img file and extract HFS volume
and then on linux I looked up sector size and where HFS volume starts, by:
Example output:
in this example, sector size is 512 bytes and hfs volume starts at 409640th sector and is 2046376 sectors long.
Now extract volume