How to install GRUB from inside Windows 7

I am trying to make a kernel in Visual C++ (Windows) using the tutorial here. What I am wondering is how to install GRUB from within Windows 7. If I have to download Puppy Linux or something I will, but I would prefer to install it from within Windows. In case you were wondering, I want to boot a PE EXE with a multiboot header that supports GRUB.


Solution 1:

EasyBCD can automatically install a GRUB-based bootloader called NeoGrub. It'll be chainloaded from the Windows bootloader, and you can edit its configuration file from within Windows; it also supports NTFS so you can save the kernel to the NTFS partition and load it from there.

Disclosure: I wrote EasyBCD.

Solution 2:

Another solution is Grub4DOS.

Despite the name it even works with Windows (XP) - propably with 7, too.

Solution 3:

I had this problem: had Kubuntu installed, then installed Windows 7 (Pro x64), then Kubuntu disappeared from the boot menu.

My Solution:

Install EasyBCD, add GRUB2 to boot menu, reboot, enter *Ubuntu, do this:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Run Boot Repair.

Boot repair photo

Choose Recommended repair.

Than again boot Windows and, using EasyBCD, remove GRUB2.

Solution 4:

Another solution is to use Grub2Win that supports both EFI and BIOS loading on Windows 7-10/XP/Vista. Based on grub version 2.02 and give you a GUI to handle a boot.