Skip to main content

Fix for installing GRUB on EFI System of KALI or Parrot os.

This fix will work on any linux Distro like KALI(debian) , Parrot OS(debian) ,Ubuntu etc.
Having Problem while installing grub? 
if your answer is yes then you are on right place.
In this post i will guide through steps for fixing the GRUB error on EFI system with Windows on Dual boot.
In this post i have not written about Installation steps. If you Don't Know about how to "dual boot with windows 10/8.1/8" then i request you to google about "How to dual boot?"
why i am not doing so is because you will find very easy guide on Internet for Dual booting With Windows. The only Problem you will face when the installation is just going to finish, Boom!!! Error comes "Fail to create  Dummy GRUB" or ""Error While installing GRUB" or something Like that.

I haven't faced any problem while installing "Kali rolling" on my system. When i start installing Kali on my friend's laptop at first the installation completes with success , but wait when i restart the laptop it directly boot in windows10. where is the grub boot loader ??
I have tried many fix but not worked. after westing a whole day on fixing the problem i found that i have made silly mistake to setting the BIOS setting.
What i have done in BIOS setting is as follows.
1. Disabled the Secure Boot.
2. Changed the Boot Order to boot first in Kali's boot loader.

This is because the BIOS is set to boot in Windows first so the BIOS sets boot order automatically.

Above given Fix works when you made mistake in BIOS setting.
Now, Focusing the main problem of installing GRUB.
follow the following steps to get pass through GRUB installation successfully.

Step  1:-  Boot from the LIVE media of your Linux-distro.
Step  2:-  Now went through the installation till the partition portion comes.
Step  3:-  Now this is the Key step, now make root partition and swap partition as you have done
               previously or format root partition to Clear previous installed data.
Step  4:-  Now this is the IMPORTANT step , delete the EFI (ESP) partition and resize and create new
               EFI partition.
( usually EFI partition is "sda1" so some how Linux unable to install its boot loader in default location so idea is to change the location of EFI partition on another place so when you delete that partition and resizing by reducing few MB the new partition location get changed in my case it changed to "sda12")

Step  5:- Now start installing your Linux-Distro.
 
              Now linux install its grub in new EFI partition.
now you're able to boot in linux but not in Windows again. To fix this problem follow following steps.

Step  1:- Boot from windows installation media.
Step  2:- Click on "repair.... (something like that)"  (Left bottom corner after selecting language and
               keyboard-layout)
Step  3:- Click on "troubleshoot"
Step  4:- Click on Advance Option
Step  5:- Click on Command prompt.
 

(in_short You have to open CMD using your bootabel media)
 

Step 6:-write the following commands without quots.hit enter after each command.
    "diskpart"
    "list Disk"
    "sel Disk 0" (number 0 is the hard disk number )
    "list vol" (now find the fat32 formated volume)
find the EFI partation in this case lets say it is volume 5 .then type following command
    "sel vol 5"
    "assign letter=p:"
    "exit"
now type following command

    "bcdboot c:\Windows /l en-us /s p: /f ALL"


Step  7:- now shutdown the computer/laptop.
Step  8:- start the Computer/laptop  it will boot automatically in Linux again.
Step  9:-open Terminal and type "update-grub" and hit enter. it will detect Window boot manager   
              automatically and adds in its grub.
 Now restart and you will find Windows boot entry in grub.
If its reboots straight into Windows try the above BIOS settings.

This will definitely Fix your any problem related grub installation.
Plz share this with your Friends If you found this help-full.
 
 
 

Comments

  1. Hi, I deleted then resized and then changed the position of my EFI from sda2 to sda7 but I still get the same error

    ReplyDelete
  2. not connectiong my device to my computer....i already installed drivers

    ReplyDelete
  3. I learned something new. Very well written.It was so good to read and use full to improve knowledge.Keep posting.



    aws training in chennai | aws training in annanagar | aws training in omr | aws training in porur | aws training in tambaram | aws training in velachery

    ReplyDelete

Post a Comment

Popular posts from this blog

IMEI fix For MT6755/6753 Lenovo K5 note

IMEI FIX FOR MT6755/6753 Lenovo k5 note   you can watch above video or continue following description  If you do not want to read this story then skip this i have written the Fix for Lenovo K5 note or MT6755 and MT 6753 in this post after the story.   My friend bought Lenovo k5 note a month ago and he tried to change the LTE band to band 4 0 using android MTK engineering mode. After he restarted phone IMEI got lost and NVRAM WARNING: Err = 0x10 comes up. After so he contacted the Lenovo Care. At Lenovo care they told my fried to change the Chip which is cost around 8000/-(INR) my friend refused to do same. And then he asked me to repair his Lenovo K5 note. The same thing is happened with me with my Lenovo K4 note , but in my case i have accidentally  selected Format All+ Download in SP flash tool . I tried to fix for 2 days after that i gave up and took my phone to nearest mobile repair Shop. They fixed IMEI but not able to fix NVRAM WARNING : Err= 0x1

Compile Custom Rom From Source

Compiling custom rom from source code. Compiling custom rom takes a hell lot of time!!!! so be aware of That! First things first you have to setup system to start compiling. you have to be on Ubuntu Os. You can use virtual box or dual boot with windows(the best option) System requirements for fastest compilation are as below: Important minimum 8GB of RAM ( you're compiling rom based on Marshmallow or Nougat) 100GB of free Space on HDD (it is good to have a SSD). Quad Core processor. A good internet connection with unlimited data yeah that's it! my suggestion is that you have to install Ubuntu alongside you system means dual boot! (why ? ask yourself!). now, I am assuming that you have installed and boot up in Ubuntu. So let's Get Started! Step 1 :- install JAVA (open jdk 8) in Ubuntu. open up the terminal and type the following command and hit enter. $ sudo apt-get install openjdk-8-jdk Step 2 :- Install other packages