How to restore Windows bootloader and still have Kali Linux

16,665

I've done this before, same OS same conditions. Note that if you want to use the Win8 bootloader, if you were to choose to boot into Kali, your computer will restart a second time since Win8 'preloads' some system files which gives you the impression that it loads extremely fast.

EDIT: IMPORTANT

This applies if GRUB is currently your bootloader. If the Windows bootloader is already default, you won't be able to boot into Kali, then follow the steps below but skip step 7. This is because if you do step 7 you are essentially writing the Windows bootloader (since it is already default) and you will not be able to boot into Kali. Also make a Win8 repair disc/USB first to be safe, and backup your files as always!

  1. Boot into Windows and install EasyBCD.

  2. Open EasyBCD and go to the "Add New Entry" section and the "Linux/BSD" tab.

  3. Select the bootloader you have for your Kali - for GRUB2 there's an autoselect mode which will select the appropriate partition for you.

  4. Name the entry, eg "Kali Linux". The name you put there is the one that will appear in the Windows bootloader.

  5. Select the partition where Kali's bootloader is, autoselect if possible. Now it should look like this (apart from the Kali name etc): enter image description here

  6. Click in "Add entry" and you'll receive the result in the bottom left part of the program (different name): enter image description here

  7. Now you have to restore the Windows bootloader as the default one, for that go to the "BCD Deployment" section, there select to write the Vista/7 bootloader in the MBR (which by the way is the same as for Windows 8): enter image description here

  8. Restart Windows if you want to and you’ll see a Windows boot menu rather than the Linux one. However, you will find that the menu is text-based; but you can easily switch to a more graphical version.

  9. To use the beautiful Windows 8.1 bootloader open an elevated Command Prompt and type bcdboot C:\Windows, press Enter (wait till cmd acknowledges it) and restart Windows and you should see a far friendlier menu from which to choose your operating system!

enter image description here

Note that sometimes after a few reboots you'll end up booting into the traditional Windows bootloader again, I'm not sure why, but just repeat step 9 and it will be fixed.

Upon choosing Kali, you will be directed to GRUB again. If you want to boot directly into Kali, you might want to set GRUB timeout to zero.

PROBLEMS YOU MAY RUN INTO

1. "Missing Operating System" upon reboot

This may happen if you accidentally delete the Windows entry in EasyBCD. Just boot up using the repair disc created earlier and enter Command Prompt via Advanced Startup Options/System Recovery Options. Rebuild the BCD by following the instructions here. Upon reboot you will get the traditional Windows bootloader so you may have to redo the steps above.

Similar superuser question. I initially followed the instructions here but it didn't work for me because the answer didn't have step 9, which I found - after much searching - here.

Share:
16,665

Related videos on Youtube

kprovost7314
Author by

kprovost7314

I'm a programmer for all kinds (Game Development, Program Development, Web Development, etc.).

Updated on September 18, 2022

Comments

  • kprovost7314
    kprovost7314 over 1 year

    I installed Kali Linux 1.0.9a on my Windows 8.1 system today and installed it, but I don't want the GRUB bootloader menu. I want to use the original Windows bootloader. How can I do this?

  • kprovost7314
    kprovost7314 over 9 years
    Is Kali Linux GRUB2?
  • Rsya Studios
    Rsya Studios over 9 years
    It should be, to check just boot into GRUB(2) and there should be the version on top. GRUB 2 is version 1.98 or later. What version is your Kali?
  • kprovost7314
    kprovost7314 over 9 years
    1.98 (or 99). But I thought anything below 2 was legacy. Thanks.
  • Rsya Studios
    Rsya Studios over 9 years
    GRUB 1.98 is GRUB 2. I think GRUB1 (legacy GRUB) never got beyond about 0.97.
  • Rsya Studios
    Rsya Studios over 9 years
    Is your computer UEFI? Did you click the Write MBR in EasyBCD? See diggerpage.blogspot.co.nz/2014/04/…
  • Rsya Studios
    Rsya Studios over 9 years
    Also see here: howtogeek.com/forum/topic/failure-attempting-to-copy-boot-fi‌​les Apparently the command differs for different OSs.
  • Rsya Studios
    Rsya Studios over 9 years
    Haha congratulations :) I'm dualbooting it right now actually :D
  • kprovost7314
    kprovost7314 over 9 years
    I had to install Ubuntu 14.10 because I tried that, and my MBR was screwed up. It just said "Missing Operating System". Now I have to use GRUB but I'm going to try adding an OS with EasyBCD and see if I still have the Windows 8.1 boot menu.
  • Rsya Studios
    Rsya Studios over 9 years
    I ran into this problem before, did you accidentally delete the Windows entry or something in EasyBCD? You just need to use the Win8 startup repair disc/USB and rebuild the BCD in Command Prompt by following the instructions here. pcsupport.about.com/od/fixtheproblem/ht/… Also is your computer UEFI or BIOS? x64 or 32bit? I dual-booted Kali and Win8.1 yesterday and it all worked fine for me, only difference was the EDIT I made in the answer.
  • kprovost7314
    kprovost7314 over 9 years
    My bios type is Legacy (maybe because I upgraded from Windows Vista) and my pc is x32.
  • Rsya Studios
    Rsya Studios over 9 years
    @kprovost7314 OK, mine is same but x64. Does it work now? I finished dual-booting yesterday and now it works, but I installed 1.09 instead of 1.09a.
  • Rushil Paul
    Rushil Paul over 8 years
    > Step 1: Boot into windows. And how do I do that if I don't have a windows bootloader??