[Casper] Partitioning Macintosh HD during Imaging
Miles Leacy
miles.leacy at themacadmin.com
Thu Nov 6 13:52:15 PST 2008
What
are you booted from when you perform the partitioning? Tiger or Leopard?
The following command is what I typically use.
diskutil partitionDisk disk0 3 HFS+ Macintosh\ HD 40G HFS+ Restore 20G
HFS+ Data 0b
Note that the command above will create a 40 GB Macintosh HD, a 20 GB
Restore (highly recommended), and the "0b" size notation translates to
all available space. Using "0b" allows you to partition any drive
without worrying about leaving unused free space on the disk.
I'm not familiar with the single quotes on a volume name. I've always
just escaped the necessary characters. Here's the command I would use
given the parameters listed in your script...
/usr/sbin/diskutil partitionDisk disk0 2 HFS+ Macintosh\ HD 50G HFS+ data 23G
On Thu, Nov 6, 2008 at 4:44 PM, Mark Hughes <mahughe at kckps.org> wrote:
> We are setting up images and netbooting across our network. We have the
> image part down no problem.
> We are wanting to split up the HD into a OS partition and a data partition.
>
> For some reason the script we are using errors out during the imaging
> process, however, when
> we run it thru target mode to a machine it works perfectly. We are imaging
> eMacs to 10.4.11.
>
> The error from the jss log is as follows:
>
> Result of running split_part.sh was: Partitioning encountered error Could
> not unmount disk (-10000) on disk disk0
>
> The scripts is as follows:
>
> #!/bin/sh
>
> #create two partitions, one data and one for the OS
>
> /usr/sbin/diskutil partitionDisk disk0 2 HFS+ 'Macintosh HD' 50G HFS+ data
> 23G
>
> echo 'done'
>
> any ideas?
>
> Thanks in advanced....
>
>
> Mark Hughes, Apple Technician
> TIS Department, KCKPS USD500
> Cell 913-449-7791
> mahughe at kckps.org
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081106/aba52cb3/attachment.html
More information about the Casper
mailing list