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
Asked
Active
Viewed 753 times
1

magiccheese
- 21
1 Answers
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

magiccheese
- 21
/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. – Paul Benson Oct 19 '19 at 00:43