[Casper] Dual-boot deployments
Criss Myers
cmyers at uclan.ac.uk
Wed Mar 25 13:25:58 PDT 2009
That's same as ur site and it don't work for me with my netinstall but
I'd be interested in others experiences, I sent jeff mine so he can
try both
Cheers
Criss
On 25 Mar 2009, at 19:59, "Thomas Larkin" <tlarki at kckps.org> wrote:
> OK, I just pulled the script off my actual casper share, this is the
> actual script we use to mass image our Macs. I image probably over
> 100 per a month that go in and out for repair and of course 6,000
> every summer. All I have to do is netboot and autorun data takes
> care of the rest
>
> #!/bin/sh
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
> export PATH
>
> ## DISK PARTITIONING PARAMETERS
>
> volume='/Volumes/Macintosh HD'
> mac='75%'
> windows='24%'
>
> ## BOOT CAMP SOURCE IMAGE PARAMETERS
> CasperShare="/Volumes/CasperShare"
> ntfs_image="$CasperShare/Scripts/BootCamp.ntfs"
>
>
> # Optionally, you can set the following values explicitly
> root_target_disk="disk0" # e.g. "disk0"
> raw_target_dev="/dev/rdisk0" # e.g. "/dev/rdisk0"
> ntfs_slice_num="3" # e.g. "3"
> ntfs_dev="/dev/disk0s3" # e.g. "/dev/disk0s3"
>
>
>
> ### SCRIPT ACTION ###
>
>
> # Resize the disk
>
> /usr/sbin/diskutil resizeVolume "$volume" $mac MS-DOS windows $windows
>
>
> # Determine, based on the target path passed to the script, what is
> the device
> # number of the NTFS partition on the same drive
>
> if [ "$root_target_disk" == "" ]; then
> root_target_disk=`df "$1" | awk '!/Filesystem/ {print $1}' | cut -
> c 6-10`
> fi
> root_target_dev=/dev/$root_target_disk
> echo "root_target_dev: $root_target_dev"
>
> if [ "$raw_target_dev" == "" ]; then
> raw_target_dev=/dev/r$root_target_disk
> fi
> echo "raw_target_dev: $raw_target_dev"
>
> if [ "$ntfs_slice_num" == "" ]; then
> ntfs_slice_num=`diskutil list $root_target_dev | awk 'BEGIN {disk
> = "nodisk"} {sub("disk\.s", "")} ($NF < 5 && /Microsoft Basic Data/)
> {disk = $NF} END {print disk}'`
> if [ "$ntfs_slice_num" == "nodisk" ]; then
> echo "Failed to determine the NTFS device slice number -- try
> adding it to the $0 script explicitly \(target disk is
> $root_target_dev\)"
> exit 1
> fi
> fi
> echo "ntfs_slice_num: $ntfs_slice_num"
>
> if [ "$ntfs_dev" == "" ]; then
> ntfs_dev=/dev/disk0s$ntfs_slice_num
> fi
> echo "ntfs_dev: $ntfs_dev"
> echo ""
>
> echo "Unmounting the target disk..."
> diskutil unmount $ntfs_dev
>
> echo "Restoring disk image to target volume..."
> ntfsclone --restore-image --overwrite "$ntfs_dev" "$ntfs_image"
>
> echo "Resizing target volume to partition limit..."
> ntfsresize -ff "$ntfs_dev"
>
> echo "Reading file that contains MBR..."
> ntfscat -f "$ntfs_dev" /WINDOWS/system32/dmadmin.exe > /tmp/
> dmadmin.exe
>
> echo "Harvesting MBR..."
> dd if=/tmp/dmadmin.exe of=/tmp/mbr skip=216616 count=446 bs=1
>
> echo "Syncing GPT to BIOS partition table and restoring MBR..."
> gptrefresh -w -a $ntfs_slice_num -f -u -m /tmp/mbr $root_target_dev
>
> echo "Updating boot.ini partition number..."
> ntfscat -f $ntfs_dev /boot.ini > /tmp/boot.ini
> perl -p -i -e "s/partition\(.*\)/partition\($ntfs_slice_num\)/g" /
> tmp/boot.ini
> ntfscp -f $ntfs_dev /tmp/boot.ini /boot.ini
>
> echo "Mounting the target disk..."
> diskutil mount "$ntfs_dev"
>
>
> Maybe this ones differs from the one on my site I haven't done a
> side by side comparison
>
>
> ___________________________
> Thomas Larkin
> TIS Department
> KCKPS USD500
> tlarki at kckps.org
> blackberry: 913-449-7589
> office: 913-627-0351
>
>
>
>
>
> >>> "Dorey, Dustin" <Dustin.Dorey at district196.org> 03/25/09 1:07 PM
> >>>
>
> Casper is able to deploy dual boot environments as well, my coworker
> here has been working on it and is currently out otherwise I’m sure
> he’d respond. And it doesn’t matter what imaging solution you
> use whether it’s Casper imaging or Deploy studio, certain things are
> going to be the same. You need to boot to something other than th
> e drive your imaging so either way you’re netbooting or using a rest
> ore partition. You need to partition the drive, you need to format
> the partitions correctly (NTFS for the windows side I believe you u
> se NTFSprog ) and lay down the images (configsJAMF has put together
> in the resource kit much of what you’ll need to do dual boot deploym
> ents, and Thomas Larkin also has some resources on his website, and
> knowing Thomas I’m sure he will respond to this.
> J
>
> One thing we’ve encountered is that it’s not too
> difficult to lay down a monolithic windows image in a dual boot depl
> oyment. But when you add in needing to do things like binding to A
> D etc… where UID is concerned it makes things a little bit more diff
> icult. Then you really have to start messing with Sys Prep and stuf
> f. Again my co-worker has been doing the work on developing that h
> ere so I don’t have the intimate knowledge he has, but I do know tha
> t there are several people on this list serv that have done it and d
> o regularly deploy dual boot with Casper, so I’d check the archives.
>
> There has been lots of talk about deploy studio lately, and from
> everything I’ve seen it makes no sense to me to use it in a Casper e
> nvironment. It has far less to offer and Casper can do anything it
> can do. With all the talk about deploy studio lately I asked a co
> uple Apple Systems Engineers about it, and both of the Apple SE’s I
> asked about it in comparison to Casper Suite said not to bother with
> it if you have Casper available. It’s a step down. And you won
> ’t have the great support that JAMF provides. It does make for a
> nice presentation and all since it is pretty, but in practice no mat
> ter what system you use to do the imaging you’re going to run into t
> he same pitfalls that need to be overcome.
>
> Definitely check through the archives on this, check
> out the resource kit and I know Thomas has some good info, maybe my
> co-worker Jason will weigh in if he has time as he can speak with
> more authority on the matter, but I’m not sure when that might be.
> From our conversations about how his testing and development of the
> process for our needs here I know he said that having to Bind to AD
> increased the amount of setup. But I can’t say why since I’ve
> been keeping my nose out of it while he worked on it.
>
>
>
> Good luck.
>
>
>
> Dustin Dorey
>
> Technology Support Cluster Specialist
>
> Independant School District 196
>
> Rosemount-Apple Valley-Eagan Public Schools
>
> dustin.dorey at district196.org
>
> 651|423|7971
>
>
>
>
>
>
>
> From:
> casper-bounces at list.jamfsoftware.com [mailto:casper-bounces at list.jamfsoftware.com
> ] On Behalf Of Clinton Blackmore
> Sent: Wednesday, March 25, 2009 12:08 PM
> To: Jeff Strauss
> Cc: Casper List
> Subject: Re: [Casper] Dual-boot deployments
>
> My coworker recently returned from a week of training, and in a lab,
> they used DeployStudio ( http://www.deploystudio.com/Home.html ) to
> create triple-boot machines! I gather that DeployStudio is the
> spiritual successor to NetRestore, but haven't used it myself.
>
> I'm not sure how you'd use it in conjunction with Casper Imaging.
>
> Clinton Blackmore
>
>
> On 23-Mar-09, at 12:07 PM, Jeff Strauss wrote:
>
>
>
> Are there any strategies you all use to deploy dual-boot machines? I
> ’d like to create a Boot Camp partition with Windows SP3 and all of
> our software to be created during Casper Imaging.
>
> Thanks for your continued help, everyone!
>
> Jeffrey A. Strauss
> Department of Educational Technology
> Systems Administrator
> Loyola High School of Los Angeles
> 1901 Venice Blvd.
> Los Angeles, Ca 90006
> (213) 381-5121 x265
>
> Apple Certified Support Professional
> Apple Certified Technical Coordinator
>
> Please consider the environment before printing this e-mail.
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
> dy>
> _______________________________________________
> 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/20090325/20bd187c/attachment.html
More information about the Casper
mailing list