I'm trying to write a script that will repartition a drive based on it's Physical size.
If the drive is 300GB or below, 2 partitions the primary partition 50% of the total the 2nd partition will be the rest.
If the drive is above 300GB, 2 partitions the primary partition being 150GB the 2nd partition will be the rest.
Diskutil will do the partitioning.
I can also use Diskutil to get the physical drive size. The output I get for example is "250 GB"
I'm not certain though how to go about writing a script though to check the size and run one partitioning scheme or the other.