I created a DMG file using Disk utility in Recovery Mode (File -> New Image -> Image from Folder).
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?
121 Answer
Found this online. Here is the link: How to repair a corrupted sparse bundle/image or dmg file
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) 4