If you think this video is helpful, you can encourage me to make more of these videos by helping me at https://www.paypal.me/nehaljwani
Inner Light (9:36) by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Smooth Sailing (with Guitar) (5:36) by Audionautix is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
This is a tiny tutorial for dual booting Kali Linux 2.0 Sana with Windows 8/8.1/10 in UEFI Mode.
Step 1. Make some space in Windows for installing Kali LInux.
Step 2. Create Bootable Installation Media (Use Win32 DiskImager in Windows or use dd in Linux) I used the disk: http://cdimage.kali.org/kali-2.0/kali…
Step 3. Boot using this media in LEGACY BIOS/CSM mode. I know, that Kali Linux 2.0 claims to support UEFI, but for me, it didn’t work. Even the hypervisors Qemu and VMWare segfaulted.
Step 4. Create at least two partitions (I created swap and one for /). DO NOT create any bios_grub partition and DO NOT setup any boot loader. Continue with the installation, but skip setting up boot loader.
Step 5. Create Bootable Installation Media for any Linux Distribution, which is UEFI compatible, and supports live mode. I prefer System Rescue Disk: https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/4.7.1/systemrescuecd-x86-4.7.1.iso/download . You can also use Ubuntu Installation Media.
Step 6. Boot using this media in UEFI mode. Make sure it is UEFI, otherwise it won’t work. Once booted, fire up a terminal and type [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS to confirm.
Step 7. Use gdisk to figure out which partition contains your Kali Linux installation. For me, it was /dev/sda4. Might be different for you. Type gdisk -l /dev/sda to figure it out.
Step 8. Mount the Kali Linux partition to /mnt. Also mount (in bind mode) /dev /dev/pts /proc /sys
Step 9. Create the directory /mnt/boot/efi
Step 10. Mount the EFI partition to the newly created directory. Use gdisk -l /dev/sda to figure that out. For me, it was /dev/sda1
Step 11. Chroot into /mnt.
Step 12. Add sana repository, using the command: echo “deb http://http.kali.org/kali sana main non-free contrib” | tee /etc/apt/sources.list
NOTE: If you are using Kali Roling, then using the command: echo “deb http://http.kali.org/kali kali-rolling main contrib non-free” | tee -a /etc/apt/sources.list
Step 13. Update apt-get. apt-get update
Step 14. Install grub-efi package. apt-get install -y grub-efi
Step 15. Setup grub. grub-mkconfig -o /boot/grub/grub.cfg ; grub-install /dev/sda
Step 16. Reboot, boot into Kali, and run grub-mkconfig -o /boot/grub/grub.cfg again
Note: If you get ‘unable to resolve’ errors, please type:
echo “nameserver 220.127.116.11” | sudo tee /etc/resolv.conf
Some machines have weird UEFI implementation, and grub-install doesn’t work from under a chroot environment, because it throws the error:
efibootmgr: Skipping unreadable variable “Boot0005”: Input/output error
efibootmgr: Could not prepare boot variable: Input/output error
In such cases, after you do grub-mkconfig -o /boot/grub/grub.cfg , just come out of chroot by typing exit, and then type:
efibootmgr -c -d /dev/sda -p 1 -l /EFI/kali/grubx64.efi -L “KaliLinux” #Replace 1 with the partition number of the EFI partition.
If you have an Acer Laptop, please go through:
Video Install Kali Linux 2.0 (Sana) in UEFI Mode (Dual Boot Windows 8/8.1/10)
Share for free by Nehal J Wani and https://xanhen.com/.