Enable Disk Utility advanced image verification options in OS X

If you need more than CRC-32 checksumming options in Disk Utility, a quick hidden preference setting can enable a number of additional options.

Disk Utility is Apple's tool for managing disks and disk images in OS X. One component of this program's image handling features is the ability to compute a checksum to verify the image's integrity. Sometimes when you download a disk image from a Web site, the site will mention a checksum for the image that you can compare to a locally computed checksum. If these do not match, then chances are the file was altered from the intended version supplied on the site.

Checksum routines in Disk Utility
A number of additional checksumming options will be available after enabling the hidden Disk Utility preferences setting. Screenshot by Topher Kessler/CNET

There are a number of checksumming routines commonly used for providing integrity checks for disk images and other files distributed on the Internet, but Disk Utility by default only offers CRC-32 checksums as its sole option, which can be accessed in the Images > Checksum menu. When selected, you can then locate and choose your desired disk image, and have Disk Utility compute and present the checksum result for you.

Having only one option may be a bit limiting, especially since other checksums like MD5 and SHA are commonly used. However, even though Disk Utility only shows CRC-32, it does have hidden support for other checksum routines. To enable this, simply open the OS X Terminal and run the following command:

defaults write com.apple.DiskUtility advanced-image-options 1

After running this command, instead of only seeing "CRC-32" as the checksumming routine, you will have options for MD5, various SHA algorithms, and iPod and Disk Copy algorithms.

As with the CRC-32 checksum, you simply need to select any one of these, and then choose the desired disk image in the Open window, after which the checksum will be computed and presented to you.

To undo this option simply rerun the Terminal command and change the "1" to a "0," and then quit and relaunch Disk Utility.



Questions? Comments? Have a fix? Post them below or e-mail us!
Be sure to check us out on Twitter and the CNET Mac forums.

Tags:
Computers
About the author

    Topher, an avid Mac user for the past 15 years, has been a contributing author to MacFixIt since the spring of 2008. One of his passions is troubleshooting Mac problems and making the best use of Macs and Apple hardware at home and in the workplace.

     

    ARTICLE DISCUSSION

    Conversation powered by Livefyre

    Don't Miss
    Hot Products
    Trending on CNET

    Hot on CNET

    The Next Big Thing

    Consoles go wide and far beyond gaming with power and realism.