Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Jan 23 '12 at 2:08

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.

up vote 13 down vote accepted

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.

share|improve this answer
Thank you very much! – elijaheac Jan 23 '12 at 4:27
Fails on Vista. Fails to install the .Net framework 2. Guess it's time for it to change the framework. Anyways great work. – Nagaraj Tantri Nov 17 '13 at 4:43
The latest version of EasyBCD can use either .NET 2.0 or .NET 4.0. You cannot manually install .NET 2.0 on Vista because it already ships with it. – Mahmoud Al-Qudsi Nov 17 '13 at 18:22
I have a peculiar problem : I am able to get to grub rescue, using yours as well as a manual approach, but unable to generate a grub2.cfg from even the rescue disk (some error about not finding /etc/release) – Milind R Nov 18 '14 at 7:36
Crackin' answer... "I wrote EasyBCD"... Boom. – Big Chris Dec 8 '15 at 17:13

Another solution is Grub4DOS.

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

share|improve this answer
do you have a tutorial to make it work on win 7 ? it does not show up partitions in the UI when i choose Install grub form the menu. – tgkprog Jun 8 '13 at 8:56
tried to run WinGrub from admin prompt that did not help either. i have ntfs on my main c drive – tgkprog Jun 8 '13 at 10:06
can it find grub.cfg which is in a linux file format such as ext4 ? I think no. – Don Jul 26 '14 at 2:17
@Don I did install grub4dos on a fat partition. That can be read and written by all systems. – Nils Jul 26 '14 at 21:04

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.

share|improve this answer
Welcome to Super User. External links can break or be unavailable, in which case your answer would not be useful. Please include the essential information within your answer and use the link for attribution and further reading. Thanks. – fixer1234 Dec 8 '15 at 18:20
Thanks for reply, I edited it. – notgiorgi Dec 9 '15 at 7:25
I'm curious why you remove GRUB2 as the last step. Isn't adding it the objective? – fixer1234 Dec 9 '15 at 14:01
If you don't remove it from EasyBCD, when you choose windows 7 on GRUB, then you'll have choice between ubuntu and windows again. – notgiorgi Dec 10 '15 at 11:19
You remove GRUB that Windows created, not the one you created from Ubuntu, or else you'll have two GRUB-s – notgiorgi Dec 10 '15 at 17:43

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.

share|improve this answer

You must log in to answer this question.

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