4

I recently bought a new Laptop:
Lenovo IdeaPad 320e
Intel i5 7200 2.5GHz processor
8Gb RAM
2Gb NVidia 940mx Graphics
1TB HDD

It came with freeDOS so i installed Windows 10 on it on EFI mode.
A few days later i also installed Kali Linux in a new partition from a live USB on EFI.

my partitions as seen on easyBCD

Partitions on my HDD:
Partition 1:Windows Boot(i guess) -450Mb
Partition 2:Windows Recovery(i guess) -100Mb
Partition 3:Windows reserved (i guess) -16Mb
Partition 4:Windows C Directory -299Gb
Partition 5:Local NTFS E Drive -200Gb
Partition 6:Local NTFS F Drive -382Gb
Partition 7:EFI Grub Boot Loader -477Mb
Partition 8:Linux SWAP -9Gb
Partition 9:Kali Linux -40Gb

When I Installed Kali for the First time(i.e. Reboot after installation) i got the grub menu to start Kali Linux so i know that Kali is Properly installed.

So the next time i selected Windows Boot Loader to Enter my Windows 10.

The Problem is now that there is no record of Kali Linux in my boot Loader.
When I enter the boot menu i can only see EFI on Network and Windows Boot Loader. There is no GRUB.

I have already tried:

  1. Using bcdedit:
    bcdedit /set {bootmgr} path /EFI/Kali/grub64.efi

Doesn't work show no such directory.

  1. Using live USB to reinstall GRUB:

    mount /dev/sda3 /mnt
    mount –bind /dev /mnt/dev
    mount –bind /dev/pts /mnt/dev/pts
    mount –bind /proc /mnt/proc
    mount –bind /sys /mnt/sys
    chroot /mnt
    grub-install /dev/sda
    update-grub
    exit
    umount /mnt/dev/pts
    umount /mnt/dev
    umount /mnt/proc
    umount /mnt/sys
    umount /mnt
    

After reinstalling grub, the grub menu worked till i rebooted to windows boot loader; after which it again showed no signs of Kali Linux.

  1. Reinstall Kali.

So my main problem is that when i install kali i see the GRUB menu but when i use Windows Boot Loader once the it always boots into my windows 10 and doesn't show Kali anywhere in my boot Section.

Any help is appreciated.

Update:
I tried re downloading kali3 and then reinstalling.
I did the Standard Installing process and now thankfully the kali entry is showing in the boot manager.
Now the problem is the grub doesn't boot.
I still haven't tried reinstalling grub which hopefully solves my problem.

I will keep everyone updated if reinstalling grub works.

P.S.: Looks like I accidentally installed GRUB on the same partition as the Windows Bootloader but Windows Bootloader still works so it didn't overwrite anything.

3

The Problem is Finally Solved.

What I did is simply installed Ubuntu alongside windows and guess what in the grub of Ubuntu, Kali was already listed.

Now i am using triple boot.(Win10, Kali and Ubuntu)

  • 2
    Wow! Did not see that coming! Congratulations! Both Question and answer upvoted! Please take a system backup (all HDDs) using CloneZilla live Disk to image... – Fabby Sep 18 '18 at 13:32
  • A separate swap partition is declassé ever since the 4.2 kernel. A swap file in /home runs just as fast, and gives you more flexibility in upsizing the swap file from the standard of 'make it the same size as your RAM to start and make it bigger if your apps use it'. – K7AAY Jun 25 at 17:30
0

I would answer in a comment if i was able to, but probably you just need to disable secure boot, i had the same problem when i installed kali.
also how did you install kali?
did you install with a usb drive? i would recommend using rufus to set up the drive for installation.
you also might wanna take a look here, which was the first result on my google search. https://forums.kali.org/showthread.php?271-How-to-EFI-install-Kali-Linux
you could also try to enable legacy mode in your bios or put the efi files mentioned in that post from the above link to your usb drive which you probably used to install kali and then reinstall.

  • I am not new to dual booting so i already turned those settings off. – Kavin Mayekar Jan 27 '18 at 2:36
  • Kali doesn't seem to install on Legacy. Btw i updated the question. – Kavin Mayekar Jan 31 '18 at 17:04
0

This looks like a problem with UEFI firmware boot settings: either Windows or the firmware itself is probably deleting the UEFI boot option for Kali's GRUB.

First, you need a Windows tool that can view and edit the firmware-level UEFI boot settings, not just the Windows BCD. I would suggest EasyUEFI: https://www.easyuefi.com/index-us.html

I would suggest reinstalling Kali once more so that you can get to it, then run "efibootmgr -v" and print out its output or save it somewhere you can access in Windows. You could then boot to Windows, use EasyUEFI to see if the Kali setting has gone missing, and try reconstructing it and see what happens then.

Once you know what the boot entry should actually be, you can read this for more ideas on making it stay (it's written for the rEFInd boot manager, but it has the exact same problem with some vendors' UEFI firmware): http://www.rodsbooks.com/refind/bootcoup.html

  • Except for the reinstalling part(which helped a bit) the process in the link didn't work. I have updated the question with the new problem. If you have the solution then please help – Kavin Mayekar Jan 31 '18 at 17:06
0

Try going into Boot Manager (F12 or if you have Fn key press Fn+F12) and select the Kali Linux Drive (But don't start SWAP) if you want running Kali Linux first when you start your machine, go to BIOS, section 'boot' and make Kali Linux disk startup at first (+ and - keys I think).

0

There is no need to install a third OS(like Ubuntu or otherwise).

Assuming that your boot mode is UEFI. I had the same problem.

Just install both the operating system normally, one top of another. Boot to Windows and install easyUEFI and open it. It should be something like this.. Go to the left one enter image description here

Now adjust the boot sequence as your like. To boot with GRUB just bring Kali to the first

enter image description here

Hope it helps.

0

My answer is simple, But not usefull for daytoday use. Just restart user pc using shift+restart then choose advance boot option in there you can see kali (Linux) under USB device tab

And The most Easy way is use UEFI Editer

Just disable your windows 10 boot option and move kali to top(Working with windows 10).

If Above not working means use This Boot manager Repair tool (This should works with windows 8/8.1)

Checked with only Debian/ Ubuntu Based OS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.