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

VirtualRain

macrumors 603
Original poster
Aug 1, 2008
6,304
118
Vancouver, BC
I have a DMG copy of my CF card from my camera... it has RAW images from Dec. and Jan. and I want to break it into two smaller DMG images... one with the images from Dec. and one with the images of Jan.

The combined DMG is 24GB and read only. I made a copy to work on it.

I first converted it to a RW DMG using hdiutil in terminal.

The combined RW DMG is 32GB (bigger :confused:).

I then mounted it, deleted the unwanted images, (the DMG now shows 21GB available when mounted), emptied the trash and unmounted it.

Of course the RW DMG is still 32GB, but the contents now only consume less than 12GB.

How do I resize the DMG from 32GB to 12GB?

If I use hdiutil to resize, it gives me an error "hdiutil: resize request is below minimum size allowed" (It won't accept any size... 12g, 24g, anything less than the new bloated 32g size!).

So now what?
 
Last edited:
I figured it out... I simply had to mount the 32GB DMG that I had removed images from and use Disk Utility to create a new Read Only image of it. It then created a new disk image of just the right size... 11GB.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.