[Casper] Partitioning Macintosh HD during Imaging

Criss Myers CMyers at uclan.ac.uk
Fri Nov 7 00:12:25 PST 2008


This is what i use 

#!/bin/sh 

diskutil partitionDisk disk0 2 GPTFormat "HFS+" "Macintosh HD" "80%" "MS-DOS" "Windows" "20%" 

diskutil enableJournal disk0s2 

i run it as the first script before anything else, 

I netinstall using caspers netinstall, 

Im runinng 10.5.4 netinstall and client image 

Criss


Criss Myers
Senior Customer Support Analyst (Mac Services)
Apple Certified Technical Coordinator v10.5
LIS Business Support Team
Library 301
University of Central Lancashire
Preston PR1 2HE
Ex 5054
01772 895054

>>> On Thu, Nov 6, 2008 at 10:01 PM, in message <491314F5.7141.0039.0 at kckps.org>, "Thomas Larkin" <tlarki at kckps.org> wrote:

The weird thing is guys and gals, is that I also have a simple one liner pre image script that uses diskutil to create a single partition on disk0 and name it Macintosh HD, just in case the users changed the volume name. 


That script works, I used the same code in this script and it doesn't work while imaging, but if you run it manually, no problem works like a champ.  Casper version 6.01

>>> <NATHANIEL.LINDLEY at spps.org> 11/06/08 3:52 PM >>>

I saw this strange problem, too.  Check what the disk# is when netbooted vs. firewire.  when I netboot the it is disk0 and with firewire it is disk1
check using "diskutil list" in Terminal
-Nathaniel






"Mark Hughes" <mahughe at kckps.org> 
Sent by: casper-bounces at list.jamfsoftware.com 
11/06/2008 03:35 PM 

To 

<Casper at list.jamfsoftware.com> 

cc 



Subject 

[Casper] Partitioning Macintosh HD during Imaging 













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/20081107/9e905579/attachment.htm 


More information about the Casper mailing list