PDA

View Full Version : How to EFI install Kali Linux



bofh28
2013-03-17, 23:24
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/kali-linux-live-usb-install
2) On the thumb drive create the following folder structure /EFI/Boot
3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/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!

riddimr
2013-03-25, 17:12
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

overmetal61
2013-03-26, 02:58
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?

RustyLambda
2013-03-27, 23:53
[redacted]

bofh28
2013-03-28, 00:30
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.

bofh28
2013-03-28, 00:41
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.

joker
2013-03-28, 08:19
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.

bofh28
2013-03-29, 01:32
Hi Rusty,

Glad to see you here. If you run into problems you know where to come.

bofh28
2013-03-29, 01:39
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.

_dGs_
2013-03-29, 03:08
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.

dc0dd
2013-03-30, 00:02
I used rufus as well to set the bootable disk and was able to then use bofh28's directions. I did have to add the additional items from bootx64.efi download (i.e. grubx64.efi and MokManager.efi) in order for it to work. However, after I chose the EFI boot device from my Macbook Pro and used the default Kali (non persistent) choice in grub I get to the next screen and it hangs at "Secure boot not enabled". Is this an issue with the grub.cfg or did I miss a step somewhere?

bofh28
2013-03-30, 00:56
Sorry I don't have a Macbook to help.

iamfuturetech
2013-03-30, 01:41
Is there a way that a video tutorial can made to demonstrate this procedure? It'll be very helpful for some of use are visual learners...

comptech81
2013-03-31, 15:46
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/kali-linux-live-usb-install
2) On the thumb drive create the following folder structure /EFI/Boot
3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/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!

What am I suppose to do with bootx64.efi? Am I suppose to put it in the /EFI/Boot? Or do you place it in root directory? Also, I am able to boot from the USB when I go into my computers BIOS and switch to legacy boot. However, when I go to create my /boot partition I don't have the option to create an EFI boot partition. I only have the option to create a normal Linux boot partition.

bofh28
2013-04-01, 00:02
You have to put bootx64.efi in /EFI/Boot/

What are you using to create the partitions? If you are using the installer to create the partitions the problem might be you booted in BIOS mode. Try again in EFI mode. Also all you need is for the first primary partition be formatted fat32 for it work properly. If you want to get hypertechnical there is EFI system partition in the installer you can too.

chucky42
2013-04-04, 10:42
i succed dual booting windows 7 64 bit and kli linux 64 bit under uefi mode... first u need universal usb installer latest version which u can find it here http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
then on step 1 :select linux distribution "kali linux" step 2 : ur kali linux amd64.iso step 3 : select ur pendrive. u can tick the format: (ur pendrive letter), on step 4 u can set how many mb u want to use for presistence. let say kali linux amd64 use around 2.2 gb on u pendrive, then u have extra 1.8 gb space on ur 4 gb pendrive then u set it 1500mb on presistence (this is optional)... after all are complete click create.. then wait until its done.. after that u download bootx64.efi and grubx64.efi from ftp://mirrors.kernel.org/fedora/rele...4/os/EFI/BOOT/ . open ur pendrive thats u create before for kali linux then make this folder EFI, open it and create Boot folder, now inside the Boot folder that we cut and paste that two files we download before bootx64.efi and grubx64.efi. after that create a text file named grub.cfg in the /EFI/Boot/ , copy and paste the content from #1 post from bofh28.save it.. after all are done then reboot ur computer and press esc during boot... select ur uefi: usb kali linux.. congrats u r now booting kali linux on uefi mode.. u can select graphical installation...during installation u have this network problem.something about network interface firmware is missing. dont worry all u need is ethernet cable.. connect ur internet using ethernet cable to ur router. after all r done on partition follow like what op said create "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" The installer will download and install the EFI enabled GRUB at the end of the installation. when first u restart u computer there will be windows 7 at the grub menu.. but the windows 7 on the grub menu u will not able to boot it up. it will state "invalid : EFI file path.. start ur kali linux..ok open computer, then select file system.. in the file system go to etc folder, inside etc folder look for grub.d folder. select the grub.d folder, open file 40_custom using leafpad copy this and paste it.


menuentry "Windows 7" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

save it. then open ur teminal update-grub. now when u reboot ur computer then u see "windows 7" entries on the grub.. select it when u want to boot widows 7.. its working now flawlessly... hope this will help someone here.. sorry for my bad english coz its not my language here. atleast u guys can understand... cheers...

Merire
2013-04-12, 17:55
Hello,
This is not working for me (MSI GT60). I can boot in legacy mode (=bios) but Kali is buggy (looks like a window manager problem). When trying in UEFI with these instructions, first it told me "secure boot is not enabled" so I went to the bios setup (or whatever is its new name) to enable it. When I tried to boot Kali then, it told me that the kernel was not correctly signed. I'm not sure if I should build another iso with github instead of using the official one, especially since I'm not really fond of GNOME. Any advice ?

Seriously, this secure boot thing is really getting on my nerves... Thanks, microsoft.

bofh28
2013-04-13, 01:40
Leave secure boot disabled in the bios. Enabling it will just cause you problems. I see secure boot is not enabled each time I boot into Kali it is normal.

Try disabling secure boot again and post any messages you see or describe what you are doing and what see/not see in detail.

Merire
2013-04-13, 09:50
Wow, you are fast, thank you !

When I leave secure boot disabled, I can see the GRUB boot screen with "kali - boot non persistent mode, Kali - boot persistent, Kali Failsafe, Kali forensics...".
When I chose the first one (I tried them all, same result), I have this message :
"Booting 'Kali - boot non persistent mode'
Secure boot not enabled
_"
And nothing else. Any idea ?

infomaniac
2013-04-13, 14:14
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.

On my macbook pro (2008, Santa Rosa), using the dd command exactly as shown on http://forums.kali.org/showthread.php?362-Kali-Linux-Live-USB-on-MAC
sudo dd if=kalilinux.iso of=/dev/disk1 bs=512 conv=noerror,sync

does NOT result in a readable FAT partition. So I tried the UNETBOOTIN method. However, there are some missing details. I have not fixed syslinux.cfg "like the other post says" because the data format is completely different. /boot/grub/grub.cfg is grub2 format, while /syslinux.cfg seems to be legacy grub (not sure about that).

However, ignoring the "just in case", I went ahead and booted from USB, with the following result:


rEFInd - Booting OS

Starting bootx64.efi
Using load options ' '
Failed to open \EFI\BOOT\grubx64.efi - B00000000000000E
Failed to load image
Failed to open \EFI\BOOT\MokManager.efi - B00000000000000E
Failed to load image
Error: Not Found returned from bootx64.efi

* Hit any key to continue *


1) the first thing I noticed is that following the directions on this page results in /EFI/Boot/ - not /EFI/BOOT/ ... I am assuming that case sensitivity may be an issue
2) i'm a little disturbed that the boot messages are using the windows backslash \EFI\BOOT\
3) the file downloaded from 3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ is actually named BOOTX64.efi - not bootx64.efi as shown in the error message. I'm not sure that case sensitivity matters, since the error is apparently returned from bootx64.efi
4) following the instructions here does not result in the creation of a file \EFI\BOOT\grubx64.efi (rather, there is /EFI/Boot/grub.cfg)
5) following the instructions here does not result in the creation of a file \EFI\BOOT\MokManager.efi

This seems nitpicky, I know, but the devil is in the details. A great start in resolving this would be a definitive 'translation' of /boot/grub/grub.cfg is grub2 format to /syslinux.cfg format. There are major differences that the grub/grub2 newbie might not be able to parlay...

NOTE: I'm probably going to try the instructions at:
http://docs.kali.org/installation/kali-linux-live-usb-install

which shows
dd if=kali.iso of=/dev/sdb bs=512k (without the conv=noerror,sync) to see if that results in a readable FAT partition, obviating the need to deal with the problems above.

bofh28
2013-04-15, 01:36
Try the following grub.cfg
Make sure to replace --set=root and root=UUID= with the UUID for your system.
The grub.cfg that comes didn't work for me so I made up the following.



set default="1"
set timeout=30

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
insmod gzio
insmod part_gpt
insmod ext2

menuentry "Kali 3.7 sdb2" {
search --fs-uuid --no-floppy --set=root 556feb5a-aa31-4dc0-91ba-1fc416f045c6
linuxefi /boot/vmlinuz-3.7-trunk-amd64 root=UUID=556feb5a-aa31-4dc0-91ba-1fc416f045c6
initrdefi /boot/initrd.img-3.7-trunk-amd64
}

menuentry "Windows 7" {
search --fs-uuid --no-floppy --set=root AAFF-7523
chainloader (${root})/EFI/Boot/bootx64.efi
}

bofh28
2013-04-15, 02:00
So I tried the UNETBOOTIN method. However, there are some missing details. I have not fixed syslinux.cfg "like the other post says" because the data format is completely different. /boot/grub/grub.cfg is grub2 format, while /syslinux.cfg seems to be legacy grub (not sure about that).


OK. Is the fat32 partition the only partition on the drive? If not what is the partition layout?
EFI files must reside on a fat32 partition and fat32 partitions are NOT case sensitive.

Syslinux is its own bootloader. Syslinux does not use grub.cfg. If you used unetbootin to create the thumb and boot in BIOS mode then you are booting using syslinux and not grub.

You can try the grub.cfg I just posted. Just don't don't ever run grub-update. Starting with grub2 the grub.cfg is actually generated by scripts. You can replace the script version with the one I posted but if you run grub-update it will be overwritten.

Hlx
2013-04-24, 11:24
Hi thanks for 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.
I encounter the same issues, someone have find a solution different than the windows way ?
I've tried to boot directly on live usb (key alt) without write the /EFI/BOOT, but my usb isn't detected...

Regards,
Hlx :)

