This gist details how to create or restore a disk image in Mac OSX. There are three methods that are described: Carbon Copy Cloner, Disk Utility, and CommandLine.
- Disclaimer:
- I have no financial incentives to https://bombich.com or Apple.
 - Always make a backup of your data, and make 2 separate backups before trying something new.
 - The following steps have been tested and are a summary of my personal recommendations, but should be used at your own risk.
 - If there is a chance of imminent data loss, contact a professional for assistance, and do not rely on a random person from the Internet for help.