Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deployment script for dual-boot computers



Sure - my cut 'n' paste skills aren't what they used to be and my script is now below.  Ideally, the script would examine disk0 to verify there was enough space available before partitioning.  This is assuming a 20G partition for Windows and, let's say, 30G additional free space for additional/updated applications.

#!/bin/sh

diskutil resizeVolume disk0s2 300G MS-DOS Windows 0G
diskutil eraseDisk JHFS+ DATA disk1
disktool -r

exit 0

Dave Robbins wrote:
Quoting Allen Creech <email@hidden>:

Currently using Deploy Studio for system imaging and modular deployment
of packages in a lab environment.  I am resizing the boot partition of
disks0, creating a back-end MS-DOS partition on this same disk, and
formatting disks1 as a data-only drive through an ARD UNIX-command.  I
am then using WinClone to format the back-end partition and install
Windows XP for dual-booting.  All of this manipulation is being
performed on known-sized hard drives (i.e. all of my lab computers have
320G disks0 and 500G disks1).

I would like to modify my script so it can be extended to other labs
and need to take into account (a) there may be only 1 installed disk
(iMacs) and (b) the disks0 may not be 320G in size.

My scripting abilities are somewhat limited so I'm looking for a little
help.  I know 'diskutil list' will provide me with the # of disks and
disk sizes but I do not know how to collect this data and use it for my
needs.

Any help would be greatly appreciated.

-Allen

Hi Allen,

If you posted your current script, it would be a lot easier for any of us to help you modify it.  Without it, I, at least, have no clue what you are trying to do.

Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
System-imaging mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/system-imaging/email@hidden

This email sent to email@hidden

--

Allen Creech

IT/IS Center for Documentary Studies

at Duke University

Ph: (919) 749-8278

Fx: (919) 681-7600

Jbr: email@hidden

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
System-imaging mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/system-imaging/email@hidden

This email sent to email@hidden

References: 
 >Deployment script for dual-boot computers (From: Allen Creech <email@hidden>)
 >Re: Deployment script for dual-boot computers (From: Dave Robbins <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.