How to check which Ghost option is used actually with WinPE boot disk and how to modify the option manually
| Article:HOWTO31340 | | | Created: 2010-09-20 | | | Updated: 2010-09-29 | | | Article URL http://www.symantec.com/docs/HOWTO31340 |
Question/Issue:
- Download the Windows Automated Installation Kit (WAIK) located at the following URL:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c7d4bc6d-15f3-4284-9123-679830d629f2&DisplayLang=en
- Once downloaded, extract the contents of the image file to any folder.
- Install (assume not installed) following components in sequence below on the system.
a. .NET Framework Setup
b. MSXML 6.0 Setup
c. Windows AIK Setup (install last).
- Click Start > All Programs > Microsoft Windows AIK > Windows PE Tools Command Prompt
- In command prompt, type the following command to setup up environment.
C:\Program Files\Windows AIK\Tools\PETools> copype.cmd x86 c:\winpe_x86
- To modify the boot.wim in the Ghost boot disk, backup and copy it to c:\winpe_x86\
- In command prompt, type the following command to check the boot index number (e.g. "Boot Index: 2") for the bootable image
C:\winpe_x86> imagex /info c:\winpe_x86\boot.wim
- Mount the bootable image.
C:\winpe_x86> imagex /mountrw c:\winpe_x86\boot.wim <Boot Index> c:\winpe_x86\mount
NOTE: Replace <Boot Index> with the boot index number in step 7.
- Open "c:\winpe_x86\mount\Windows\System32\startnet.cmd".
NOTE: The boot.wim is mounted on ram disk as x: drive when WinPE boots.
At that time, the startnet.cmd is in "x:\Windows\System32\" folder.
-
Following depicts how Ghost executable is started via the startnet.cmd.
--- snip of startnet.cmd ---
echo off
if exist c:\ghost\unattend.xml (
wpeinit /unattend=c:\ghost\unattend.xml
) else if exist x:\ghost\unattend.xml (
wpeinit /unattend=x:\ghost\unattend.xml
) else (
wpeinit
set path=%path%;x:\ghost
x:
cd \ghost
ghost32.exe /setosdrives /blind >> x:\ghost\startlog.txt
start ghost32.exe
)
--- snip of startnet.cmd ---
--- snip of unattend.xml ---
...
<RunSynchronousCommand>
<Order>1</Order>
<Path>x:\ghost\start.bat</Path>
<Description>Start the Symantec Ghost Client Agent</Description>
</RunSynchronousCommand>
...
--- snip of unattend.xml ---
--- snip of start.bat ---
...
x:
cd \ghost
ghost32.exe /setosdrives /blind >> x:\ghost\startlog.txt
start ghost32.exe
--- snip of start.bat -- - To manually modify Ghost option, skip this step.
Otherwise, to finish view option, unmount the image without commit.
C:\winpe_x86> imagex /unmount c:\winpe_x86\mount
- Modify all "start ghost32.exe" in Step 10 above to read as follows
start ghost32.exe -clone,mode=restore,src=image.gho,dst=1,szel -batch
-
Commit and unmount the image.
C:\winpe_x86> imagex /unmount c:\winpe_x86\mount /commit
NOTE: There may be an error such as "Cannot commit changes" and "data is invalid".
Ignore these errors as the data will actually be written correctly. -
Replace the boot.wim file in the original Ghost boot disk with the modified file above.
|
|
Article URL http://www.symantec.com/docs/HOWTO31340
Terms of use for this information are found in Legal Notices









Thank you.