none
Diskpart - BOOTMGR is missing

    Question

  • I have a custom WPE bootable CD that uses diskpart then imagex to setup the HD.  After rebooting, I receive the following message:

     

    BOOTMGR is missing

    Press Ctrl+Alt+Del to restart

     

    If I rebuild the ISO ( using the exact same commands ) and reburn the CD enough times, it will eventually get a good install and boot up just fine.

     

    This is the batch file I use to set up the HD.

     

    diskpart /s hdsetup.txt
    format c: /V: /Q /Y
    imagex /apply image.wim 1 c:

    Here are the contents of the Diskpart script:

     

    select disk 0
    clean
    create partition primary SIZE=6000
    select partition 1
    active
    format
    exit

     

    If I omit the format c: /V: /Q /Y, it doesn't ever ( or at least not in 4 attempts ) boot afterward.  With it, I can get about a 50% success rate.  I've tried two different PC's to burn the ISO.

     

    Now, if it fails the first time, and I reboot from the CD, but skip the diskpart script and run the rest, it will work fine, which makes me think something is up with my diskpart setup.

     

    Where should I start looking to solve this intermittant problem?

     

    Thanks!

    Wednesday, August 13, 2008 2:46 PM

Answers



  • I had simialr problem that i solved by including the following
    select disk 0
    clean
    create partition primary SIZE=6000
    select partition 1
    active
    format fs=ntfs
    exit

    bootsect.exe /nt52 c:


    this made sure the bootsector on the drive was the old NT52 version which is what xpe expects to find


    good luck


    richard

    Tuesday, August 19, 2008 8:39 AM

All replies

  • I believe it has something to do with flushing the write buffer?

     

    After running the setup script listed above and extracting the .wim file, If I switch to drive C and run chkdsk a few times, the HD will boot just fine.  If I do not run chkdsk c:, it will tell me BOOTMGR is missing.

     

    What gives?

     

    Thanks!

    Monday, August 18, 2008 1:32 PM


  • I had simialr problem that i solved by including the following
    select disk 0
    clean
    create partition primary SIZE=6000
    select partition 1
    active
    format fs=ntfs
    exit

    bootsect.exe /nt52 c:


    this made sure the bootsector on the drive was the old NT52 version which is what xpe expects to find


    good luck


    richard

    Tuesday, August 19, 2008 8:39 AM
  • Adding that line to the end - after the imagex extraction seems to have done the trick!

     

    Thanks!

    Wednesday, August 20, 2008 8:34 PM
  • I had the same problem and I fixed running this command:

    X:\Windows\system32\bcdboot.exe C:\Windows

    X: is the drive where the Windows PE is started.

    I hope this can help you.


    Carlos Andres Valencia (MCSE)
    Friday, October 29, 2010 11:03 PM
  • I had the same problem and I fixed running this command:

    X:\Windows\system32\bcdboot.exe C:\Windows

    X: is the drive where the Windows PE is started.

    I hope this can help you.


    Carlos Andres Valencia (MCSE)
    Thanks Carlos! That fixed me right up.
    Friday, December 10, 2010 8:52 PM
  • the easiest way would be renaming ntldr to bootmgr.

    the prettiest is bootsect as Richard mentioned.

     

    Format with Vista/Win7 (and PE base) = 1MB MBR with Bootsector bootmgr

    Format with 2k/XP = 32KB MBR with Bootsector NTLDR.


    "Mark/Propose As Answer" if you got one.
    Saturday, December 11, 2010 10:51 AM
  • I ran into the same “BOOTMGR / NLTDR is missing” problem with Windows 7 after applying a WIM image using diskpart and ImageX and I managed to resolve it by running this command after applying the image "bcdboot c:\windows"

    • Proposed as answer by misterdiggle Friday, February 18, 2011 8:25 PM
    • Edited by misterdiggle Friday, February 25, 2011 11:24 PM found better way
    Friday, February 18, 2011 8:21 PM
  • Please just use the methode Richard explained or rename the bootloader as i mentioned.

    your workaround is overloaded.

    If the bootcode tells you that ntldr or bootmgr is missing. the file is missing.
    you all have to keep in mind that some drives (espacially UFDs) sometimes have lazy write, so after changing the bootcode with bootsect (nt52 = ntldr, nt60 = bootmgr) or renaming the ntldr to bootmgr (if using Win7 for format the drive) you should keep the drive for a few seconds on the machine.

    out of my experience sometimes the files are visible but have crc errors and so on.
    the also can be caused with safety remove.


    "Mark/Propose As Answer" if you got one.
    Wednesday, February 23, 2011 2:43 PM
  • Carlos, you are the man!! That was so easy and it worked like a charm!!! Many thanks!

    :rey

    Tuesday, April 05, 2011 3:04 AM
  • Hi,

    To fix BOOTMGR missing file problem open your antivirus software program and run a full scan on your computer.

    When the scan is complete delete all quarantined and infected files.

    Then insert the Windows 7 installation CD into your computer’s drive and restart the computer.

    After the reboot open the command prompt and type fixboot.

    Then press ‘y’ when a pop up box appears asking you for confirmation.

    Then it will automatically solve the boot problem and you should be taken to your desktop.
    • Proposed as answer by maria sara Monday, October 31, 2011 4:29 AM
    Friday, September 30, 2011 12:48 PM
  • Hi Carlos,

    do you run the abcdboot command before applying the image to a new computer?

    Thursday, July 25, 2013 7:49 PM