Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

Re-partition Disk Before Imaging

Description

I wrote this script to automate the process of re-partitioning the primary partition so that when Casper Imaging performs a block-copy of my images (which include "Macintosh HD" and "Recovery HD") I do not end up with multiple "Recovery HD" partitions. By default, Casper Imaging only targets the partition that contains the Macintosh OS, so without re-partitioning it is possible to end up with more partitions than required. The script works for both "primary partitions" and "logical partitions" including Fusion drives. The idea is to wipeout all local partitions and attempt to recreate what was there before. That way, Casper Imaging doesn't complain because the expected partition with "Macintosh HD" has not changed. I then follow-up the imaging process by running a script to convert any "primary partitions" to CoreStorage.

Download

Preview

Generating Preview...

321 Downloads
Uploaded: 3/5/15 at 3:27 PM by athomson
Product: Casper Suite