How to dual-boot Kali Linux and Windows 10 in a UEFI System


kali-linux-installed-sucessfully-but-grub-bootloader-is-not-coming



Many of us are not familiar with the term UEFI, even I have heard the term and came to know about it yesterday when I was stuck solving a problem. It was last night at around 2am, I figured out the problem and one from many of the solutions I mapped to try, worked!

My Laptop came pre-installed with Windows 10. I decided to install Kali Linux and wanted it to dual-boot with Windows 10. I installed it and rebooted my system, but the grub_bootloader failed to turn up. Tried out many different techniques and solutions but nothing worked. At last this below mentioned way dropped me to my destination successfully.

So, first let me help you understand what UEFI and BIOS is and, what is the difference between them.

UEFI stands for Unified Extensible Firmware Interface and BIOS stands for Basic Input/Output System. They both are firmware interfaces for computers which work as an interpreter between the operating system and the computer firmware. Both of them runs at computer startup to initializes the hardware components and start the operating system. A slight difference between them makes UEFI more advantageous over BIOS. UEFI does the same task as BIOS do, but a little differently. It stores all the information about initialization and startup in an .efi file instead of the firmware. This file is stored on the hard drive inside a special partition called EFI System Partition (ESP). The ESP partition will also contain the boot loader programs for the Operating System installed on your computer.

BIOS uses the Master Boot Record (MBR) to save information about the hard drive data while UEFI uses the GUID partition table (GPT). The major difference between the two is that MBR uses 32-bit entries in its table which limits the total physical partitons to only 4. Each partition can only be a maximum of 2TB in size, while GPT uses 64-bit entries in its table which dramatically extends the support for size possibilities of the hard drive.

BIOS shows to have few limitations. UEFI breaks out of size limitations, has better performance, speed, security than BIOS. Therefore, UEFI is meant to completely replace BIOS in the future and bring in many new features and enhancements that can’t be implemented through BIOS.

I hope it is clear by now what is UEFI and how it works. So, lets get into how to dual boot Kali Linux and Windows 10 and as you are going to install it in a UEFI system the installation procedure will be different.

How to dual-boot Kali Linux and Windows 10 in a UEFI System?

Requirements:-

  • Active Internet connection
  • USB drive (4GB)
  • Rufus to make a boot-able USB (https://rufus.akeo.ie/downloads/rufus-2.12p.exe)
  • Kali Linux ISO
  • UEFI system (obviously, if you don’t have UEFI system, you can just install it normally)
  • Your free time!
  1. Download Kali Linux ISO from: https://www.kali.org/downloads/
  2. Download Rufus and make a boot-able USB with the Kali Linux ISO you just downloaded in step 1. Follow the instructions here, if you don’t know how to make a bootable USB.
  3. Create a folder /EFI/Boot in the bootable USB you made.
  4. Download bootx64.efi, MokManager.efi and grubx64.efi from here: http://ftp.scientificlinux.org/linux/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ then put them into /EFI/Boot folder you created in step 3.
  5. Download the file from this link: https://drive.google.com/file/d/0B-hvo82jrNckTnFWVHhRZEdyMEU/view?usp=sharing and put it in the folder /EFI/Boot along with other three files mentioned in step 4.
  6. Disable Secure Boot and Fast Boot in BIOS but enable UEFI or EFI Mode. Select the UEFI option in Boot option (see picture below) that pops up when you press F2/escape/F10.
    kali-linux-installed-sucessfully-but-grub-bootloader-is-not-coming
  7. Now, continue with your Kali Installation. If you don’t know how to install Kali then refer to this video (https://www.youtube.com/watch?v=ZSdz_wITst8). Just watch the installation part till 10:33 min.
  8. After installation successfully completes, on next boot you will have the bootloader asking you to select whether to go to Kali or to Windows 10. It will look like this:
kali-linux-installed-sucessfully-but-grub-bootloader-is-not-coming
Tada! You are done with it! Happy Learning and Happy Coding! Have Fun.

Trial and Error lead me to success! I write this blog post so as to help others those who are having trouble installing Kali 2.0 with Windows 10 and not have to waste one and a half days in figuring out the problem like me. In this period of trial and error, I came to learn about computer architecture, new terms related to it and came to know about UEFI.

kali-linux-installed-sucessfully-but-grub-bootloader-is-not-coming

This makes sense! Isn’t it?

Comments

  1. Congo bro… excellent work …ur hard working is now an inspiration for me

    ReplyDelete
    Replies
    1. We are all inspirations for each other in some way or the other. Thanks, brother!

      Delete
  2. Thanks for this post. It sucessfully worked.

    ReplyDelete
  3. Thanks for the info bro .. I could have faced the same problem while doing it ..But now if I install it I’m not going to face any problem 🙂

    ReplyDelete
    Replies
    1. Welcome brother! Keep up with my blog!

      Delete
  4. For latest and easy tutorials follow
    techgeeks2k17.wordpress.com
    TechGeeks

    ReplyDelete
  5. Error: you need to load the kernel first.
    What does it mean? When I clicked Graphical Install it shows. I have disabled the secure boot & fast boot.

    ReplyDelete
    Replies
    1. So, after clicking on Graphical Install the error comes. Kernel is like the heart of an operating system. It seems to be an issue with your Kali Linux ISO file. Have you properly finished downloading the file? Is your system running on UEFI or BIOS?

      Delete
    2. My system is UEFI and I have downloaded the iso completely

      Delete
    3. Ok. Try this – first run your Kali live on your computer and when it loads then go to applications and run the install application from there. Hope this helps!

      Delete
    4. No boot loader pop ups …..no boot device found…bios mode uefi..did all things perfectly bt still not working help me

      Delete
    5. Share your device manufacturer details.

      Delete
  6. Worked for me thanks!

    ReplyDelete
  7. Does this work for Kali Linux 2017.1?

    ReplyDelete
    Replies
    1. Yes! Go, ahead :)
      Comment here if you face issues.

      Delete
  8. how to remove dual boot kali linux?

    ReplyDelete
  9. hi mayukh ! i followed all your instructions and i am trying to use a LIVE USB KALI LINUX and not dualboot ! on startup i get a message that the vmlinuz signature is invalid and install kernel first is the second error i get ! please help ! i have been doing this for 2 days now and it would be really heart breaking if it doesnt work ! thanks in advance ;)

    ReplyDelete

Post a Comment

Popular Posts

How to dive into programming?

Inside Data Structures and Algorithms

Stacks