Scripting multiple partitions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:10 PM
I need assistance in scripting multiple partions in casper
1) Macintosh HD 50gb (Primary OS and applications)
2) Recovery HD 1gb
3) Restore Partion 15gb
3) Data resizable dependent on remaining space. (Home folders will live here)
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:11 PM
I understand I can probly have casper do the first 3 then have a script after for the fourth , is this the case?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:13 PM
For "Recovery HD" I assume you mean the actual Lion Recovery partition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:16 PM
Correct.
What I currently have:
Macintosh HD and Recovery Partition with script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:19 PM
You want something like this:
diskutil partitionDisk /dev/disk0 3 GPTFormat jhfs+ "Macintosh HD" 50G jhfs+ "Restore Partition" 15G jhfs+ "Data" R
Test test test, I am not a lawyer, your mileage may vary, past performance is not indicative of future gains etc etc.
hit up the diskutil man page to decipher if you don't understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:20 PM
And thats run as a before script without the erase option in casper imaging?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:21 PM
Run it before Casper Imaging, yes. You still want the erase option if you're block copying your image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:25 PM
Thanks, I thought I saw that command somewhere else in the forums but couldn't find it again. Testing now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-22-2012 12:26 PM
Thanks, I thought I saw that command somewhere else in the forums but couldn't find it again. Testing now.
