Wednesday, June 25, 2008

Restoring a .dmg image from the command line

If you have pulled your hair out because the diskutility refuses to allow you to drag the target disk you want to the target field in the restore window, do the following:

Quit Disk Utility
Open Terminal (available under the Utilities menu - top of screen)
At the prompt type

asr -source your.dmg.file -target your.drive.to.image -erase

Generally if you are using an external firewire (or similar) drive the syntax may look like:

asr -source tiger-06-06-08.dmg -target /volumes/Macintosh HD -erase

No comments: