How can I run fsck on a disk image via Mac Terminal?

Posted by mvizual on Super User See other posts from Super User or by mvizual
Published on 2011-09-02T18:18:58Z Indexed on 2012/03/23 23:33 UTC
Read the original article Hit count: 142

Filed under:

I want to run fsck on a disk image before I use it to restore (replace) a corrupted volume. Using Terminal, what would be the proper command, syntax, and options for this operation?

I've just recently become acquainted with Terminal and line commands, so syntax and specific options aren't part of my computing vocabulary. I'm using Terminal 2.1.2, bash, OS 10.6.8.

Ultimately, I'm trying to restore an image to a secondary startup volume (external drive). The image is mounted on my desktop and I want to check it for errors before I use it. Disk Utility runs "repair disk" successfully but the integrity of the image is suspect.

© Super User or respective owner

Related posts about fsck