Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

armoguy94

macrumors 6502
Original poster
I made an image of a partition on my hard drive. The partition takes up 8gb but the actual content in it is below 4gb, the rest is just empty space. The image, no matter what I do or how I do it, keeps turning out to be 8gb as well, and then when I mount it, it has more than 4gb of empty space. How do I shrink the disc image to remove the empty space?! Nothing seems to be working.

I tried hdiutil resize in an attempt to resize the dmg to 4gb, and it returned an error saying that is below the minimum size...?
I also tried hdiutil compact and it returned an error saying Function not implemented.

Is there anything I can do in order to shrink this dmg to delete all the useless space? It's important, because I need to burn it to a DVD.
 
Pry tell, how would one exactly do that, I clicked on "Convert" from "Disk Utility" and do not see that as an option --should I?
That's how you would do it. You may need to enable additional disk image types in Disk Utility (shoulf be easy to find on Google). Then just try again and you should see the sparse option.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.