IT Management Suite

 View Only

Using WinPE 2.0 to Deploy an Image Larger than One DVD 

Jun 19, 2007 10:42 AM

This article describes the secret art of deploying an image larger than one DVD using WinPE 2.0. "Why WinPE 2.0?" The answer is simple: WinPE2.0 loads to a RAM-Disk instead of loading directly from a CD/DVD. This allows you to remove the disc while it is running.

Please note that this article describes only how to use the 32bit version of WinPE2.0. In order to use the 64bit version, you would need to build a 64bit WinPE2.0 on a 64bit system. Also your image would have to be captured in 64bit mode. Basically all computers involved need to be using 64bit hardware/software.

Required Tools (all items listed as links to the software):

The first step is to install the WAIK onto your build computer. Open the .img file that you downloaded in Daemon tools to prevent you from having to burn the CD/DVD or you can burn and insert the DVD.

Click windows AIK setup and follow the wizard to install. I installed mine to the D drive to save space on my system drive.

Go to program files->windows AIK-Winpe Tools command prompt.

Type the following commands:

mkdir mywinpe
imagex /apply x86\winpe.wim 1 mywinpe

In order to use the VB scripts I setup for the imaging process you need to install scripting support into WinPE. Type the following command:

peimg /install=WinPE-Scripting-Package mywinpe

Next run the following commands to prep and compress the customized boot.wim file:

peimg /prep mywinpe     (you need to confirm this by typing yes)
imagex /boot /compress max /capture mywinpe boot.wim "Winpe2.0"

Now lets mount and customize our boot.wim file
Type:

mkdir mount
imagex /mountrw boot.wim 1 mount

You can skip this section (bolded) if you do not want to customize an installer script in your winpe image. I recommend doing this though because it makes it much nicer to use and only takes a few minutes to setup.

Now minimize the command window but keep it open and browse to the folder you mounted the boot.wim in. My folder is D:\waik\Tools\PETools\mount because I installed the waik to my d drive. By default it is under c:\program files\Windows AIK\tools\petools\mount.

You will see a windows directory under mount.

Open the windows directory and then system32.

Create a new text file and paste the following into it:

wscript.sleep(2000)
set objscripting = wscript.createobject("wscript.shell")
set FSO = createobject ("scripting.filesystemobject")
set coldrives = FSO.drives
for each objdrive in coldrives
if objdrive.drivetype=4 then
driveletter=objdrive.driveletter
answer=MsgBox("Would you like to install the image?",4,"Image install")
if answer = 6 then

wscript.echo("Enter the Imaging DVD into the "&objdrive&" drive")
objscripting.run("cmd /c start rdeployt -md -f "&driveletter&":\image.exe")
end if
end if
next

Save and then rename the txt file to image.vbs.

Make sure you place it in the mounted windows\system32 directory.

Edit the startnet.cmd (in the same directory) to have the following contents:

wpeinit
wscript image.vbs

Here is a screen capture of my finished edit of the files:

Browse to the express share of your Altiris server ->rdeploy->windows folder and copy the rdeployt.exe file into the windows\system32 directory of the boot.wim mount


Now let's commit the changes to the boot.wim file. Maximize the Windows pe Tools command prompt windows and type:

imagex /unmount /commit mount

Next create the PE build tree by typing:

copype.cmd x86 buildpe

Overwrite the default boot.wim with our customized one by typing:

copy ..\boot.wim iso\sources\boot.wim

Finally lets build the actual winpe2.0 iso file by typing:

oscdimg -n -betfsboot.com iso winpe2.0.iso

Leave the Windows PE tools Command Prompt open but minimize the window for now.

Test this ISO by mounting it via Daemon Tools and booting to it using Microsoft's Virtual PC 2007. (under the CD menu select "use physical drive" and the drive letter of your virtually mounted CD)

Here is a screen-shot of test booting to the new iso file.

Burn this ISO to a disc and set it aside. It can be used as a "Master" boot disc for all of your large images.

For each large image create a set of DVDs. Rename the image files to image.exe, image.002 image.003, image.004, etc. 2 2.0gb image parts should fit on one single layer dvd.

Enjoy! :)

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Dec 02, 2008 02:01 AM

Hi Theo,
By folowing the article as is my image worked when it was spanned over 2 DVD's.
1. Has your image file been indexed and included on the first disc, so that it knows that there is another disk and,
2.have you renamed your image files to image.exe?
Please go through every step of this atricle when creating the boot disk and make sure it is correct. I have also had this problem before. Had to double check all my settings of the bootdisk creation.
Antonp

Dec 01, 2008 10:26 AM

Hello, this is my first post, please be kind :)
I'm having difficulties with loading images from a separate DVD. I've succesfully made the WinPE bootcd and also inserted the script. The system responds that i should load the image into the drive. After i've done so and pressed ok, the script disappears and nothing happens...
I've converted my .img files into .exe files with rdeploy and burned them onto a data dvd.
Help please....
Thanks in advance, Theo.

Sep 12, 2008 03:37 AM

I read through your article and as you can see on my first comment that i had some problems when i tried to mount the boot.wim file to edit.
Well after thinking about what i am exactly doing i realised that i can edit the file manualy after the mywinpe folder is created and before the new boot.wim file is compiled, as that folder contains the windows\systems32 folder where all the changes needs to be made after the boot.wim file was mounted. So i made the changes to the files needed in that folder and then ran the following command:
copype.cmd x86 buildpe
So there is no actual need to mount the wim file, well you can but if you find the error that i found than this route will also work. My DVD is now working as it should in the last screenshot.
Thanks again for this article.

Sep 11, 2008 07:04 AM

I am following the steps in this article.
Came to the mounting point, where i have to mount boot.wim to the mount directory.
Error received when the command is run:
"Error mounting image (RW):
The specified module could not be found"
Is this neccesary to do if i want to boot image from multiple dvd's?

Mar 14, 2008 02:19 PM

You can boot to ram using WinPE 1.6 in DS 6.8.
Also, you can use 32-bit WinPE (1.6 or 2.0) with no problem to restore an image of a 64-bit system, that was created using 64-bit WinPE or created in Linux or DOS.
The preboot automation environment does not have to match the type of image or the environment that was used to capture the image.

Related Entries and Links

No Related Resource entered.