Skip to main content
Question

Scripting multiple partitions


Forum|alt.badge.img+7

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.

8 replies

Forum|alt.badge.img+7
  • Author
  • Contributor
  • 54 replies
  • May 22, 2012

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


Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • May 22, 2012

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


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 54 replies
  • May 22, 2012

Correct.

What I currently have:

Macintosh HD and Recovery Partition with script.


Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • May 22, 2012

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.


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 54 replies
  • May 22, 2012

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


Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • May 22, 2012

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


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 54 replies
  • May 22, 2012

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


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 54 replies
  • May 22, 2012

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings