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.
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.
Hi, I deleted then resized and then changed the position of my EFI from sda2 to sda7 but I still get the same error
ReplyDeletenot connectiong my device to my computer....i already installed drivers
ReplyDeleteI learned something new. Very well written.It was so good to read and use full to improve knowledge.Keep posting.
ReplyDeleteaws training in chennai | aws training in annanagar | aws training in omr | aws training in porur | aws training in tambaram | aws training in velachery
I really appreciate the writer and the content are very useful. The explanation way is easily understood to all readers and please updating..
ReplyDeletesap training in chennai
sap training in tambaram
azure training in chennai
azure training in tambaram
cyber security course in chennai
cyber security course in tambaram
ethical hacking course in chennai
ethical hacking course in tambaram
I learned something new. Very well written.It was so good to read and use full to improve knowledge.Keep posting.
ReplyDeleteweb designing training in chennai
web designing training in omr
digital marketing training in chennai
digital marketing training in omr
rpa training in chennai
rpa training in omr
tally training in chennai
tally training in omr
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeleteoracle training in chennai
oracle training in annanagar
oracle dba training in chennai
oracle dba training in annanagar
ccna training in chennai
ccna training in annanagar
seo training in chennai
seo training in annanagar
Aviocrintruc_mu_Washington Diana Koroma https://wakelet.com/wake/Zv0dylWBS1JyAYV7ETnsZ
ReplyDeletebipymorgeo
feilutcomp_po Jensen Alfonso Kaspersky Total Security
ReplyDeleteAdobe Photoshop
SolidWorks
nodenkirchvab
graminVtinc_su Jamie Smith There
ReplyDeleteBest
hotlisere