Posted on 08-08-2012 06:17 AM
Feeling dumb. Can someone tell me how to snap a disk image that doesn't include free space? I've got an external hard drive that I made a boot image of and I'm trying to snap an image of it so that it can be deployed to other USB devices (thumb drives, hard drives etc) for techs to boot from and image with.
The problem is that while it's only using ~7GB of disk, the image is ~20GB because that's how big the partition is that I installed the OS on. When I try and apply the disk image to a 16GB USB thumb drive it says there's not enough space.
Follow?
Thanks
Solved! Go to Solution.
Posted on 08-08-2012 06:26 AM
use instadmg to prep the image and avoid some of these issues.
use `hdiutil resize -size 12G image.dmg` or similar. check the man page for specifics.
Posted on 08-08-2012 06:23 AM
I'm thinking I've had the same problem before, but I never considered free space thing.
What I did was mount the disk image, and then use CCC to clone the mounted volume to the USB stick. It worked in my case.
Posted on 08-08-2012 06:26 AM
use instadmg to prep the image and avoid some of these issues.
use `hdiutil resize -size 12G image.dmg` or similar. check the man page for specifics.
Posted on 08-08-2012 06:28 AM
You probably need to use hdiutil to either create the image from the source, or reduce its size like Nate stated. I don't think doing it from the GUI will let you capture only the data and not the entire volume.
Posted on 08-08-2012 06:28 AM
Thanks, Nate.