Recovering the Vista, Windows 7, or Windows 8 Bootloader

If you can boot into Windows, we highly recommend using our Recovering the Windows Bootloader with EasyBCD guide instead.

If you’re on an EFI/UEFI machine or have GPT disks, you will need to use Easy Recovery Essentials (one-click Windows recovery CD) instead.

 

En boot winpe ou winre

bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
bootrec.exe /rebuildbcd

Now we get rid of the old BCD registry, and create a new one instead.
attrib -h -s C:\boot\BCD
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
attrib -h -s C:\boot\bcd.temp
del c:\boot\bcd.temp
bcdedit.exe /create /d "Microsoft Windows" /application osloader
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
bcdedit.exe /displayorder {c0dfc4fa-cb21-11dc-81bf-005056c00008}

If you are not using BootIt BM, DISKPART can be used from the Repair Disc to set the Windows partition active.

  1. Boot to the Repair Disc and run the Command Prompt
  2. Start DISKPART by running the following command:
    diskpart
  3. DISKPART will start and you will be at the « DISKPART> » prompt.
  4. List the drives by running the following command:
    list disk
  5. The installed drives will be listed, starting with Disk 0. In most cases, Disk 0 is the booting drive and also the drive containing the booting partition. You need to select the drive that contains the partition which needs to be set active. In this example, that is Disk 0. Select the appropriate drive by running the following command:
    select disk 0
  6. The next step is to select the partition. To see the list of partitions on the drive, run the following command:
    list partition
  7. Select the partition which needs to be set active. In this example, Partition 2 is the desired partition.
    select partition 2
  8. Set the selected partition active by running the following command:
    active
  9. Finally, exit DISKPART:
    exit