Can't mount HFS+ drive, bad superblock?

just for the records, here is the way I found to mount a Mac disk image created with dd.

1) Get the start and sector size

fdisk -l /path/to/image.dd

You get X for start and Y for size.

2) mount the partition

mount -t hfsplus -o ro,offset=$((512*X)),sizelimit=$((512*Y)) /path/to/image.dd /mnt/macMount

It's a mix of solution that I found. Hope this would help someone.


I had the same issue after duplicating an HFS+ partition so I though I might share my solution.

I solved it by running a Disk repair from Mac Os Disk Utility application. You can run it from a Macos install or the Recovery DVD.


Not a direct solution, but if you have destroyed HFS+ partition you may want to take a look at hfs+rescue. It would allow you to get the files even with broken partition. It even works nicely on ubuntu!

Unlike photorec it also provides filenames and directory structure.