Macos – Unable to open DMG files – “Corrupt Image”

data-recoverydmg-imagemacmacbookmacos

I created a DMG file using Disk utility in Recovery Mode (File -> New Image -> Image from Folder).

Corrupt Image dmg

I tried all the possible options from this question:

  • extracting DMG using 7Zip – not working
  • converting it to another format like ISO – not converting
  • opening DMG using Disk Drill – not opening
  • opening DMG using Data Rescue – not opening

Is there any way to extract the data from the corrupted DMG file?

Best Answer

Found this online. Here is the link: https://www.youtube.com/watch?v=TggCS8q5yGE

Here are the commands:

hdiutil attach -nomount -noverify -noautofsck -readwrite /volumes/"name of your image"

fsck_hfs -drfy /dev/diskxsx  (x is your disk number)

hdiutil detach /dev/diskxsx  (x is your disk number)
Related Question