1

I recently p2v'ed my old Computer into a virtual machine. Since it had a dual-boot and I only copied the Windows partition this broke GRUB. I can still boot Windows with Rescatux though. So my question is if I can restore the original Windows Bootloader so I don't have to select "find any operating system" in Rescatux when i boot the VM.

1

2 Answers 2

1

Load a Windows installation disc from ISO on your VM, choose Repair when prompted with the Install Now screen and opt to open a Command Prompt. There you should type:

bootrec /fixboot
bootrec /fixmbr
1

The following method completely rebuilds everything, you can use it from your favorite Windows Setup. Just use Shift-F10 to fire up a command prompt without going through unnecessary steps.

bcdboot c:\windows /s c:

This installs a completely pristine Windows Boot Manager to c: and adds Windows to it. You may need to find the right drive letter first, though.

bcdboot may not be in %PATH%. You can find it on your Windows partition, like this:

c:\windows\system32\bcdboot c:\windows /s c:
4
  • bdcboot C:\windows /s C: give me Failure when attempting to copy boot files
    – 0x539
    Commented Jul 3, 2015 at 18:30
  • You did make sure C: is the right partition? Did you attempt to run this command after booting from Windows Setup, as described?
    – Daniel B
    Commented Jul 3, 2015 at 18:35
  • I missed the part about Windows setup. When do I have to press Shift+F10?
    – 0x539
    Commented Jul 3, 2015 at 19:40
  • It’s always available as soon as the GUI has finished starting. bcdboot can also be run from within Windows, but needs to run with admin rights. Unless you explicitly started cmd as admin, it runs with restricted rights.
    – Daniel B
    Commented Jul 3, 2015 at 21:10

Not the answer you're looking for? Browse other questions tagged .