Skip to main content

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.

I understand I can probly have casper do the first 3 then have a script after for the fourth , is this the case?


For "Recovery HD" I assume you mean the actual Lion Recovery partition?


Correct.



What I currently have:



Macintosh HD and Recovery Partition with script.


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.


And thats run as a before script without the erase option in casper imaging?


Run it before Casper Imaging, yes. You still want the erase option if you're block copying your image.


Thanks, I thought I saw that command somewhere else in the forums but couldn't find it again. Testing now.


Thanks, I thought I saw that command somewhere else in the forums but couldn't find it again. Testing now.


Reply