Missing Bootmgr when deploying imagex OS Image

Document ID : KB000017390
Last Modified Date : 10/07/2018
Show Technical Document Details
Introduction:

Problem

  • An osimage was created from a custom wim. 
  • The ImageX process completed successfully 
  • On reboot the PC displays "Bootmgr is missing" and does not load windows

Environment:  

  • ImageX OSIM deployments

Cause:

  1. The template PC that was captured was configured with a small system partition.
  2. When the Wim was captured it only contained the OS partition which does not contain the boot environment files

Resolution

Use the bcdboot command to initialize the drive with the boot environment files

  1. Browse to the camenu folder
    .................\CA\DSM\Server\SDBS\var\managedpc\camenu 
  2. Edit the imagename.cmd for the OSImage in question 
  3. add the following after the imageX command to extract the wim
     
    • bcdboot c:\windows

Additional Information:

example modifications

Windows 8

rem ---- Unpack the ImageX image.
ECHO Restore "%$ImageXImage$%" using ImageX

format c: /FS:NTFS /X /Q /V:OSIM_VOL /Y

cmd /c "s:\dism.exe /apply-image /imagefile:"%$ImageXImage$%" /index:1 /ApplyDir:c:\ /Verify"
if not %errorlevel% == 0 (
echo Error from ImageX during restore of %$ImageXImage$%.wim
goto error )

bcdboot c:\windows


Windows 7

rem ---- Unpack the ImageX image.
ECHO Restore "%$ImageXImage$%" using ImageX

format c: /FS:NTFS /X /Q /V:OSIM_VOL /Y

cmd /c "s:\imagex.exe /apply "%$ImageXImage$%" 1 c:\ /verify"
if not %errorlevel% == 0 (
  echo Error from ImageX during restore of %$ImageXImage$%.wim
  goto error
)

bcdboot c:\windows

NOTE:
The deployment of UEFI enabled target is supported only with WINPE40x64 images.

For more information about deploying an OS to a UEFI enabled system, please see the documentation here:


https://docops.ca.com/ca-client-automation/14-0/en/administrating/os-installation-management-administration/osim-images-using-imagex/deploy-os-to-uefi-enabled-target

 

Instructions:
Please Update This Required Field