thecoducer_mayukh5741_mayukhdatta

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

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.thecoducer mayukh5741 something somewhere mayukh datta
  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:

thecoducer mayukh5741 something somewhere mayukh datta

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.

thecoducer_mayukhdatta

This makes sense! Isn’t it?

Advertisements

Published by

The Coducer

A geek, a curious learner, pro-procrastinator, wanderer. Love to meet new people and make new friends. Happy to have you here! Follow @thecoducer on Twitter, Instagram.

11 thoughts on “How to dual-boot Kali Linux and Windows 10 in a UEFI System”

    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?

      Like

        1. 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!

          Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s