4

I installed Ubuntu along with Windows 10. the problem that I'm facing is that I cannot boot back to my Windows after I installed Ubuntu. I tried to run boot-repair but it said:

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB).

What should I do?

Here is the log

Thank you

Zanna
  • 70,465

1 Answers1

8

I always get the same problem when I install Ubuntu to my nvme ssd hard drive alongside Windows 10.

I think the problem is related to uefi or mbr or efi or legacy which I know nothing about

But after searching for hours I always fix this problem with this method:

NOTE: this method not the easiest or the best, but at least it works

  1. Burn Windows to USB

  2. Plug the USB into your computer

  3. Start the computer and press Esc (or whatever key you use to access the boot menu)

  4. Select the USB in the boot menu

  5. Choose language and press next

  6. Select Repair your computer

  7. Select Advanced

  8. Select Command prompt

  9. Enter the following commands:

    bootrec /fixmb
    bootrec /fixboot
    

    Note: it's ok if the above step returned access denied or something like that

    bootrec /rebuildbcd
    bcdboot c:\windows /s c:
    

Then reboot and repeat the steps from number 3 to 7

Now instead of opening the command prompt choose Fix startup problems

After that you are done.

Zanna
  • 70,465
abu8na9
  • 96