I am trying to mount a HFS+ partition in hybrid .dmg file to a local folder.
I found a HFS+ superblock in it (as per instructions in here) and tried to associate it with /dev/loop0 and then mount:
losetup -o MY_HFS_SUPERBLOC_OFFSET /dev/loop0 image.dmg mount -t hfsplus /dev/loop0 /mnt/cdrom/
However when I ran last command from list above, I get this message:
mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
dmesg | tail:
[12130.800828] hfs: failed to load catalog file
I am positive that I'm specifying correct MY_HFS_SUPERBLOC_OFFSET, I followed this Technical Note from Apple on structure of HFS+ partitions and found a matching copy of Volume Header in the end of .dmg file.
How would I mount this image?
All suggestions appreciated!