EDIT:
I've found a solution. I partitioned in two my USB on FAT32, once for kali iso the other for EFI.
And after dd kali iso i can set /EFI/Boot/* files in second partition.
It works until grub. When i arrive to grub menu, i have all choices. but when i select Kali Graphical Install or others it said:

error: unknown command 'linuxefi'.
error: unknown command 'initrdefi'.
I assume that is a problem between mac and grub and i search on google but don't find any answer...
I continue to search and if someone have solution please end my pain :)

Notes: Macbook Pro late 2011 (8.1), Grub v1.99, KaliLinux i386.

cubdukat
2013-04-25, 17:44
I would like to install Kali on my system as a dual-boot alongside Windows 8, but I am leery about doing so, because an attempt to do that with BT5r3 borked my system so bad that I lost everything and had to reinstall Win7 and re-upgrade to Win8. Needless to say, I would like not to have to relive that nightmare, so here are my questions:

1. Looking at my laptop's drive in GParted, I have the following entries:

a. The EFI "partition"(?), which is listed as GPT;
b. The hidden Win7 partition;
c. The main partition that Win7 is installed on, labeled C: OS, and formatted as NTFS;
d. And the final partition, labeled D: DATA, and also formatted as NTFS.

There's 170GB on the Data partition, which is where I intend to divvy up some space for Kali to go. Where will the bootloader be installed to, the EFI partition or the C: OS partition, and how would I go about doing that?

2. Finally, will this approach pass the Secure Boot smell test? The laptop I'm using is an Asus X75VD, and the most recent BIOS update hid all of the EFI/Secure Boot options from me, so I am assuming that Secure Boot is permanently engaged?

Right now I am booting Kali from an USB stick, but I would like to get away from that, because up until I got this laptop, I've always had Linux on my laptops in a dual-boot solution. It aggravates me that I can't do this with a lot of unnecessary drama.

xfiles
2013-04-29, 12:53
Hey!
Im having troubles installing a bootable Kali on my Asus K56C, of course equipped with efi bios. I can boot with a live USB but cant make a HDD install working. I cant get around the following:

"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"

I cannot find any option to partition a drive as EFI using the Kali Graphical install. Anyone succeeded in doing this?
regards,
xfiles

senadaruc
2013-05-05, 01:24
Same problem with Partition TYPE to EFI?



Hey!
Im having troubles installing a bootable Kali on my Asus K56C, of course equipped with efi bios. I can boot with a live USB but cant make a HDD install working. I cant get around the following:

"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"

I cannot find any option to partition a drive as EFI using the Kali Graphical install. Anyone succeeded in doing this?
regards,
xfiles

dev2lead
2013-05-20, 08:19
Hi !

I'm trying to install Kali to my macbook pro, but it seems to be hard to realize !
I haven't found a way to install the EFI bootloader by the installer...
I've made a partiton in FAT32 and then I've been able to boot from Mac Os X by putting Fedora bootloader, but after loading the vmlinuz and the initrd it wouldn't boot !
I've installed the 32bits version, I'm now trying to install the 64bits version... I hope it will work !

blackbird
2013-06-05, 17:47
I got Kali working on a macbook pro, hard disk install
not sure if it's going to work for everyone, I put together some info crypto posted at top-hat-sec and bofh28 posted here, and came up with this...

1- create a FAT32 partition on the osx machine, a small one just to keed the /EFI/Boot/ files (a 5MB partition is more than enough for the FAT32. I assume you will also consider having a partition with free space available to install Kali. Use the Disk Utility for this step)
2- inside the /EFI/Boot/ located on the newly created partition, put the files located on ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ (the fonts folder is not required, and we're going to update this grub.cfg file later, for now just copy the files)
3- just to test if the partition is ready, restart your macbook and hold down the alt/option key (you should now see an "EFI Boot" option just beside your normal boot option, there's nothing to boot yet so just leave it for now)
4- burn a Kali ISO to a DVD and install it to the partition you reserved on step 1 (if you run into some problems during the grub instalation, and you are not sure about which hd the grub should be... try /dev/sda/ or /dev/sdb/. The partition we're going to install Kali will not be recognised by default, so here's the workaround I figured)
5- boot Kali from the DVD we used to install it. Once you boot from the DVD open Computer. Now take a look at the Devices list (there should be 3, your OSX, the FAT32 partition and your Kali) mount the one that says Filesystem (Kali). Once inside the Filesystem go to boot/grub/ and copy the grub.cfg file... now mount the FAT32 partition, go to EFI/Boot and paste the grub.cfg
6- open the grub.cfg file with your favorite text editor > find the lines that say "linux /boot/vmlinuz-3.7..." and "initrd /boot/initrd.img-3.7..." > change the linux to linuxefi e initrd to initrdefi > the lines (there are 4 changes to make, 2 in each menuentry) should now look like "linuxefi /boot/vmlinuz-3.7..." and "initrdefi /boot/initrd.img-3.7..."
7- restart you macbook hold the alt/option and click the EFI Boot > grub will show options > boot it! =)

if you have some experience installing backtrack this will make sense... hope you guys can understand...

thinker
2013-06-09, 22:54
I'm running Securecore Tiano on my tablet PC, and I get
Failure trying to run: chroot /target mount -t proc proc /proc. Doing an install of
Debian Wheezy, I can install the system but it boots to a grub prompt rather than an OS-selection screen.

I've also tried installing the mini-iso, and I get
failure trying to run: chroot /target dpkg --force-depends --install

Alright, I got a little further after burning the amd64-mini.iso to a cd. Now the "select & install software" step fails at 90% without giving a reason. That's a problem I can deal with, however, I also get the error
The grub-pc package failed to install into /target/. And now I still cannot boot.

thinker
2013-06-12, 06:12
If I can get the system to boot to a grub prompt, that is, a prompt that looks something like
grub> what do I need to do to get grub to "see" debian/kali and Windows 7? For right now, I'm just trying to put debian/kali on my machine (without windows) and get it to boot, which is far more challenging than it should be.

Today I tried installing Ubuntu 13.04 and it will still only boot to
grub rescue>UEFI sucks!

T3mplar
2013-06-16, 09:14
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.

This is how it worked for me for a Dual-boot with a preinstalled EFI Windows 8 partition.

1) Created the USB image using unetbootin and manually adding the EFI/BOOT folder structure manually. No problem accessing the thumb drive with Win8. Inside the dir I copied the files from Steps 3 and 4 of the first post in this thread.

2) Reboot using the USB drive and select your favourite install mode.

3) During installation, I did not create an EFI partition because factory preinstalled Windows 8 already had it created. In the final steps grub2 was automatically instaled.

4) Login for first time. Update, upgrade and reboot (don't know if this last one is strictly neccesary). Worked like the charm for me.

I am using a Toshiba Satellite L850-1XK.

Hope it helps.

thinker
2013-06-17, 17:30
After screwing around with a grub rescue shell, I tried a re-install of Kali and both GRUB and LILO told me they "failed to install to /target/". However, I just rebooted the machine, LILO came up and performed some kind of data check on the BIOS, and it successfully booted up Kali. DONE! Now to see if I can dual boot this thing with Windows 7, I've never dual booted with LILO before.

cubdukat
2013-06-19, 03:57
I have an ASUS laptop that is set up as follows:

95

I want to carve out 80GB on the DATA partition , which is where I will install Kali Linux. Is it possible to do this just using the default options in the installer? I attempted to install Kali's predecessor Backtrack 5, and it totally borked my system. I am unable to make a backup, so I want to make sure I get this right the first time.

Oh, one last thing: Although the system has EFI, when I boot the persistent option from my USB stick, I get a message that says "Secure Boot Not Enabled." Will that cause me any issues during the install? Normally, I have never had issues installing Linux on the laptops I've owned, but then again, this is my first EFI-enabled laptop...

┬┤BlAdE┬┤
2013-06-19, 17:40
Hello, good job for this topic, really useful. In my case, i'm off on the step 7... the last. I use an Asus G55VW and we have to set manually in BIOS the path for booting.
Basically, we have 2 HD (sda and sdb) and the BIOS see only the EFI partition on sda (created by vendor/microsoft).
After executing your topic, I have 2 choices (between the EFI partition on sda and sdb), however, my partition EFI on sdb is empty. I created /EFI/Boot/ and paste Bootx64.efi + grub.cfg and set the BIOS path on /EFI/Boot, /EFI/Boot/Bootx64.efi and finally /EFI/Boot/grub.cfg but nothing worked.
Any idead ? Thanks a lot

sam
2013-06-21, 08:51
I've managed to boot into Kali Linux off the USB Thumb Drive on a Retina Macbook Pro, but how do you install it to the hard drive?

Where should GRUB be installed etc...

Jacob
2013-06-27, 20:21
Lost and looking for advice. Built a kali KDE iso I know I need to boot from a fat32 partition to install but the max file size is 2GB & the filesystem.squashfs comes out to 2.5GB i'm trying to install on an XPS 13 with no DVD drive available any ideas how this can accomplished as far as setting up the partitions,booting and installing?

nikdaquik
2013-07-10, 15:52
Ok, so I've been following this thread and trying to get my MacBook Pro 8,2 to work with a Live USB of Kali. I managed to make the drive bootable (by adding the /EFI/BOOT folder and a valid GRUB.cfg), however while booting Kali from GRUB I get an error related to the radeon graphics driver. Could someone help me troubleshoot if I have a problem with my grub.cfg? I've posted it along with the error below:

# 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=(hd1,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
initrdefi /live/initrd.img
}

menuentry "Kali - Boot Persistent" {
set root=(hd1,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrdefi /live/initrd.img
}

menuentry "Kali Failsafe" {
set root=(hd1,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=(hd1,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali noswap noautomount
initrdefi /live/initrd.img
}

menuentry "Kali Graphical Install" {
set root=(hd1,1)
linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/gtk/initrd.gz
}

menuentry "Kali Text Install" {
set root=(hd1,1)
linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/initrd.gz
}

The error I get is this:

fb: conflicting fb hw usage radeondrmfb vs EFI VGA - removing generic driver

EDIT: I managed to get around the graphics error above by adding radeon.modeset=0 to the kernel line, but I still have issues with the b43 driver, IPv6, and getting GNOME to start. Blacklisting/disabling b43 and IPv6 seems to be ok for now, but GNOME still leaves me with just a blinking cursor and a blank screen.

If anyone has any ideas please let me know. Thanks!

thefluffynaruto
2013-08-02, 19:05
I loaded everything on and the selection window comes up, but when I choose a version (persistent or non) I get the message

error: unknown file system
error: load kernel first
How can I fix this?

careyjames
2013-08-10, 04:25
please explain how to write and create the /EFI/Boot to a read only drive???

Surgikill
2013-08-12, 13:40
Hey guys I used Unetbootin to install kali because I could not use windisk32 imager and add the efi file. I added the efi file and tried to boot from the usb drive but I am getting an error that says it cannot boot from the device. I am using an hp m6-k015dx if that helps. Do I have to change the config file for this machine or my setup? FYI it's an x64 iso an efi file.

Edit: I am able to get into Grub GNU version 2.00 with a black screen that displays grub> but I don;t know what to do from there.

AwesomeDerek
2013-08-19, 20:02
Hey, guys. I have a Kali live USB that I made with Rufus, downloaded and placed extra files, and I'm having a problem when I try to boot it. The USB boots into grub fine, but when I try to choose any of the options, the boot hangs on something to the effect of "Booting Kali Linux 1.0.4" and the next line says, "Secure boot not enabled _". If anyone else has had this problem and has fixed it, or knows what might be the problem I would really be grateful for the help. Thanks in advance

MTAG
2013-08-31, 00:41
Thank you guys for the information. I have successfully installed Kali onto my computer and now I have triple boot of Win8, Kali, and Ubuntu 12.04. But on kali I cannot get the brightness to work. Has anyone dealt with this problem yet? Thanks for the help guys been great.

Surgikill
2013-09-02, 02:02
I have tried creating the usb with the LiLi usb creator and I can still not get it to work. I also have secure boot disabled.

Rarity
2013-09-03, 04:46
Great how to, thanks bohf28! I'm successfully dual-booted, but I had to download grubx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ for my flash drive to be recognized as an UEFI device.

albert
2013-09-06, 01:14
I got Kali working on a macbook pro, hard disk install
not sure if it's going to work for everyone, I put together some info crypto posted at top-hat-sec and bofh28 posted here, and came up with this...

1- create a FAT32 partition on the osx machine, a small one just to keed the /EFI/Boot/ files (a 5MB partition is more than enough for the FAT32. I assume you will also consider having a partition with free space available to install Kali. Use the Disk Utility for this step)
2- inside the /EFI/Boot/ located on the newly created partition, put the files located on ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ (the fonts folder is not required, and we're going to update this grub.cfg file later, for now just copy the files)
3- just to test if the partition is ready, restart your macbook and hold down the alt/option key (you should now see an "EFI Boot" option just beside your normal boot option, there's nothing to boot yet so just leave it for now)
4- burn a Kali ISO to a DVD and install it to the partition you reserved on step 1 (if you run into some problems during the grub instalation, and you are not sure about which hd the grub should be... try /dev/sda/ or /dev/sdb/. The partition we're going to install Kali will not be recognised by default, so here's the workaround I figured)
5- boot Kali from the DVD we used to install it. Once you boot from the DVD open Computer. Now take a look at the Devices list (there should be 3, your OSX, the FAT32 partition and your Kali) mount the one that says Filesystem (Kali). Once inside the Filesystem go to boot/grub/ and copy the grub.cfg file... now mount the FAT32 partition, go to EFI/Boot and paste the grub.cfg
6- open the grub.cfg file with your favorite text editor > find the lines that say "linux /boot/vmlinuz-3.7..." and "initrd /boot/initrd.img-3.7..." > change the linux to linuxefi e initrd to initrdefi > the lines (there are 4 changes to make, 2 in each menuentry) should now look like "linuxefi /boot/vmlinuz-3.7..." and "initrdefi /boot/initrd.img-3.7..."
7- restart you macbook hold the alt/option and click the EFI Boot > grub will show options > boot it! =)

if you have some experience installing backtrack this will make sense... hope you guys can understand...

I hope you, or somebody else who understands all of this is still around to help.

I'm installing Kali on a 11' MacBook Air (Mid 2013). You say to partition out a small chunk (~5MB) for the /EFI/Boot/ files. Do I make this partition on my OS X hard drive? Running diskutil list shows me this:

~ ➜ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Danboard 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s4


This is a normal OS X installation, but I've put rEFInd on it. However other Mac computers seem to have the EFI partition too.
So should I be making another one? Does it have to be in front of the regular OS X partition?

albert
2013-09-11, 06:22
Humm I've experienced similar problems. I'm also trying to install on a MacBook Air (Mid 2013) (6,1). We're a rare breed.

Anyways, I started by trying to install BackTrack, then Kali, then BackBox.
I had the most success with BackBox, you can see what I did here: https://forum.backbox.org/general-support/installation-on-macbook-air-6-1-(mid-2013)/

I got it booting from the HD, but wireless doesn't work, and I'd like to use Kali instead anyways. It's late so I'm off for now, but if you want look over what I did and see if it can help you out. I think a lot of this goes back to Ubuntu since that's what Kali is originally based off of (right?).

I'm going to revisit this tomorrow in a fresh light, but it's good to see somebody else has the same machine, and problem that I have. I'm sure we'll eventually be able to work it out! I've just taken to documenting everything I do when messing with the install. Just keep a note pad and pen nearby and jot down any notes I can. The more info the easier it'll be to solve it eventually :)

Rarity
2013-09-23, 04:46
Hey, guys. I have a Kali live USB that I made with Rufus, downloaded and placed extra files, and I'm having a problem when I try to boot it. The USB boots into grub fine, but when I try to choose any of the options, the boot hangs on something to the effect of "Booting Kali Linux 1.0.4" and the next line says, "Secure boot not enabled _". If anyone else has had this problem and has fixed it, or knows what might be the problem I would really be grateful for the help. Thanks in advance

I had the same issue while trying to install 32bit Kali on my laptop with a 64bit processor. 32bit EFI wasn't supported but it worked with the 64bit version of Kali.

nullgoon
2013-09-24, 22:12
Okay, This is the forum that I used to figure this out. This will work with any EFI boot system. It's for Kali-ONLY installation. I managed to boot Kali off my MacBook Pro in only 21 easy steps.

This is a very simple Step-by-Step instruction set.

This is for a Kali-ONLY install on a MacBook Pro. Though it should work with any EFI system. If you want to dual boot with OSX/Windows, then be very careful when you are using gparted to edit the partitions!!

Pay attention to the ****** !!!

1. Insert Kali DVD into Laptop and reboot.
2. Press Option/Alt when the laptop is booting (before you hear the chime) keep it pressed until you see the boot drive selection screen show up.
3. Select the DVD when it comes up. (the Label on mine said "Windows" because of the formatting.) The icon is a CD.
4. Select "Live Boot" which is the first selection when grub starts.
5. Go to Applications --> System Tools --> Administration --> GParted Partition Editor
******* Note: if you perform the below step you will erase EVERYTHING on your drive, you are warned*******
6. Erase every partition on your HD until everything is listed as "unallocated space" under File System
7. Click on the "Create a new Partition" to create a new partition.
8. Make sure the partition type is FAT32
9. Give your partition a name. I called mine EFI.
9. Make sure you adjust the size of the partition. I used 400MB, but that is more than enough.
10. Create the partition. You can click on the "check mark" icon. You should now just have 1 400MB partition that is on the drive.
11. Exit out of GParted.
12. Go to Places --> EFI (or whatever you named your partition)
13. You should now have an empty window. Right-click and create a new folder named EFI. Go into that folder and create a New Folder named Boot.
14. Copy all of the files (except for the Fonts folder) from here: ftp://mirrors.kernelhttps://forums.kali.org/showthread.php?271-How-to-EFI-install-Kali-Linux/page5.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/ into the Boot folder.
15. Reboot your computer. Put the Kali DVD back in the drive when it spits it out. Hold down option/alt again when you are booting up.
***** You should now see 2 devices on the boot options screen. 1 Drive that says EFI Boot and the DVD that says "windows" If you don't then you messed something up in the above steps.
16. Boot into the Kali DVD. Select "Graphical Install" Go through your options until you get to the format disk section. Make sure you select "GUIDED - Use continous free space"
***** When you get to the Grub Boot Loader section, tell the Install to NOT INSTALL GRUB to your MBR. If you do you will overwrite the /dev/sda1 partion and you will have to start over*****
17. Put the DVD back in after it installs Kali and hold down option/alt. Boot from the DVD Again.
18. Go back to Live Boot. Take a look at your devices list. You should see 2 partitions, 1 FAT32 and 1 Kali. Mount the Kali partition and go to /boot/grub. Open the grub.cfg file and copy the contents.
19. Open the FAT32 partition and go to /EFI/Boot. Open the grub.cfg file and replace it with the contents you copied in the above step.
20. Edit the new file however you want (VI, nano, leafpad) find the lines that say: linux /boot/vmlinuz-3.7.... and add "efi" to the end of linux. Do the same for the lines that say initrd.
***** You should have edited 4 lines. They should now say "linuxefi /boot/vmlinuz-3.7...." and "initrdefi /boot/vmlinuz-3.7....." without the quotes.
21. Reboot. Remove the DVD. Hold Down option/alt and select EFI Boot as your boot drive. You should now boot into Kali.

Hope this helps. Thanks to albert on the forums for the information!

deus telum
2013-09-25, 05:30
Few hours ago, I completed the Kali installation with Windows 8 Pre-installed in EUFI based system.
The steps I followed were:

1. I used Rufus (http://rufus.akeo.ie/) to install Kali ISO in USB Memory Stick.

2. Follow the Steps from #2 to #4 typed by bofh28 in first post.
- Boot UEFI Files link: ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/

3. In EUFI Setup set Secure Boot = Disabled
4. In EUFI Setup set Boot Mode = UEFI Boot. The name of this value can be some different in others laptops.
5. In EUFI Set USB as First Boot. Save Changes!

6. Restart your machine. It must appears the GNU GRUB version 2.00.
7. (Optional) If you don't have HD partition to Linux Installation, you can use GParted to create this partition. It's a software included with Kali Live. If so, you can choice the option "Kali - Boot Non Persistent Mode". When Kali Live is up, go to Gparted and create the partition targeted to Kali. Restart your PC.
8. Select "Install Graphic" in GNU GRUB Menu.

9. Follow the installation steps, but when you are in Disk Partition Step, you must be careful. Please, select "Manual Partition" option. Using "Guided - use the largest continuos free space", strangely doesn't recognize the UEFI partition. This option see it like fat32 and this is not good for us!
10. Once you finish the partition part, if all it was set up fine, the installation process doesn't ask about EUFI partition. Yes, the EUFI partition used by Pre-Installed Windows 8 can be used in Linux too. Now, If you PC doesn't have Windows and you only want to use Kali, you MUST create the UEFI partition.
11. Continue the Kali Installation, it must download and install GRUB at the end of installation.
12. When finish the installation, remove the USB Memmory and Restart the machine.
13. If all was good, you should see the GNU GRUB Menu, like this:
http://www.linuxbsdos.com/wp-content/uploads/2013/03/WindowsEasyBCD4-600x450.png

Note: If you have problem downloading the GRUB at the end of installation, check you Internet Connection. If the problem continue, connect your PC directly to ADSL o Cable Modem. Avoid Wireless Router or something like that.

faraaz
2013-10-22, 18:33
HI,
well from months myself looking around but couldn't solve my problem.my question is about penetration testing KALI LINUX its a normal linux like normal my point of view i just wanted to install kali linux into my external USB HDD so that i need i can boot from my external USB HDD ok remember i am not taking about live boot.i am OK with that.i just wanted to complete install like windows.the problem comes when i make live USB PEN_DRIVE to install into my EXTERNAL USB HDD everything goes perfect with successfully but when i restart my laptop n boot from my USB HDD FROM BIOS its gives me a GRUB RESCUE even i had try to repair my grub but fail than i had remove my laptop internal HARD DRIVE than make a try with USB HDD live Kali Linux to select into my external USB HDD same everything goes perfect with last final grub installation than i reinstall my main INTERNAL HDD into my laptop and connect my EXTERNAL USB HDD n from bios boot from USB HDD
same problem GRUB RESCUE even i cant repair with same live kali linux so kindly help me out how to fix this problem i don't want to do DUAL boot just complete different .DO REPLY...

techasist
2013-10-25, 02:43
Thanks for all the info from this thread, I was able to dual-boot Kali with OS X 10.9 on a MB Air Mid 2011!!! If anyone needs some info, just ask.

Phishpaw
2013-11-05, 16:06
Bofh28, need help doing this but it's for an old powerpc g4 433mhz that does not support usb booting, its got to be a pyshical cd or DVD to boot from is there a way to mod the iso its self then burn the image? Also if I can make a bootable ISO for the EFI system on CD, I am not wanting to run from cd all the time want to then install to hard disk only the kali os. Note at this time hard drive in mac is clean no os installed.

bacterialbag
2013-11-11, 21:47
I tried this method, using kali live cd to add the /EFI/Boot to my Kali-usb, however when I reboot my PC with USB atachad, I can not see my USB in the EFI bootloader, only legacy... Any tips? Could someone prepare a EFI bootable .iso ? That would be great!.

jkiller
2013-11-12, 02:58
I had Backtrack installed for awhile.
Time for me to reformat my hard drive and install Kali!

hdcase
2013-11-19, 10:40
Haven't installed it yet but I noticed a few things trying out the live USB using bofh28's guide on my Samsung ATIV. Kali's detected with the OS Mode Selection (BIOS) on "UEFI OS" and it boots but after several lines of messages I get a blank screen. Didn't get to the desktop, at all. Everything's fine if I set the OS Mode Selection on BIOS to "CSM and UEFI OS". Can anyone shed any light on this? Will this have any effect later when I install Kali?


---

Gave in and succeeded in installing Kali but same issue. Had to set "CSM and UEFI OS" on BIOS so I won't get a blank screen on boot.

ctec
2013-12-12, 12:39
I'm having a lot of trouble with installing Kali alongside Windows 8 on a UEFI laptop. I've installed Win 8 as an EFI install.

My USB stick has been formatted to Fat32 and I've used unetbootin to make it a bootable kali drive. I've also followed the steps to add the /EFI/BOOT files.

I can boot into grub on the stick without any trouble and I see the boot options such as graphic install etc. But when I select any of the options including live boot, I get a message saying 'error: unknown filesystem' and 'error: you need to load the kernel first'.

I've tried changing the root from (hd0,1) to all the other options listed when I use the ls command in the grub command line. I get a different error when I change to (hd0,gpt2) which is 'error: file '/live/vmlinuz' not found' and 'error: you need to load the kernel first'. But the others just give the same unkown filesystem error. Any help would be appreciated. Thanks.

Rob3rt
2013-12-27, 22:01
Hey guys.

First of all, thanks for the tutorial, alongside with some googling and other tutorials like "how to dual boot windows 7 and kali", "how to dual boot windows 8 and ubuntu" (these were only combinations I could find, lol) I managed to get my laptop to UEFI dual boot windows 8.1 and kali.

On the way to success, I encountered lots of issues and spent whole day dealing with them and decided to share it here in case any of you have to deal with them.

To begin with, I took my usb 3.0 sandisk extreme 16 gig usb stick, formatted it to FAT32, downloaded kali x64. Installed the image using lili, no persistence. Used the disk management utility to shrink my kingston v300 120gig ssd with the win8.1 installation, shrunk it by 20 gigs or so. Downloaded all the grub files (to beginners: all, not only the single one) and placed it into the efi boot dir as said in this tutorial. Rebooted, tried legacy and uefi modes - legacy was fine, live mode with gui, everything was fine. uefi - I didn't even try booting into live, went straight to graphical install. partitioning - 500mb partition set as uefi boot, 16 gigs ext4 for /, rest of free space for swap. Installed with internet connection so the installer could get the needed stuff. Rebooted, but no gui - flashing cursor. I was new to linux so I kinda panicked and googled around - turned out I only had to press ctrl-alt-f1 to get to console login. Tried startx, got an error that it wasn't recognized... installed nvidia drivers (ATTENTION: this was the point where I probably screwed up), rebooted, installed xorg... now startx started throwing bizarre errors like no screens found/screens found but none have a usable config. Lots of trial-and-error, frustration, reboots... turned out all I needed was a fresh reinstall, also doing that I created a /home of 2 gigs, rebooted, startx not recognized, but after apt-get update and apt-get install xorg I ran startx and bam - I had the GUI. reboots now also opened it instantly. About the boot menu - somehow my windowos bootloader wasn't overwritten - by default I would still boot into windows, no prompts or anything, and all I have to do to go to linux is press f12 (I guess depends on your pc, I have acer v3-772, with nvidia and intel onboard graphics which, again, is another thing hard to deal with) and it opens boot menu with 2 options; windows and debian, i select debian, which opens up grub with options to boot to kali.
That's how I got it working. I'll be glad to help if I can :)

Krytical
2013-12-30, 18:41
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.

My laptop has no network card drivers in the current Kali by default, so the install cannot download the EFI enabled grub, and fails at that step.

I'm still trying to learn Linux, Kali is the only distro that keeps me interested enough... because it has practical use...

Any way to load that Grub into the Kali install before hand? or do I gotta try to load up Live Kali and install grub somehow that way?

Thanks

pauloferreira
2014-01-07, 14:09
There should be an easy solution for keeping Secure Boot ON.
Fedora and Linux Foundation are really tricky.

I spent my sleep trying to setup Fedora with Secure Boot ON, but I just got successive fails. :D

pauloferreira
2014-01-09, 11:43
There should be an easy solution for keeping Secure Boot ON.
Fedora and Linux Foundation are really tricky.

I spent my sleep trying to setup Fedora with Secure Boot ON, but I just got successive fails. :D

Now I have an error after GRUB. It's something about kernel signature.
But, first I'll register here what I did to start EFI bootloader and "bypass" Secure Boot validation.

1. Make two thumb drives from ISO/IMG: (a) Linux Foundation Pre bootloader and (b) Kali Linux x64.
(a) http://blog.hansenpartnership.com/linux-foundation-secure-boot-system-released/

2. Start the system using the thumb with the pre bootloader.
Add hashes for Preloader.efi and HashTool.efi using the tool that will open. It's quite user friendly, you just select the file and confirm.
Now I got Secure Boot to accept it.

Backing to a main computer or Windows ou a VM...

3. Merge these two into another thumb drive formatted FAT32.

4. Now it's needed to create EFI boot files like in the first post (I used all files from Fedora's folder), but with some changes.
4.1 Delete /EFI/BOOT/loader.efi and /loader (created by the preloader IMG), it's the real bootloader that must be replaced.
4.2 Copy Fedora's BOOTX64.efi as loader.efi as long as other files for grub (exactly as the fist post).

Now I got a mix of default Kali, Fedora EFI bootloader and Linux Foundation Pre bootloader.
I a few words, pre bootloader is signed by MS and chain to loader.efi (our renamed Fedora) that initialize Kali.

Here comes my nightmare...
5. Restart with EFI and Secure Boot ON reading the merged thumb drive.

GRUB opens the menu, but after selecting any option comes an error like this.

Empty security header
error: /install/gtk/vmlinuz has invalid signature.
error: you need to load the kernel first.
Press any key to continue...

I've researched this error and also tried to modify grub.conf with my settings (root=UUID and /dev/something), but I'm stuck. This same error occurred when I followed just the fist post instructions and disabled Secure Boot. So I think it's not a problem with the pre bootloader.

Any ideas?

pauloferreira
2014-01-10, 11:45
Now I tried to Enroll the Hash of Fedora's bootloader. However it gives an error on efitools hashing function.
I got that, it's because Fedora 18 has a signed bootloader. Fedora's 17 works.

But... (i hate this word)
Even after enrolling vmlinuz (I don't know if it is needed) I get the following error in Grub 1:

> kernel /live/vmlinuz
invalid magic number: 2356
Error 13: Invalid or unsupported executable format

bofh28
2014-01-11, 01:26
I am sorry but I can't help. I dual boot Windows 7 and Kali and Windows 7 doesn't support secure boot. While I love Windows 8.1 I can't stand the Metro interface and I will not install 8.1 at home. I use 8.1 at work with the classic shell app.

pauloferreira
2014-01-12, 01:04
I had a FAT32 formatted thumbdrive. Now I partitioned it to (a) the ISO image, (b) FAT32 for EFI, (c) EXT4 for Linux Persistence on the Live USB.
Now I can start the Linux using Fedora 17 GRUB, but I can't get X running.

taherdi
2014-02-10, 11:56
I made kali live with LiveLinux USB Creator and did all other steps as told in post#1 but when I boot it grub menu comes but when I select Kali - Boot Non Persistent Mode and any other options it says :
unknown file system
Kernel should be loaded first.
I also disabled secure boot.
What should I do now?

taherdi
2014-02-10, 21:26
I have successfully efi booted kali v1.0.6 on my Asus N550JV. But in installation procedure it can't install grub bootloader. I'm also connected to internet. I created these partitions manually when installing: fat32 , / , /boot , /home
How can I solve this problem?

trestenor
2014-02-15, 01:48
You may like to review the how-to I posted here https://forums.kali.org/showthread.php?19132-Installing-Kali-in-steel-for-Macs-with-FDE-dual-boot-or-encrypted-USB. Some of the problems you are having are related to the EFI boot process and the interactions with GRUB. If you follow the instructions at the above link carefully, you may find your problems are resolved with the added benefit of WDE.

Fiction-Burn
2014-02-15, 08:15
You may like to review the how-to I posted here https://forums.kali.org/showthread.php?19132-Installing-Kali-in-steel-for-Macs-with-FDE-dual-boot-or-encrypted-USB. Some of the problems you are having are related to the EFI boot process and the interactions with GRUB. If you follow the instructions at the above link carefully, you may find your problems are resolved with the added benefit of WDE.

Yes, EXTREMELY carefully. I think that your instructions, although incredibly thorough, applicable, and above all useful they may be a little too advanced, judging by the volume of "Man! Me, too!" posts. I'm not trying to sound harsh or anything, I just read so many of, "MacBook Pro checking in, same here!" posts that flooded the thread with nothing useful to report that when I figured it out, I felt insulted. It's almost as if the simplest solutions have been hidden on purpose.

As far as the EFI and its interaction with GRUB goes, this is what worked for me..

1) If you get to the GRUB menu, but get an error like, "file system not recognized," edit that boot option to say...
2) Instead telling GRUB to read from (hd0,1), change it to (hd1,1)

I always remind myself that GRUB doesn't use the same "language" that we're all used to, being Linux users. I don't wanna seem preachy or anything, long day.. Anyway, I just think, "/dev/sda = (hd0,1), so if I'm using a USB to boot from, then /dev/sdb = (hd1,1)". I hope it helps someone else out there, and if this was actually proposed as a solution and I missed it, my bad.

taherdi
2014-02-17, 20:18
Thank you for your replies. I solved the problem. Because GRUB boots from flash drive then it is the known as hd0,1. And if your hdd is gpt, file system error can be solved by changing hd0,1 to hd0,gpt1 or the boot partition.

arthurcameron
2014-02-18, 19:58
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/kali-linux-live-usb-install
2) On the thumb drive create the following folder structure /EFI/Boot
3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/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!

Thanks for this instal linux guide.
http://moviediablo.com/kaylila/upload/30/wso.jpg

benzo
2014-03-03, 22:39
Note: If you have problem downloading the GRUB at the end of installation, check you Internet Connection. If the problem continue, connect your PC directly to ADSL o Cable Modem. Avoid Wireless Router or something like that.

Hello guys,
I'm on Vaio Pro 13, and during installation it can't recognize wifi card (Intel Dual Band Wireless N-7260). The laptop has not the ethernet card so i need a live usb with pre-installed wifi drivers, but i don't know how to do it.
I think that the drivers are these http://wireless.kernel.org/en/users/Drivers/iwlwifi

Thank you.

dba4life
2014-04-20, 00:01
While the steps ultimately worked, there were two critical changes that did the trick for me.

When downloading BOOTX64.efi, you also need download 'grubx64.efi' and place in EFI/Boot as well.

Also, my install balked at the 'set root' piece. Removing set root and using the below config worked:


# 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 default boot entry as Entry 0
set default="0"

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
insmod gzio
insmod part_gpt
insmod ext2

# Timeout for menu
set timeout=5

set color_normal=yellow/blue

search --no-floppy --set=root -l 'Kali x86_64'

menuentry "Kali - Boot Non Persistent Mode" {
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
initrdefi /live/initrd.img
}

menuentry "Kali - Boot Persistent" {
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrdefi /live/initrd.img
}

menuentry "Kali Graphical Install" {
linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/gtk/initrd.gz
}

menuentry "Kali Text Install" {
linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/initrd.gz
}

asahsieh
2014-04-24, 22:23
While the steps ultimately worked, there were two critical changes that did the trick for me.

When downloading BOOTX64.efi, you also need download 'grubx64.efi' and place in EFI/Boot as well.

Also, my install balked at the 'set root' piece. Removing set root and using the below config worked:


# 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 default boot entry as Entry 0
set default="0"

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
insmod gzio
insmod part_gpt
insmod ext2

# Timeout for menu
set timeout=5

set color_normal=yellow/blue

search --no-floppy --set=root -l 'Kali x86_64'

menuentry "Kali - Boot Non Persistent Mode" {
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
initrdefi /live/initrd.img
}

menuentry "Kali - Boot Persistent" {
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrdefi /live/initrd.img
}

menuentry "Kali Graphical Install" {
linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/gtk/initrd.gz
}

menuentry "Kali Text Install" {
linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/initrd.gz
}


Thank you for your sharing :D

wtf
2014-05-12, 14:42
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

please explain how to write and create the /EFI/Boot to a read only drive???

To all who met this problem here's the solution:
What you will need to create an EFI bootable USB using this method: Windows with Windows 32 Disk Imager installed, Some kind of Linux Live CD or DVD on which you can use gparted (I used BackTrack)

1) Format your flash drive as fat32. Make a bootable usb stick using the Windows 32 Disk imager (also tried it with dd under Backtrack, for some reason it didn't work, got a blank screen upon boot of the usb stick); After copying it to the flash drive using WIndows 32 Disk Imager the flash drive became bootable and I was able to boot it on a non-uefi notebook.

2) After the flash drive has become bootable you are unable to mount it as writable. You need to make a separate partition on the flash drive and mount the partition itself. I used gparted for this, after making a separate partition then you mount the partition itself. Using gparted you can see which device is your Kali partition located on - in my case the first one (the partition on which the kali image was) was on /dev/sdb1 and the second was on /dev/sdb2. So you mount it like this:
mount /dev/sdb2 /mnt
Now go to /mnt and follow the instructions on this thread (Create EFI/Boot folder and copy the grub loader files). Please note that you will need to copy grubx64.efi and MokManager.efi as well into the boot folder and not just BOOTX64.EFI (at least this way in my case, after I copied only the BOOTX64.EFI file the bootloader ended up with an error that grubx64.efi and MokManager.efi were not found on the device). I also copied the fonts folder just in case. Create a grub.cfg in the folder as well as explained on the author's post.

** When you make the new partition choose FAT32!

3) Now open gparted again, switch to your flash drive and make the partition with the EFI/Boot folder and the created grub config file bootable. You do this by right-click the partition, click on properties, then check the option bootable and click OK. In the end when you open gparted the final result should look something like this:

http://s30.postimg.org/71r511icv/snapshot1.png

Now put the usb stick on the EFI computer and it should work. This way I was able to run the live cd on my Sony ultrabook which is notorious for booting issues and hard to upload any operating system different than Windows.

More images of the process:


http://s1.postimg.org/3ond5gvfx/snapshot2.png

http://s13.postimg.org/3skydblpx/snapshot3.png

http://s27.postimg.org/6e0o14ib5/snapshot4.png

Links for non-logged users: http://s28.postimg.org/jo5ypjoiz/snapshot1.png http://s30.postimg.org/9f04a98hb/snapshot2.png http://s13.postimg.org/relt5fz11/snapshot3.png

Please note that with this method it should work both on UEFI and NON-UEFI machines.

Good luck!

jackendra
2014-06-06, 05:18
Did not work for me.
restarted machine, and checked in Boot menu, the Usb did not show up, just some UEFI thing thats always there and Windows Boot manager.

There needs to be an official working release.

Rnihton
2014-06-10, 00:28
Did not work for me.
restarted machine, and checked in Boot menu, the Usb did not show up, just some UEFI thing thats always there and Windows Boot manager.

There needs to be an official working release.

DId you put these 3 files (BOOTX64.efi, MokManager.efi and grubx64.efi) into the folder /EFI/Boot in your USB?

I don't know if MokManager.efi is needed, but I've put it in anyway, and it worked for me.

Shabbas
2014-06-14, 01:14
I tried this method, using kali live cd to add the /EFI/Boot to my Kali-usb, however when I reboot my PC with USB atachad, I can not see my USB in the EFI bootloader, only legacy... Any tips? Could someone prepare a EFI bootable .iso ? That would be great!.
Im having the same problem. I was wondering if anyone ever found a solution to this. If so Please help

Rnihton
2014-06-15, 16:21
Im having the same problem. I was wondering if anyone ever found a solution to this. If so Please help

As my reply above, did you download all 3 files (BOOTx64.efi, MokManager.efi and grubx64.efi) into your /EFI/Boot folder?

Since the first post did not include the file "grubx64.efi" which is said to be a major problem. You should include all 3 files just to be safe (I don't really know if MokManager.efi is required, but I'll test it out soon).

mataleo
2014-07-04, 03:51
I created USB drive in 1.

and then i cant access .2 to put folders in it?

is it folders or partitions?

windows cant access usb to do something there

how do i solve that?

i got uefi laptop that i cant boot in kali

sliffer
2014-07-05, 07:55
Hi i was trying to run live but when i did it all right and i went to run it live it said that it needed kernel to run first and i was wondering on how to get it to run ight

mataleo
2014-07-06, 12:56
i did it, on efi asus g750jw

so it works

burned iso to usb, then booted kali in live mode, used gparted to make fat32 partition from unalocated space

then i put all files that i have to put in EFI/Boot i uploaded them in drop box public folder, and shared it on my facebook, so then under ali live i open facebook click dropbox link and download all 4 files to my root

then mounted usb created folders and copy from root to usb

after that i had grub usb

i couuld start it in bios

then just run usb live kali and there is option to install kali to hdd, that was it, took me 3 days o figure out

gseales
2014-07-07, 22:12
Had given up for a while and took another look at it this past weekend and found other instructions that showed that you needed grubx64.efi too. I added that file to efi/boot and had success.

g0tmi1k
2014-07-22, 16:24
Since the release of 1.0.8, Kali now has EFI support out of the box!
For more information: http://www.kali.org/news/kali-1-0-8-released-uefi-boot-support/

an3ukMieth
2014-08-05, 22:20
still can't install Kali Linux 1.0.8 dualboot. I used rufus, and got the message "No EFI partition found" when installing Kali in efi. Please help...

nekromantik
2014-08-07, 15:44
I installed LUKS LVM install on Win 8.1 laptop.
I got SSD with Win 8.1 and HDD with EFI System, Data and Kali.
Kali has /boot (not encrypted) / and swap.
It installs GRUB and reboots, but if you choose Kali I get blank screen.
Only way to boot Kali is use refind and it finds another linux install under sda2 and boots.
Grub only contains /EFI/Boot version of grub which dont work.
Any tips?

mrhappydude
2014-08-07, 18:02
Since the release of 1.0.8, Kali now has EFI support out of the box!
For more information: http://www.kali.org/news/kali-1-0-8-released-uefi-boot-support/

If you try to boot from usb with uefi bios it does not work. The usb doesn't even show up unless bootx64.efi is found.
I also tried extracting efi.img to the root of usb and that does not work either.

If I use gparted-live-0.19.1-1-i486.iso the grub boot works fine, but when I follow the instructions of this thread it does not boot into kali just makes it as far as detection cpu's and errors out. Perhaps the debian distro doesn't support the hardware ?? HP Elitepad 1000 G2.

mrhappydude
2014-08-07, 20:58
Ok, so I discovered why rufus does not create the USB properly. The ISO contains multiple partitions

340

an3ukMieth
2014-08-12, 05:19
do we have to wait until 1.0.9 to fix this problem?

an3ukMieth
2014-08-26, 01:40
do we have to wait until 1.0.9 to fix this problem?

let's try the 1.0.9... hope this one will work on my Asus...

http://www.kali.org/downloads/

sad_hosseini
2014-08-28, 20:25
hi guys..
I had this problem,and after 2days searching (so this topic) and try many other ways......finally fix it......by the way,I'm not pro user.....so if this way,already said in previous comment,sry.......ok let's go
.
.
first I bought a asus laptop L550 last week,and as U know,I have a pre installed windows8 OEM......and when I want to install kali,windows boot loader ignore the boot loader of kali......so this is the solution
.
.
the main issue is the first partition (for me 300 mg).I mean EFI partition that is responsible for our prob....so we should edit this partition in right way....
download the kali 1.0.8 or earlly 1.0.9.......then,we should write it in the flash USB drive......U know,we have a lot of program can make it,but some of them doesn't work in this situation(like rufus)....so I recommend U use this program(winSetupFrom USB)....link dl: http://winsetupfromusb.soft32.com/
check auto format and browse the kali image in 4th checkbox and GO.......after restart system in setting menu of windows8(1-in search tools on top of the windows,type "boot" and click on on advanced start up option......and at the bottom of list advanced start up,click Restart ......go to troubleshooting option and choose on change UEFI firmware.....
.
.
.also,before all of these step,U should disable secure boot and enable CSM...
in the boot menu of,you see the first option boot is "Windows boot loader"...and You should see your USB EFi option......so change the first priority on your Usb drive and save (F10) them and restart...
U will see the boot from USb.......install the kali, as U know ...we can't load kali,and after restart of complete install,windows boot up.....ok,this is my steps to get kali.....
1-there is a program "The rEFlnd Boot Manager" on this link: http://sourceforge.net/projects/refind/postdownload?source=dlp............and if U have time recommend U read all of them,this man is genius who make that...http://www.rodsbooks.com/refind/..........
there is image file "refind-flashdrive-0.8.3.img".........in this case I recommend U ,use rufus for burn in to your flash memory........so again restart your system on this UEFI USB drive.....and you will see the nice graphical boot loader,and see the kali linux and windows icon.......... choose linux...

.
.
2-after login,go to application list,accesory.and run disk utility......
3-mount the first partition,(EFI partition)..... copy the "EFI" folder to other partition(it's safety have a back up plan).....
4-in EFI,you see the at least two folder......1-boot2-microsoft(3-asus for my laptop).......
5-delete all of them except "microsoft" folder............so U should have just "Microsoft" folder.........
6-back to utility folder and open the flash USB drive,(mount it)......
7-copy all of the files and folders in USB drive to the first partition internal drive(that EFI partiton,step3)
8-restart to the UEFI firmware setting(i mean old bios_................
9-disable "windows boot loader"

an3ukMieth
2014-08-31, 02:03
thanks sad_hosseini..
anyway I had solve this problem too.
I downloaded the last kali (1.0.9) and create a bootable usb using rufus, then :
- I did like bofh28 wrote, step 2 - 4
install kali linux in text mode. follow the instructions...and tadaaa... it works...
thanks everyone...

Aditya
2014-09-25, 12:44
Hi Guys.
I have followed all the steps until now.
After booting my usb I get the following header
"Minimal Bash = Like Line editing is supported"
And then this thing comes
grub>
And the cursor blinks beside it.
Any help appreciated

phat_cow
2014-09-28, 23:18
thanks sad_hosseini..
anyway I had solve this problem too.
I downloaded the last kali (1.0.9) and create a bootable usb using rufus, then :
- I did like bofh28 wrote, step 2 - 4
install kali linux in text mode. follow the instructions...and tadaaa... it works...
thanks everyone...

I'm getting this error:

error: you need to load the kernel first

When I select any options in the boot menu.

blazap
2014-10-13, 15:23
I'm getting this error:

error: you need to load the kernel first

When I select any options in the boot menu.

It's an old post but I'll reply for the case someone is having this same problem.
I had the same issue today, in my case it was an easy fix. When formatting the usb with Rufus, it's by default making a freeDOS. This doesn't work. There's an option in lower right corner to choose ISO-image. Once you choose this you get to Search for your Kali-iso. This will make your usb a bootable.

Hesus
2015-01-29, 20:16
My problem starts when i boot from the usb i prompts me to the GNU GRUB version 2.00 screen, minimal BASH-Like line editing is supported ... Any ideas on how to solve this problem?

DeAdZoNe
2015-02-12, 00:13
I had issues and several attempts to get kali running on EFI. I finally stumbled across rEFIned. Followed the simple instructions. Its not Grub2, but still a nice boot menu.

Cortex
2015-02-16, 17:24
I had issues and several attempts to get kali running on EFI. I finally stumbled across rEFIned. Followed the simple instructions. Its not Grub2, but still a nice boot menu.

How did you do this?

alpha4744
2015-03-30, 17:54
hello,

I EFI installed kali using the above mentioned process and it worked flawlessly the first time. Then on a reboot I entered BIOS to enable the secure boot but after doing it my grub screen doesn't show up whenever I boot my system. I also again disabled the secure boot to see if the grub screen shows up but I couldn't get my grub screen to show up whenever I booted in my system. Any help is appreciated.
thanks

Bassie
2015-04-30, 10:41
Hi

i try to make a boot USB with the UEFI and spent hours and hours in forums so i hope to find my answer here :-)

my USB is starting the boot manager and when i click the USB KALI section ..... suprise windows 8.1 starts up

So i try the next :

i try to pik the files Download bootx64.efi from ftp://mirrors.kernel.org/fedora/rele...4/os/EFI/BOOT/
i get a 505 error in the browser,

what can i do now ?

Bassie

ndemon
2015-06-15, 15:53
3) Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/


new link: http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Fedora/x86_64/os/EFI/BOOT/

kalinopae
2015-06-19, 11:20
I have 486 non-PAE - Hardware
Does there exist anywhere any BOOTX386.efi or so to get my GRUB installed ?

browny99
2015-07-22, 10:41
Download bootx64.efi from ftp://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/

Link was moved:

http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Fedora/x86_64/os/EFI/BOOT/

filippo
2015-12-26, 12:28
Just wanted to say thank you because after reading the first post in this thread (with updated URL to download both BOOTX64.efi and grubx64.efi) I have managed to boot Kali linux on my iMac early 2009 without using rEFInd. This page (http://docs.kali.org/downloading/kali-linux-live-usb-persistence) also shows how you can enable persistence on a separate partition.

mguignes
2016-04-01, 07:44
Just a quick question: Why doesn't a well-known distro like Kali have a ready-to-use EFI boot iso ? (for USB sticks)
AFAIK, UEFI firmwares have now been integrated in all new PCs for years now.
Just like offering 32-bit AND 64-bit downloads, why can't they offer a MBR AND GPT(using EFI) downloads ?

Thanks.

James_Wood
2016-07-26, 16:46
@ mguignes .... I raise the same question, because I too am hit with the same frustration as many others. Kali 1.x installed to USB many times and would boot and run just fine for me. Last week though I bricked my last production version trying to upgrade headers, etc.., so I opted to again try and install kali v2.x onto a USB, only to be reminded that I can't boot from it. This is what had held me back from exploring that Kali 2.x AMD64 (exact ISO name not handy) in-depth the first time around. Running 'Live' was too cumbersome on a daily basis. .. Side: To kill my bordome I installed SUSE 12 onto a 16gb USB last night and am exploring that right now.

padlock
2016-07-27, 02:35
thanks for the guide

geronimo
2016-09-26, 22:22
Hey everyone. I have tried everything that I could find in this thread and other sources:

+I made the ISO version of the USB and then extracted the EFI img and placed on the USB root folder
+I injected the Fedora 18 EFI files
+I Did DD through a Linux Box

In the end it all says "Invalid Signature... Secure Boot Settings" Red Screen on the boot through BIOS.
So- the best I can come up with is signing the kali boot loader with my own cert. A project for another day.
or ARE is the Kali boot loader signed?
Did I miss a solution?

Windows 10 Anniversary Update.

Make Kali Great Again
2017-10-04, 05:00
No /EFI/Boot is NOT on the persistent partition.
What is a persistent partition? (I know what a partition is)