[27890] in resnet
Re: Boot Camp imaging from WinPE partition
daemon@ATHENA.MIT.EDU (Jeremy Mlazovsky)
Fri Aug 10 14:51:59 2012
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b5d626e2eb35104c6ecfe0b
Message-ID: <CAPfpEM=mHMK=7B_K7Ed26htWSWqb2_r0hVhdUP4rMwQYgVhr4Q@mail.gmail.com>
Date: Fri, 10 Aug 2012 13:51:05 -0400
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Jeremy Mlazovsky <jmlazovsky1@UDAYTON.EDU>
To: RESNET-L@listserv.nd.edu
In-Reply-To: <CAHVqF_iDu0t5wT_DNiMK7fQkbmqPkyn0dTdoMwh2FeKLR9QHog@mail.gmail.com>
--047d7b5d626e2eb35104c6ecfe0b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I don't have the time to go into it in great detail (in the middle of
moving our department), but I was able to get it working properly with
Windows PE earlier this summer.
I updated our home-grown reimgin front-end for Windows PE+ImageX to
automate the process of restoring the partitions (including automating the
diskpart.exe steps). I am including the documentation I created for
manually going through the steps, which anyone should be able to do.
I was able to get this up and running using tips from the following:
http://www.tech-recipes.com/rx/9839/how-to-manually-partition-boot-camp-you=
r-mac-for-windows-7/
http://noahcoad.com/post/14313643712/get-mac-os-back-onto-macbook-and-keep-=
windows-7-boot-camp-partition
Please note that I booted from the OS X Lion installation DVD, ran Disk
Utility, and blew away all partitions. I then created a single partition
using the default file system, and then installed OS X Lion from scratch.
1.) On your Apple computer running Lion (or Mountain Lion), there should
be two partitions already created by OS X.
2.) We are going to create the third partition (BootCamp), which will
hold the Windows 7 installation.
a. In OS X, launch Terminal.
b. The following command will resize the 2nd partition (leave the
1stpartition alone!) - which is the OS X system partition =E2=80=93 and res=
ize
it to
250 GB (adjust this number to fit the size you want to use for the OS X
partition). It will also create a 3rd partition of type FAT32 (this
utility cannot create NTFS partitions, but we=E2=80=99ll fix that later), w=
ith the
label =E2=80=9CDOS=E2=80=9D (if won=E2=80=99t let you use some variations o=
f the label =E2=80=9CWindows=E2=80=9D or
=E2=80=9CBootCamp=E2=80=9D, so lie to diskutil and use =E2=80=9CDOS=E2=80=
=9D). It is supposed to create
this 3rd partition as a 50 GB partition but as long as the free space is
50+ GB, the partition will fill the rest of the drive (which is what we
want!).
diskutil resizevolume /dev/disk0s2 250G MS-DOS =E2=80=9CDOS=E2=80=B3 50G
c. Boot into the ImageX environment using the latest ImageX Boot
CD/DVD (obtained from UD Software).
d. Click on =E2=80=9COpen Command Prompt=E2=80=9D.
e. Run:
diskpart.exe
f. Run:
list volume
g. You SHOULD see a volume with the drive letter =E2=80=9CC=E2=80=9D o=
f type FAT32 and
with the label =E2=80=9CDOS=E2=80=9D. We want to format this as NTFS befor=
e restoring the
Windows 7 image. To exit diskpart, run:
exit
h. You should be at the command prompt again. Run:
format C: /fs:NTFS /q
i. When prompted for the label of the existing volume, type:
DOS
j. When prompted for the new label for the partition, type:
BootCamp
k. Now the partition should be formatted as NTFS, with the label
=E2=80=9CBootCamp=E2=80=9D.
3.) Restore existing Windows 7 image to the BootCamp partition
a. I will assume that you have already created a Windows 7 x64
universal drive image and uploaded it to the imaging server. For my tests,
I created the image "N:\images\artsci\test\win7x64\win7_bootcamp.wim". In
order to restore the contents of this image to the 3rd partition/BootCamp
partition, I would run the following:
N:\tools\x86\imagex.exe /apply
"N:\images\artsci\test\win7x64\win7_bootcamp.wim" 1 C:
4.) Update EFI
a. At this point, we are nearly done. Chances are, if you were to
reboot the computer, hold down the =E2=80=9Coption=E2=80=9D button on the k=
eyboard and
choose to boot to =E2=80=9CWindows=E2=80=9D, it would not work properly.
b. The first thing to try is to install the free, open source tool
rEFIt within OS X. This tool allows you to modify the EFI settings on the
Mac, which tells the computer how to boot different operating systems.
Boot into OS X. Download the latest =E2=80=9CMac disk image=E2=80=9D versi=
on of rEFIt
located at
http://refit.sourceforge.net/#download
c. Install rEFIt. Reboot once, back into OS X.
d. Reboot again. The 2nd time you reboot, you will be taken to a new
boot menu. Navigate to the 2nd row of icons, the 2nd icon on the left.
Click on it. This will launch the partition editor. We don=E2=80=99t have=
to do
anything except launch it once (it will synch some boot info between the
EFI boot options and the BootCamp partition). Exit the partition editor.
e. Reboot.
f. When the rEFIt boot menu launches, click on the =E2=80=9CWindows=
=E2=80=9D icon to
boot into Windows. If you restored a SysPrep image, SysPrep should run
first. Otherwise, it=E2=80=99ll launch into Windows.
5.) If you get an error booting, some people have said you may need to
boot from the Windows 7 installation disc and run the basic repair.
Hope this helps someone out there.
Thanks.
Jeremy Mlazovsky '02
Director of Information Technology
College of Arts and Sciences
University of Dayton
300 College Park
Dayton, Ohio 45469-2201
937-229-2166
Leadership UD 2009
Please contact CAS Help (937-229-2166, cashelp@udayton.edu) for service
requests.
On Fri, Aug 10, 2012 at 1:08 PM, Chuck Steel <chuck.steel@gmail.com> wrote:
> Can you include your Windows image file on the MacOS side of your
> image? You could then restore the image to the BOOTCAMP partition
> using WinClone, I believe you could probably even script that.
>
> --
> Chuck Steel
> Dickinson College
>
> On Fri, Aug 10, 2012 at 12:29 PM, Rachel Boutilier Weaver
> <rboutili@macalester.edu> wrote:
> > Hi there,
> >
> > I apologize for the cross-posting.
> >
> > We recently moved from DeployStudio to Casper Suite, and apparetly Casp=
er
> > and Winclone imaging aren't playing nice (JAMF support acknowledges an
> > actual issue). While I wait for a solution from JAMF, I'm trying to
> find a
> > workaround that will let me image my dual-boot labs in the next 2-3
> weeks.
> >
> > I'm wondering whether creating a bootable WinPE partition and using tha=
t
> to
> > image would work. Has anyone done this? If so, do you have documentatio=
n
> or
> > a web reference you'd be willing to share? I tried creating a WinPE
> > partition using instructions from Microsoft
> > (http://technet.microsoft.com/en-us/library/cc722114(v=3Dws.10).aspx),
> but my
> > iMac doesn't recognize it as bootable.
> >
> > Thanks!
> > Rachel
> >
> > Rachel Boutilier Weaver
> > Client Services Consultant
> > Macalester College ITS
> > (651)696-6507
> > rboutili@macalester.edu
> >
> > ___________________________________________________ You are subscribed =
to
> > the ResNet-L mailing list.
> >
> > To subscribe, unsubscribe or search the archives, go to
> > http://LISTSERV.ND.EDU/archives/resnet-l.html
> > ___________________________________________________
>
> ___________________________________________________
> You are subscribed to the ResNet-L mailing list.
>
> To subscribe, unsubscribe or search the archives,
> go to http://LISTSERV.ND.EDU/archives/resnet-l.html
> ___________________________________________________
>
___________________________________________________
You are subscribed to the ResNet-L mailing list.
To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________
--047d7b5d626e2eb35104c6ecfe0b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I don't have the time to go into it in great detail (in the middle of m=
oving our department), but I was able to get it working properly with Windo=
ws PE earlier this summer.<div><br></div><div>I updated our home-grown reim=
gin front-end for Windows PE+ImageX to automate the process of restoring th=
e partitions (including automating the diskpart.exe steps). =C2=A0I am incl=
uding the documentation I created for manually going through the steps, whi=
ch anyone should be able to do.</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><p class=
=3D"MsoNormal">I was able to get this up and running using tips from the
following:</p>
<p class=3D"MsoNormal"><a href=3D"http://www.tech-recipes.com/rx/9839/how-t=
o-manually-partition-boot-camp-your-mac-for-windows-7/">http://www.tech-rec=
ipes.com/rx/9839/how-to-manually-partition-boot-camp-your-mac-for-windows-7=
/</a></p>
<p class=3D"MsoNormal"><a href=3D"http://noahcoad.com/post/14313643712/get-=
mac-os-back-onto-macbook-and-keep-windows-7-boot-camp-partition">http://noa=
hcoad.com/post/14313643712/get-mac-os-back-onto-macbook-and-keep-windows-7-=
boot-camp-partition</a></p>
<p class=3D"MsoNormal">Please note that I booted from the OS X Lion install=
ation
DVD, ran Disk Utility, and blew away all partitions.=C2=A0 I then created a=
single partition using the
default file system, and then installed OS X Lion from scratch.</p>
<p class=3D"MsoListParagraphCxSpFirst" style>1.)<span style=3D"font-size:7p=
t;font-family:'Times New Roman'">=C2=A0=C2=A0=C2=A0
</span>On your Apple computer running Lion (or Mountain
Lion), there should be two partitions already created by OS X.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style>2.)<span style=3D"font-size:7=
pt;font-family:'Times New Roman'">=C2=A0=C2=A0=C2=A0
</span>We are going to create the third partition
(BootCamp), which will hold the Windows 7 installation.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">a.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>In OS X, launch Terminal.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">b.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>The following command will resize the 2<sup>nd</sup>
partition (leave the 1<sup>st</sup> partition alone!) - which is the OS X
system partition =E2=80=93 and resize it to 250 GB (adjust this number to f=
it the size
you want to use for the OS X partition).=C2=A0
It will also create a 3<sup>rd</sup> partition of type FAT32 (this
utility cannot create NTFS partitions, but we=E2=80=99ll fix that later), w=
ith the
label =E2=80=9CDOS=E2=80=9D (if won=E2=80=99t let you use some variations o=
f the label =E2=80=9CWindows=E2=80=9D or
=E2=80=9CBootCamp=E2=80=9D, so lie to diskutil and use =E2=80=9CDOS=E2=80=
=9D).=C2=A0
It is supposed to create this 3<sup>rd</sup> partition as a 50 GB
partition but as long as the free space is 50+ GB, the partition will fill =
the
rest of the drive (which is what we want!).<br><br>
diskutil resizevolume /dev/disk0s2 250G MS-DOS =E2=80=9CDOS=E2=80=B3 50G</p=
>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">c.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Boot into the ImageX environment using the
latest ImageX Boot CD/DVD (obtained from UD Software).</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">d.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Click on =E2=80=9COpen Command Prompt=E2=80=9D.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">e.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Run:<br>
diskpart.exe</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">f.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0
</span>Run:<br>
list volume</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">g.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>You SHOULD see a volume with the drive letter
=E2=80=9CC=E2=80=9D of type FAT32 and with the label =E2=80=9CDOS=E2=80=9D.=
=C2=A0
We want to format this as NTFS before restoring the Windows 7
image.=C2=A0 To exit diskpart, run:<br>
exit</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">h.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>You should be at the command prompt again.=C2=A0 Run:<br>
format C: /fs:NTFS /q</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">i.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0
</span>When prompted for the label of the existing volume,
type:<br>
DOS</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">j.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0
</span>When prompted for the new label for the
partition, type:<br>
BootCamp</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">k.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Now the partition should be formatted as NTFS,
with the label =E2=80=9CBootCamp=E2=80=9D.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style>3.)<span style=3D"font-size:7=
pt;font-family:'Times New Roman'">=C2=A0=C2=A0=C2=A0
</span>Restore existing Windows 7 image to the BootCamp
partition</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">a.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>I will assume that you have already created a
Windows 7 x64 universal drive image and uploaded it to the imaging server.=
=C2=A0 For my tests, I created the image "N:\images\artsci\test\win7x6=
4\win7_bootcamp.wim".=C2=A0 In order to restore the contents of this
image to the 3<sup>rd</sup> partition/BootCamp partition, I would run the
following:<br>
N:\tools\x86\imagex.exe /apply "N:\images\artsci\test\win7x64\win7_boo=
tcamp.wim"
1 C:</p>
<p class=3D"MsoListParagraphCxSpMiddle" style>4.)<span style=3D"font-size:7=
pt;font-family:'Times New Roman'">=C2=A0=C2=A0=C2=A0
</span>Update EFI</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">a.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>At this point, we are nearly done.=C2=A0 Chances are, if you were to=
reboot the
computer, hold down the =E2=80=9Coption=E2=80=9D button on the keyboard and=
choose to boot to
=E2=80=9CWindows=E2=80=9D, it would not work properly.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">b.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>The first thing to try is to install the free,
open source tool rEFIt within OS X.=C2=A0 This
tool allows you to modify the EFI settings on the Mac, which tells the comp=
uter
how to boot different operating systems.=C2=A0
Boot into OS X.=C2=A0 Download the
latest =E2=80=9CMac disk image=E2=80=9D version of rEFIt located at<br>
<a href=3D"http://refit.sourceforge.net/#download">http://refit.sourceforge=
.net/#download</a></p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">c.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Install rEFIt.=C2=A0
Reboot once, back into OS X.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">d.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Reboot again.=C2=A0
The 2<sup>nd</sup> time you reboot, you will be taken to a new boot
menu.=C2=A0 Navigate to the 2<sup>nd</sup> row
of icons, the 2<sup>nd</sup> icon on the left.=C2=A0
Click on it.=C2=A0 This will launch the
partition editor.=C2=A0 We don=E2=80=99t have to do
anything except launch it once (it will synch some boot info between the EF=
I
boot options and the BootCamp partition).=C2=A0
Exit the partition editor.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">e.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
</span>Reboot.</p>
<p class=3D"MsoListParagraphCxSpMiddle" style=3D"margin-left:1.0in">f.<span=
style=3D"font-size:7pt;font-family:'Times New Roman'">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0
</span>When the rEFIt boot menu launches, click on the
=E2=80=9CWindows=E2=80=9D icon to boot into Windows.=C2=A0 If
you restored a SysPrep image, SysPrep should run first.=C2=A0 Otherwise, it=
=E2=80=99ll launch into Windows.</p>
<p class=3D"MsoListParagraphCxSpLast" style>5.)<span style=3D"font-size:7pt=
;font-family:'Times New Roman'">=C2=A0=C2=A0=C2=A0
</span>If you get an error booting, some people have
said you may need to boot from the Windows 7 installation disc and run the
basic repair.<br>
<br></p><p class=3D"MsoListParagraphCxSpLast" style><br></p><p class=3D"Mso=
ListParagraphCxSpLast" style>Hope this helps someone out there.
</p></div><div><br></div><div><div><div>Thanks.</div><div><br></div><div>Je=
remy Mlazovsky '02</div><div>Director of Information Technology</div><d=
iv>College of Arts and Sciences</div><div>University of Dayton</div><div>
300 College Park</div><div>Dayton, Ohio 45469-2201</div><div>937-229-2166</=
div><div><br></div><div>Leadership UD 2009</div><div><br></div><div>Please =
contact CAS Help (937-229-2166, <a href=3D"mailto:cashelp@udayton.edu" targ=
et=3D"_blank">cashelp@udayton.edu</a>) for service requests.</div>
<br>
<br><br><div class=3D"gmail_quote">On Fri, Aug 10, 2012 at 1:08 PM, Chuck S=
teel <span dir=3D"ltr"><<a href=3D"mailto:chuck.steel@gmail.com" target=
=3D"_blank">chuck.steel@gmail.com</a>></span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">
Can you include your Windows image file on the MacOS side of your<br>
image? You could then restore the image to the BOOTCAMP partition<br>
using WinClone, I believe you could probably even script that.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Chuck Steel<br>
Dickinson College<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Fri, Aug 10, 2012 at 12:29 PM, Rachel Boutilier Weaver<br>
<<a href=3D"mailto:rboutili@macalester.edu">rboutili@macalester.edu</a>&=
gt; wrote:<br>
> Hi there,<br>
><br>
> I apologize for the cross-posting.<br>
><br>
> We recently moved from DeployStudio to Casper Suite, and apparetly Cas=
per<br>
> and Winclone imaging aren't playing nice (JAMF support acknowledge=
s an<br>
> actual issue). =C2=A0While I wait for a solution from JAMF, I'm tr=
ying to find a<br>
> workaround that will let me image my dual-boot labs in the next 2-3 we=
eks.<br>
><br>
> I'm wondering whether creating a bootable WinPE partition and usin=
g that to<br>
> image would work. Has anyone done this? If so, do you have documentati=
on or<br>
> a web reference you'd be willing to share? I tried creating a WinP=
E<br>
> partition using instructions from Microsoft<br>
> (<a href=3D"http://technet.microsoft.com/en-us/library/cc722114(v=3Dws=
.10).aspx" target=3D"_blank">http://technet.microsoft.com/en-us/library/cc7=
22114(v=3Dws.10).aspx</a>), but my<br>
> iMac doesn't recognize it as bootable.<br>
><br>
> Thanks!<br>
> Rachel<br>
><br>
> Rachel Boutilier Weaver<br>
> Client Services Consultant<br>
> Macalester College ITS<br>
> <a href=3D"tel:%28651%29696-6507" value=3D"+16516966507">(651)696-6507=
</a><br>
> <a href=3D"mailto:rboutili@macalester.edu">rboutili@macalester.edu</a>=
<br>
><br>
> ___________________________________________________ You are subscribed=
to<br>
> the ResNet-L mailing list.<br>
><br>
> To subscribe, unsubscribe or search the archives, go to<br>
> <a href=3D"http://LISTSERV.ND.EDU/archives/resnet-l.html" target=3D"_b=
lank">http://LISTSERV.ND.EDU/archives/resnet-l.html</a><br>
> ___________________________________________________<br>
<br>
___________________________________________________<br>
You are subscribed to the ResNet-L mailing list.<br>
<br>
To subscribe, unsubscribe or search the archives,<br>
go to <a href=3D"http://LISTSERV.ND.EDU/archives/resnet-l.html" target=3D"_=
blank">http://LISTSERV.ND.EDU/archives/resnet-l.html</a><br>
___________________________________________________<br>
</div></div></blockquote></div><br></div></div>
___________________________________________________
You are subscribed to the ResNet-L mailing list.
<p>
To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________
--047d7b5d626e2eb35104c6ecfe0b--