Boot Manager gone :(

Discussion in 'Windows XP / Older OS' started by UVAIS, Apr 25, 2011.

  1. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,333
    1,890
    60
    I installed XP (in primary partition)in c drive first and after i installed Windows 7 in other drive now when i Reinstall Windows xp my Bood Maneger (Menu) has gone and only XP is opening :( I m unable to load my Windows 7 so i want to know how to fix this problem :mad:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Daz

    Daz MDL Developer / Admin
    Staff Member

    Jul 31, 2009
    9,511
    66,656
    300
    #2 Daz, Apr 25, 2011
    Last edited: Apr 25, 2011
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,333
    1,890
    60
    Thanks Daz bro :hug2::):worthy: hey one more thing can i copy boot file before reinstall xp and replace after install xp is this work?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Daz

    Daz MDL Developer / Admin
    Staff Member

    Jul 31, 2009
    9,511
    66,656
    300
    Wouldn't work as it's the MBR thats changed ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,333
    1,890
    60
    Thanks again bro:hug2:;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. freakyfreak

    freakyfreak MDL Novice

    Apr 27, 2011
    6
    4
    0
    #6 freakyfreak, Apr 28, 2011
    Last edited by a moderator: Apr 20, 2017
    I found this commands to fix MBR and bootsectors in Windows 7:

    Replace x: in the commands below with the letter to your CD drive as detected by the Windows
    Recovery environment.

    Method 1:
    Code:
    bootrec.exe /fixmbr
    x:\boot\bootsect.exe /nt60 all /force
    Then ask it (nicely!) to try and rebuild your BCD data from scratch:
    Code:
    del C:\boot\bcd
    bootrec.exe /rebuildbcd
    If you're lucky, this'll work and you'll see a message telling you everything went OK.

    Reboot your PC by typing in this command or by closing all the dialogs:
    Code:
    shutdown -r -t 0
    Method 2:
    Code:
    bootrec.exe /fixmbr
    x:\boot\bootsect.exe /nt60 all /force
    Now we get rid of the old BCD registry, and create a new one instead.
    Note: We're assuming that the boot drive is drive C: below.
    If your computer is configured differently, be sure to use the appropriate drive letter here instead.
    Code:
    del C:\boot\bcd
    bcdedit /createstore c:\boot\bcd.temp
    bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
    bcdedit.exe /import c:\boot\bcd.temp
    bcdedit.exe /set {bootmgr} device partition=C:
    bcdedit.exe /timeout 10
    del c:\boot\bcd.temp
    Now we have a clean, working Win 7 bootloader. But we need to add a Win 7 entry to it:
    Code:
    bcdedit.exe /create /d "Windows 7" /application osloader
    bcdedit.exe should return a message with a GUID for the newly-created entry, something like this:
    Code:
    The entry {c0dfc4fa-cb21-11dc-81bf-005056c00008} was successfully created
    You'll need to use the value that bcdedit.exe returned for you below, along with the drive
    letter for the drive that Windows 7 is installed to:
    Code:
    bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} device partition=C:
    bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} osdevice partition=C:
    bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} path \Windows\system32\winload.exe
    bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} systemroot \Windows
    And, last of all, tell the Win 7 bootloader to boot the new entry by default:
    Code:
    bcdedit.exe /displayorder {c0dfc4fa-cb21-11dc-81bf-005056c00008}
    bcdedit.exe /default {c0dfc4fa-cb21-11dc-81bf-005056c00008}
    At this point, you have a clean, untouched, and (hopefully) fully-working bootloader.:tankyou:
     
  7. Rossimac

    Rossimac MDL Novice

    Feb 4, 2011
    24
    2
    0
    Awesome tut!