none
SCCM USB Boot always booting in UEFI - OSD always failing RRS feed

  • Question

  • Good day guys

    I'm having a problem with our SCCM 2012 (SP1) setup in that I'm currently tried to run the boot disk via USB. Trying to install Windows 7. I should state that the OSD process works successfully via PXE. However when I make a boot disk via SCCM - all the machines that use this USB try to boot it via UEFI. I've tried deleting the EFI folder in the USB so it runs off legacy boot but to no success.

    The problem is if it runs via UEFI - OSD fails. I've tried setting the partitions to no success. I've tried putting a variable of OSDisk on the partition that needs the OS and also tried running the Applying OS stage to install it on the C: drive but both with no luck

    Log:

    System root for target OS is C:\WINDOWS, System drive is C: ApplyOperatingSystem 21-Apr-15 1:19:35 PM 1752 (0x06D8)
    OS Version is 6.1 ApplyOperatingSystem 21-Apr-15 1:19:35 PM 1752 (0x06D8)
    Successfully loaded a source BCD boot system ApplyOperatingSystem 21-Apr-15 1:19:35 PM 1752 (0x06D8)
    SetupNewOS: Loaded source boot system from target volume "C:\" ApplyOperatingSystem 21-Apr-15 1:19:35 PM 1752 (0x06D8)
    !sBootDevicePath.empty(), HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bootvolume.cpp,34) ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    System partition not set ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Unable to find the partition that contains the OS boot loaders. Please ensure the hard disks have been properly partitioned
    Unspecified error (Error: 80004005; Source: Windows) ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Command line for extension .exe is "%1" %* ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Set command line: "bcdboot.exe" C:\WINDOWS /l en-US ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Executing command line: "bcdboot.exe" C:\WINDOWS /l en-US ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Process completed with exit code 15299 ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bcdbooter.cpp,88) ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Bcdboot failed! bcdboot.exe C:\WINDOWS /l en-US failed (15299)
    stdout:
    Failure when attempting to copy boot files.
    stderr:
     ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    TS::Boot::BcdBooter::InstallBootFilesAndConfigBCD (sTargetSystemRoot, this->defaultLanguage, sBootVolume), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1065) ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Unloading offline SOFTWARE registry hive ApplyOperatingSystem 21-Apr-15 1:19:36 PM 1752 (0x06D8)
    Unloading offline SYSTEM registry hive ApplyOperatingSystem 21-Apr-15 1:19:37 PM 1752 (0x06D8)
    SetupNewOs(&pBootSystem), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1543) ApplyOperatingSystem 21-Apr-15 1:19:37 PM 1752 (0x06D8)
    Configure(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1721) ApplyOperatingSystem 21-Apr-15 1:19:37 PM 1752 (0x06D8)
    Installation of image 1 in package SYD0004E failed to complete..
    Unspecified error (Error: 80004005; Source: Windows) ApplyOperatingSystem 21-Apr-15 1:19:37 PM 1752 (0x06D8)

    The first red line above is where it says System partition not set. Unable to find the partition that contains the OS boot loaders. It fails right after applying/installing the OS.

    I'm running out of ideas....can you guys suggest how I can make a bootable disk to run off legacy boot??

    Oh I've tried go into the machine boot menu and try to boot the USB manually via legacy boot (BIOS) but it doesn't come up as an option. Only UEFI.

    Tuesday, April 21, 2015 11:31 PM

Answers

  • Hi,

    I'm not quite clear about the formatting steps in your task sequence, but since PXE works, I think it should be fine. When using USB bootable media, you have another disk in windows PE. So please make sure you have formatted the correct disk.

    I think you need additional steps to identify which is USB disk and which is hard disk. With script or manually.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, April 27, 2015 5:45 AM
    Moderator

All replies

  • Hi,

    Please double check your BIOS/UEFI settings, most UEFI computers support BIOS as well.

    Since the log indicate disk issue, can you confirm if the disk is formatted and partitioned successfully?

    Run diskpart and share the current disk information with us. I recommand to go through this post in case anything missed:

    How can I deploy Windows 8 in UEFI mode using Configuration Manager 2012 ?


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, April 22, 2015 8:38 AM
    Moderator
  • Good day there

    Installing windows via USB is now working further now. I've checked the partition task sequence to "make this the boot disk" for the GPT disk for the UEFI. I've also applied the OS via logical disk letter C

    I however am stuck at end of my task sequence after it finishes the last step of restarting my machine. After restarting it gets stuck on the "setup is preparing your computer for first use" - it has been over 2 hours and seems stuck. Unfortunately I can't hit F8 to grab the smsts logs.

    There should be nothing wrong with the drivers - as if I run OSD via PXE on this same machine it works no problems. When it runs OSD via PXE method it formats the drive as BIOS. If I manually select the USB disk via legacy boot - it doesn't boot up the boot rom no matter if I delete the EFI folder or not.

    You see when installing via a USB stick it always sees the disk as UEFI for it to work.

    For my partitions I've made a Windows (Recovery) partition - 600MB fixed disk

    EFI partition - 600MB FAT32 file system

    MSR partition - 256MB fixed size

    Windows partition - 100% of remaining free disk space. NTFS and removed variable OsDisk.

    I think it is a partition issue but running out of ideas.

    Thursday, April 23, 2015 2:21 AM
  • This doesn't seems to be an issue with task sequence. Please check event viewer if the machine reports any issues. Also you can try additional restart option in the task sequence.

    Thursday, April 23, 2015 8:22 AM
  • Does anyone have had any luck creating a USB stick that boots with legacy bios? I tried building one within SCCM however it always builds it as a UEFI stick. The issue with the UEFI stick is after building the machine - it says an error relating to GPT disk and that legacy boot is not supported so I can't actually load up Windows again.

    I have tried deleting the EFI folder on the USB stick for the machine to boot the stick into legacy bios however it doesn't even present the USB stick as a boot option on legacy boot. The stick still only shows up as a selectable option in UEFI boot.

    Friday, April 24, 2015 3:35 AM
  • Hi,

    I'm not quite clear about the formatting steps in your task sequence, but since PXE works, I think it should be fine. When using USB bootable media, you have another disk in windows PE. So please make sure you have formatted the correct disk.

    I think you need additional steps to identify which is USB disk and which is hard disk. With script or manually.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, April 27, 2015 5:45 AM
    Moderator
  • Sorry for the late response....I found out with this one for some strange reason SCCM wasn't building a proper USB Boot Disc - in that it'll only ever boot via UEFI.

    The way forward was to manually format a USB disk and then copy the boot files manually onto the USB. Only thru that way I could find I could get it to boot via legacy boot. Strange but seems to be fix here.

    • Proposed as answer by Alenat Tuesday, January 19, 2016 10:58 PM
    Monday, May 25, 2015 6:36 AM