Help resizing a DMG?

Discussion in 'Mac OS X Lion (10.7)' started by VirtualRain, Feb 5, 2012.

  1. VirtualRain, Feb 5, 2012
    Last edited: Feb 5, 2012

    VirtualRain macrumors 603

    VirtualRain

    Joined:
    Aug 1, 2008
    Location:
    Vancouver, BC
    #1
    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?
     
  2. VirtualRain thread starter macrumors 603

    VirtualRain

    Joined:
    Aug 1, 2008
    Location:
    Vancouver, BC
    #2
    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.
     

Share This Page