Hello, I am new to Kali Linux, and I just bought a laptop (Asus N56VJ-DH71) which runs UEFI system (my my, it costs me 2 days because of this).
Anyway, it was hard to install Kali Linux with the EFI system because you encounter some weird errors and you have to fix them manually.
I am going to write a complete guide here (I don't really know much, but I've followed most of the guides on Google and spent 2 days for it. So I might be able to get you out of desperating installing Kali in EFI system).
Installing with Normal ISO Kali file:
Requirements:
- Internet (Wifi or Cable)
- USB (4 GBs)
- Rufus or Win32 Disk Imager (to make bootable USB)
- EFI system (obviously, if you don't have EFI system, you can just install it normally)
- 2 hours of your time
1. Download Kali Linux ISO with this link: http://www.kali.org/downloads/
2. Download Rufus or Win32 Disk Imager and make bootable USB with the Kali Linux ISO you just downloaded in step 1. See Picture.
- Rufus: http://rufus.akeo.ie/ (here's the guide to use Rufus: http://bootableusb.net/install-windo...e-using-rufus/)
- Win 32 Disk Imager: http://sourceforge.net/projects/win32diskimager/ (Have no idea how to use this, but it seems a little easy)
3. Create a folder /EFI/Boot in your USB (You now have some data of Kali Linux in your USB already). See Picture.
4. Download bootx64.efi, MokManager.efi (don't know if this is needed, but I just do it anyway), and grubx64.efi from here: ftp://mirrors.kernel.org/fedora/rele...4/os/EFI/BOOT/
then put them into /EFI/Boot folder you created in step 3.
5. Create a file named grub.cfg in /EFI/Boot in your USB with the following contents:
Note: You can download the file here too: grub.txt. But make sure you put it into /EFI/Boot folder in your USB along with the 3 files in step 4 and change the name to grub.cfg. See Picture.
You now have the bootable USB that EFI system can recognize it.Code:# Config file for GRUB2 - The GNU GRand Unified Bootloader # /boot/grub/grub.cfg # DEVICE NAME CONVERSIONS # # Linux Grub # ------------------------- # /dev/fd0 (fd0) # /dev/sda (hd0) # /dev/sdb2 (hd1,2) # /dev/sda3 (hd0,3) # # root=UUID=dc08e5b0-e704-4573-b3f2-cfe41b73e62b persistent set menu_color_normal=yellow/blue set menu_color_highlight=blue/yellow function load_video { insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus insmod all_video } load_video set gfxpayload=keep # Timeout for menu set timeout=5 # Set default boot entry as Entry 0 set default=0 set color_normal=yellow/blue menuentry "Kali - Live Non-persistent" { set root=(hd0,1) linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali initrdefi /live/initrd.img } menuentry "Kali - Live Persistent" { set root=(hd0,1) linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence initrdefi /live/initrd.img } menuentry "Kali Failsafe" { set root=(hd0,1) linuxefi /live/vmlinuz boot=live config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal initrdefi /live/initrd.img } menuentry "Kali Forensics - No Drive or Swap Mount" { set root=(hd0,1) linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali noswap noautomount initrdefi /live/initrd.img } menuentry "Kali Graphical Install" { set root=(hd0,1) linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788 initrdefi /install/gtk/initrd.gz } menuentry "Kali Text Install" { set root=(hd0,1) linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788 initrdefi /install/initrd.gz }
6. Disable Secure Boot in BIOS but enable UEFI or EFI Mode (DO NOT USE Legacy/CMS mode).
See picture
If you're using Windows 8, follow this guide: http://forums.toshiba.com/t5/Windows...-8/ta-p/329292 (I know, Windows 8 is god **** weird)
If you're just using normal Windows 7 or something like that, just press F2 while booting to get to BIOS.
7. You can now see in the Boot section of your BIOS has the Boot Option for your USB. Boot it (anyway you can, if you don't know. Google them a little bit for your computer model, because each BIOS is different, I guess?)
See picture
Make sure Legacy Mode is turned off, or CMS is turned off.
8. Install your Kali Linux as you see fit, BUT manually set up the Partition like this:
See picture 1
See picture 2
See picture 3
Then you just need to press "Done setting up the partition" and "Finish partitioning and write changes to disk."Code:Name: Kali Linux (your choice) Use as: Ext4 journaling file system Mount point: / Mount options: Default Label: none (you can label it if you want) Reserved blocks: 5% Typical usage: Standard Bootable flag: off
(Maybe you could set a swap parition and others if you would like. Otherwise, you can just stick with this. I have no idea if it affects anything, but I'm new to Linux.)
8. Follow the installation till you done. If no error occurs, you will be able to see a new Boot Option in your BIOS after you installed Kali Linux.
Happy with your adventure if no error occurs. However, if error of grub-efi failed to install, take a look at below post.
I will write a how-to on installing with Mini Kali Linux in EFI system later. I don't have the files with me right now, gotta change some stuffs on it too. But I can assure you that I'll do it tonight.
If you have any question, or my instructions didn't clear anything. Please ask, I'll try to fix the Instructions and answer some of the questions if I can. But remember, I'm new to Linux.
Thank you for reading the post.
The followings are special thanks for the sources that I've read:
https://forums.kali.org/showthread.p...all-Kali-Linux (posted by bofh28)
ftp://mirrors.kernel.org/fedora/rele...4/os/EFI/BOOT/ (well, just thanks )
http://forum.linuxbsdos.com/topic/11...for-kali-linux (who posted this? But thanks )
http://bootableusb.net/install-windo...e-using-rufus/ (posted by bootable)
https://forums.kali.org/showthread.p...de-Windows-8-1 (posted by vee9595)
http://forums.toshiba.com/t5/Windows...-8/ta-p/329292 (posted by dmanh)