What are you booted from when you perform the partitioning? Tiger or Leopard?<br>The following command is what I typically use.<br>diskutil partitionDisk disk0 3 HFS+ Macintosh\ HD 40G HFS+ Restore 20G HFS+ Data 0b<br>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.<br>
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...<br><br>/usr/sbin/diskutil partitionDisk disk0 2 HFS+ Macintosh\ HD 50G HFS+ data 23G<div>
<br></div><div><br><div class="gmail_quote">On Thu, Nov 6, 2008 at 4:44 PM, Mark Hughes <span dir="ltr"><<a href="mailto:mahughe@kckps.org">mahughe@kckps.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
We are setting up images and netbooting across our network. We have the image part down no problem.<br>
We are wanting to split up the HD into a OS partition and a data partition.<br>
<br>
For some reason the script we are using errors out during the imaging process, however, when<br>
we run it thru target mode to a machine it works perfectly. We are imaging eMacs to <a href="http://10.4.11." target="_blank">10.4.11.</a><br>
<br>
The error from the jss log is as follows:<br>
<br>
Result of running split_part.sh was: Partitioning encountered error Could not unmount disk (-10000) on disk disk0<br>
<br>
The scripts is as follows:<br>
<br>
#!/bin/sh<br>
<br>
#create two partitions, one data and one for the OS<br>
<br>
/usr/sbin/diskutil partitionDisk disk0 2 HFS+ 'Macintosh HD' 50G HFS+ data 23G<br>
<br>
echo 'done'<br>
<br>
any ideas?<br>
<br>
Thanks in advanced....<br>
<font color="#888888"><br>
<br>
Mark Hughes, Apple Technician<br>
TIS Department, KCKPS USD500<br>
Cell 913-449-7791<br>
<a href="mailto:mahughe@kckps.org">mahughe@kckps.org</a><br>
_______________________________________________<br>
Casper mailing list<br>
<a href="mailto:Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><br>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>
</font></blockquote></div><br></div>