I had windows 10 installed on my computer and wanted to install Ubuntu 19.10 alongside it. Everything worked but on boot it went straight to Windows instead of the GRUB menu and I didn't want to have to go into bios settings every time I wanted to start Ubuntu. So I found some article (https://itsfoss.com/no-grub-windows-linux/) that made me use this command in windows: bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi and I used it without much thinking about it. Now I can't get into windows anymore no mather what device I boot from it always just goes straight to ubuntu

  • 2
    You should not mess with the Win10 boot manager file unless you know what you're doing. Normally you cannot fix it from Ubuntu. But if you go to /boot/efi/EFI/Microsoft/Boot you'll see a file BCD and maybe one named BCD.Backup.0001. If so, rename BCD -> BCD.bad, and the backup -> BCD. You'll need root permission for this. Then reboot and you may get lucky. Otherwise you'll have to to rebuild BCD using either of these tools. Oct 19, 2019 at 0:43
  • you can try boot-repair. Might work see this askubuntu.com/questions/88384/… Oct 19, 2019 at 7:11

1 Answer 1


This video helped me: https://www.youtube.com/watch?v=l_I4K2-Rr_Y

Use a windows bootable dvd, open the command line, use diskpart to assign a letter to your EFI partition, format it, use bcdboot to create a new EFI directory

You must log in to answer this question.

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