Posted on 07-26-2010 04:52 PM
Quick question, I'm using prestage configs to help smooth over the imaging of several thousand computers. Most of them have a Hard Drive named "MacintoshHD", so I have that configured in the PreStage config. However, some are "Macintosh HD" with a space and to use them I have to go into Disk utility and format them, then back into Casper Imaging.
Is there way to have a wildcard in the specified HD name, so for example I could have something like "Macintosh%HD" and it would catch both?
Thanks in advance
Jeff Dyck | Analyste de reseaux - Mac OS X
Conseil Scolaire Francophone de la Colombie-Britannique (SD 93)
3550 Wellington Street, Annexe B - Port Coquitlam, BC - V3B 3Y5
Tel: 778-284-0902 - Cell: 778-990-7960 - http://support.csf.bc.ca
Posted on 07-26-2010 08:50 PM
We had a similar discussion a few months ago in a thread with the subject
On Mon, Jul 26, 2010 at 6:52 PM, Jeff Dyck <fsjjeff at gmail.com> wrote:
"Using Casper Imaging to upgrade from 10.5.x to 10.6.3". I would use a
Pre-Imaging script to re-partition the drives and name them the way you
want. That way you don't have to worry about how they are named currently,
you just re-name them what you want.
This is thanks to Tom Larkin:
#!/bin/bash
# this assumes that /dev/disk0 is going to be the main HD in all systems
HardDriveSize=diskutil info /dev/disk0 | awk '/Total Size/ { print $3 }'
# now compare results to run desired command
if [ $HardDriveSize > 200 ]
then
diskutil partitionDisk /dev/disk0 2 GPT JHFS+ "Macintosh HD" 40% JHFS+
Users 60%
echo "Disk has been re-partitioned."
else
diskutil partitionDisk /dev/disk0 2 GPT JHFS+ "Macintosh HD" 50% JHFS+
Users 50%
echo "Disk has been re-partitioned."
fi
Now obviously the portion of script above splits the drive into two
partitions, but you could just as easily have it only do one partition with
the name you want.
Hope that helps.
Steve
Posted on 07-26-2010 10:58 PM
Hmmm, I'm not sure that's quite the solution I'm looking for...
We have 3500 laptops to image over a short period of time, and are looking for the quickest way - I'm using PreStage imaging to reduce clicks (ie: 3000 computers X netboot + login to Casper + select config + select HD + select erase HD + select distribution point = instant carpal tunnel).
However, to configure a Pre-Stage so that all you need to do is netboot and the computers auto-login and preselect everything, you need to specify the Hard Drive name. Unfortunately if it doesn't match Casper Imaging tells you it can't find that HD, then you have to back out, go into Disk Utility, format the HD, quit, go back into Casper Imaging, and now since you've already tried to log in once the computer is in the DB so you don't get your pre-stage anymore.
Basically I'm just trying to pattern match the HD name in the PreStage config so it's not quite so picky.
Certainly for next year I can push out a script to make sure all the HDs have the correct name. Although I'm not sure how I'm doing this next year since at that point the computers will all be in the database, so PreStage won't work. Will have to do auto-run configs I guess, which I'm not convinced are really what I want in our environment. Oh well, guess I'll cross that bridge when I get there.
Posted on 07-27-2010 07:31 AM
Hmmm...you're absolutely right about that. Guess I hadn't run into that yet
so I didn't realize that was the behavior of the pre-stage.
Steve Wood
Director of IT
swood at integer.com
The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475