Is it safe to cancel hdiutil compact?

A sparse image is a type of disk image file used on Mac OS X that grows in size as the user adds data to the image, taking up only as much disk space as stored in it (quoth Wikipedia). If a sparse image takes up more space than the data it contains, that space can be reclaimed with the Terminal command hdiutil compact path/to/file.sparseimage, as explained in answer to Shrink a .sparseimage.

Now my question: Is it safe to abort (with ctrlC) a compacting operation, or could that cause damage to the image?

0 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like