[Casper] Partitioning Macintosh HD during Imaging

Ryan Harter Ryan.Harter at uwsp.edu
Fri Nov 7 06:31:12 PST 2008


In theory the Casper Installer could get confused when you repartition  
the space, as to what to set the boot device too.  You could perhaps  
add to your script after you partition the drive to 'bless' it.  This  
way, even if Casper forgets to set the boot volume, you have already  
done it manually.

I'm not entirely up to speed with the bless command, but I think  
Bombich has some good info on it, or you could 'man bless'.

Hope it helps,
Ryan Harter
UW - Stevens Point
Workstation Developer
715.346.2716
Ryan.Harter at uwsp.edu

On Nov 7, 2008, at 8:19 AM, Mark Hughes wrote:

> okay...this tip got the process to split the drive how we wanted  
> it.  Though it seems as if we are in a
> netboot loop.  The test machine now netboots on each restart back to  
> casper imaging.
>
> Mark Hughes, Apple Technician
> TIS Department, KCKPS USD500
> Cell 913-449-7791
> mahughe at kckps.org
>>>> Ryan Harter <rharter at uwsp.edu> 11/06/08 4:09 PM >>>
> Also if you are netbooted you will need to make sure that you have
> checked "diskless" on your netboot image on the server.  Otherwise it
> uses the local disk for "shadow" files and can't unmount it because it
> is in use.
>
> Ryan Harter
> UW - Stevens Point
> Workstation Developer
> 715.346.2716
> Ryan.Harter at uwsp.edu
>
> On Nov 6, 2008, at 3:44 PM, Mark Hughes 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/20081107/68a321ee/attachment.html 


More information about the Casper mailing list