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: 2013-09-09  |  Article URL http://www.symantec.com/docs/HOWTO31340
Article Type
How To



Question/Issue:

How to check which Ghost option is used actually with WinPE boot disk and how to modify the option manually
 
Answer:
Warning: Symantec Technical Support for Microsoft Windows PE is limited to the use and troubleshooting of Symantec Ghost. Support is not offered for configuring or troubleshooting Windows PE operations outside the functionality of Ghost. The information below is provided "as is" and questions about Windows PE or the process used to create a Windows PE disk should be directed to Microsoft.
  1. 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

  2. Once downloaded, extract the contents of the image file to any folder.
     
  3. 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).
     
  4. Click Start > All Programs > Microsoft Windows AIK > Windows PE Tools Command Prompt

  5. In command prompt, type the following command to setup up environment.

    C:\Program Files\Windows AIK\Tools\PETools> copype.cmd x86 c:\winpe_x86

  6. To modify the boot.wim in the Ghost boot disk, backup and copy it to  c:\winpe_x86\
     
  7. 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

  8. 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.

  9. 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.

  10. 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 --
              

     

  11. 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

  12. 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
     
  13. 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.

  14. 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