I have a dual boot setup. I am using Kali Linux and Windows 10. They were working fine until I forgot to shut down my system and Kali went into hibernation. After that PC shutdown-ed because of low power and now I am unable to boot into GRUB loader without disabling secure boot. How can I fix it? Also, I saw a message that CMOS has been reset.
2 Answers
You need to execute
grub-install --uefi-secure-boot.
Otherwise your system won't boot with SecureBoot enabled.
-
FYI here is what
grub-install --helpsays about this option:install an image usable with UEFI Secure Boot. This option is only available on EFI and if grub-efi-amd64-signed package is installed.Gabriel Devillers– Gabriel Devillers2024-02-03 21:33:05 +00:00Commented Feb 3, 2024 at 21:33
You can reinstall grub with the following procedure:
- Disable secure boot
- Boot linux
grub-install- reboot and re-enable secure boot and see if that fixed it
Note that if this process has to enroll keys, you may be given additional instructions to follow to enable enrollment of the key during the boot process.
The ubuntu secure boot page may be helpful if the above isn't sufficient.
grub-install) may fix this, but there is also a specific command to manipulate secure boot entries for linux.