To fix GRUB dual boot issues after upgrading Kali Linux, you can either use the command line to update GRUB or use a tool like Boot-Repair. If you encounter GRUB Rescue, you'll need to identify your partitions and set the root accordingly before loading modules. Disabling Secure Boot in the BIOS can also help if you're having trouble with the boot process.
Updating GRUB via Command Line
Boot into Kali Linux: If you can't boot into Kali directly, use a live USB or CD to access a live environment.
Open a terminal: Navigate to the terminal application.
Identify Windows partition: Use sudo space- proper to find the partition where Windows is installed.
Update GRUB: Execute sudo update-grub.
If Windows is not detected: If Windows is not listed, edit the GRUB configuration file:
Open /etc/default/grub with sudo nano /etc/default/grub.
Add or uncomment the line GRUB_DISABLE_OS_PROBER=false.
Save the file (Ctrl + X, then Y, then Enter).
Run sudo update-grub again.
Reboot: Restart your computer to see if the changes have taken effect.