Page 1 of 9 123 ... LastLast
Results 1 to 10 of 82

Thread: How to EFI install Kali Linux

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Location
    outside Chicago IL
    Posts
    28

    How to EFI install Kali Linux

    The Kali iso does not support being used as a EFI bootable source out of the box. This is easily fixed.
    1) Create a bootable USB thumb drive of Kali using the directions at http://docs.kali.org/installation/ka...ve-usb-install
    2) On the thumb drive create the following folder structure /EFI/Boot
    3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/rele...4/os/EFI/BOOT/
    This is an EFI bootable version of GRUB 2.00 from Fedora.
    4) create a text file named grub.cfg in /EFI/Boot
    The contents are:
    # 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 - Boot Non Persistent Mode" {
    set root=(hd0,1)
    linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
    initrdefi /live/initrd.img
    }

    menuentry "Kali - Boot 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
    }

    5) Reboot the computer and bring up the one time boot screen and select your usb thumb drive under the EFI section.
    You now have a usb thumb drive that can boot a BIOS and EFI system.

    If you want to EFI install Kali to your computer then select the graphical or text install and continue as follows.
    6) Once you get to the disk partition part of the install create a layout like this:
    At least 400MB primary partition and select EFI boot partition as the type. This MUST be the first partition you create on the drive.
    Setup the rest of the drive as you see fit
    7) The installer will download and install the EFI enabled GRUB at the end of the installation. The installer is even kind of enough to make your new Kali Linux installation the default boot source. If you are dual booting Windows 7 EFI, there will be no option for Windows 7 at the grub menu.
    To add a Windows 7 option to the menu do the following:
    Create the following file /etc/grub.d/40_custom and add an entry like this:

    menuentry "Windows 7" {
    set root=(hd0,gpt1)
    chainloader /EFI/Boot/bootx64.efi
    }
    You may have to change the set root line to reflect your system.
    By adding the menuentry to /etc/grub.d/40_custom the option will continue to remain on the menu even after you do a update-grub.

    Have fun EFI booting your system!
    I like the bleeding edge, but I don't like blood loss!

  2. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Hi, thanks for the guide. My problem is on step 2). I'd tried both live usb install (win32 disk...and dd) but still can't mount it with write perms. for creating the EFI folder. What am I missing? Thanks

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Is the /EFI/Boot structure placed on the persistent partition? Because the first partition is an ISO9660 which is not writeable without rebuilding the ISO?

  4. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Hello bofh28! You might remember me from the guy who needed UEFi booting with backtrack on the BT forums. Glad to see that you made it here!

    I had Backtrack installed for awhile.
    Time for me to reformat my hard drive and install Kali!

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Location
    outside Chicago IL
    Posts
    28
    I used windows to create my live usb install. Once you use win32 disk imager to make the thumb drive you can create the folder before you reboot.
    I like the bleeding edge, but I don't like blood loss!

  6. #6
    Junior Member
    Join Date
    Mar 2013
    Location
    outside Chicago IL
    Posts
    28
    No /EFI/Boot is NOT on the persistent partition. EFI partitions must be the first primary partition on the drive. It MUST be formatted fat32. Then you can follow the above instructions. The EFI partition can be the same partition you write the iso files out using win32 disk imager. I have a 16GB flash drive partitioned liked this:
    /dev/sdc1 primary partition formatted fat32
    /dev/sdc2 primary partition formatted ext4

    I used windows 7 diskpart to clean all of the data and partitions off the thumb drive. I then created the primary partition and sized to 4GB. I used win32 disk imager to write out the iso. I followed the above instructions to make it EFI bootable. I then EFI booted from the thumb drive. Once in Linux I created the second partition and formatted it ext4.
    I like the bleeding edge, but I don't like blood loss!

  7. #7
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Quote Originally Posted by bofh28 View Post
    No /EFI/Boot is NOT on the persistent partition. EFI partitions must be the first primary partition on the drive. It MUST be formatted fat32. Then you can follow the above instructions. The EFI partition can be the same partition you write the iso files out using win32 disk imager. I have a 16GB flash drive partitioned liked this:
    /dev/sdc1 primary partition formatted fat32
    /dev/sdc2 primary partition formatted ext4

    I used windows 7 diskpart to clean all of the data and partitions off the thumb drive. I then created the primary partition and sized to 4GB. I used win32 disk imager to write out the iso. I followed the above instructions to make it EFI bootable. I then EFI booted from the thumb drive. Once in Linux I created the second partition and formatted it ext4.
    I tried this.

    Open CMD as admin.
    diskpart
    select disk x
    clean
    create part pri size=4096
    format fs=fat32 quick
    exit

    Verified I had a 4GB partition on the drive.

    Then I used Win32 Disk Imager to image the fat32 partition.
    Once that was done, the 4GB partition was no longer accessible. I cannot access the files on that partition.

  8. #8
    Junior Member
    Join Date
    Mar 2013
    Location
    outside Chicago IL
    Posts
    28
    Hi Rusty,

    Glad to see you here. If you run into problems you know where to come.
    I like the bleeding edge, but I don't like blood loss!

  9. #9
    Junior Member
    Join Date
    Mar 2013
    Location
    outside Chicago IL
    Posts
    28
    Joker,

    Win32 Disk Imager did not work for me either. If you have access to a Linux box you can use the supported method of dd. If you don't you can use the UNSUPPORTED method of unetbootin. Just be sure to edit the syslinux.cfg like my other post says. I realize you are going to EFI boot the machine but fix syslinux.cfg just in case.
    I like the bleeding edge, but I don't like blood loss!

  10. #10
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Following to How To from Kali's doc, I couldn't obtain a FAT32 Partition. Under Windows you can use Rufus (http://rufus.akeo.ie/).

    Just let's the setting by default, select Create a bootable disk using : iso (select the kali's iso) and Start.

    It will format your USB disk and create one partition using all the space of your USB disk. You will have to resize the partition if you don't want to waste space and create a persistence partition.

    Then you can jump to the step 2 of bofh28's How To.

    BTW thanks to the How To ! It works perfectly with my MacBook Pro Retina.
    Last edited by _dGs_; 03-29-2013 at 05:18 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •