Dual Boot Fedora 20 Kali Linux UEFI

Dual Boot Fedora 20 Kali Linux UEFI

I have already got my Toshiba Ultra Book U840W-x0110 laptop running Fedora 20. This post is about getting the Kali Linux distro to dual boot with Fedora. I have created a Kali Live CD by downloading the ISO image from the official site.

The laptop hard disk size is 500GB. In my installation I had allocated 200GB for the Fedora installation. Hence the remaining approx. 300GB is free for Kali Linux.

The Toshiba Ultra Book U840W-x0110 laptop has UEFI boot enabled by default. The laptop could not directly boot Kali Linux live CD. This is because Kali Linux does not support UEFI boot. Hence to boot Kali Live CD we need to change the UEFI settings of the laptop. We need to make the laptop boot in the legacy BIOS interface (CSM Boot).

  1. Restart the laptop and hold the F12 key. In the Boot Menu navigate using the arrow keys to the <Enter Setup>. Under “Advanced” tab enter “System Configuration”. Here change the “Boot Mode” to “CSM Boot”. Press F10 to save and exit.
  2. Now the Kali Linux Live CD should boot with a loud annoying beep.  Trigger the installation by navigating to the “Install” option.
  3. Select the installation language, Location and the Keyboard in the subsequent windows.
  4. For the network interface I connected the internet via the Ethernet cable. Somehow the WiFi didn’t seem to work.
  5. Enter the host name of your choice.
  6. Enter a domain Name.
  7. Provide and verify the root password.
  8. Select the time zone.
  9. Select “Automatic Partition with the remaining free space” for installing Kali Linux in the remaining free space of the hard disk.
  10. Continue with the installation until the below window for GRUB boot loader appears. Do not install the GRUB loader. Press the escape key to do this.IMG_2613
  11. The below window should appear.
  12. Select “Continue without boot loader”. The below window should appear. Note down the partition. This is important for GRUB configuration. In my case it is sda4. Finish the installation.
  13. Now we need to boot into fedora again. For this we have to enable UEFI again. Follow step 1 but enable UEFI boot this time.
  14. Once in Fedora edit the 40_custom file. Run the below command in the terminal as root.
    gedit /etc/grub.d/40_custom
  15. Add a entry for the recently installed Kali Linux. The 40_custom file should look as below.  In my case I had installed Kali Linux on sda4. Hence the root is also set to (hd0,4).
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    menuentry "Kali Linux" {
        set root=(hd0,4)
        linuxefi /boot/vmlinuz-3.14-kali1-amd64 root=/dev/sda4 ro quiet splash
        initrdefi /boot/initrd.img-3.14-kali1-amd64
  16. Now run the below command to update the GRUB menu. During the next boot the GRUB menu should show an entry for Kali Linux.
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Leave a Reply

Your email address will not be published. Required fields are marked *