Monday, January 3, 2022

[SOLVED] Use bcd to boot in a partition

Issue

Recently I installed Kali Linux (with GRUB2) alongside my Windows 10. For this I shrinked my D: drive. I had 100GB of unallocated space.

Than I started the install from a USB. When asked to install grub I selected yes. Everything worked fine. I had some problems with grub and dual-booting, but then I noticed a few things. When I go in the boot menu, I have the options for HDD, ODD, network boot, and windows boot manager. When I select the HDD, wich I belive is my disk(in disk management I have only disk 0). I boot in grub->Linux. If I select Win boot manager I get into windows. The boot files for linux are on the 8 partition. How can I add to bcd a new entry containing the partition 8? I belive I will boot in GRUB but that does not bother me. I can give you info from both OS.


Solution

If your disk is MBR style then you can use a so called "boot sector loader" to boot Linux using Windows boot manager (+Boot Configuration Data(BCD)). (MBR boot)

If your disk is GPT style then use boot time selection to boot either Windows or Linux. (UEFI boot)

Or your disk is GPT and you can add Windows to Linux GRUB boot menu. (UEFI boot)

For MBR dual-booting you could try suggestions in "Dual boot Windows and Linux/Unix".



Answered By - snayob