I installed Linux Mint on my laptop along with a pre-installed Windows 10. When I turn on the computer, the normal GRUB menu appears most of the time:
But after booting either Linux or Windows then rebooting, I GRUB starts in command line mode, as seen in the following screenshot:
There is probably a command that I can type to boot from that prompt, but I don't know it. What works is to reboot using Ctrl+Alt+Del, then pressing F12 repeatedly until the normal GRUB menu appears. Using this technique, it always loads the menu. Rebooting without pressing F12 always reboots in command line mode.
I think that the BIOS has EFI enabled, and I installed the GRUB bootloader in /dev/sda.
Why is this happening and how can I ensure that GRUB always loads the menu?
Edit
As suggested in the comments, I tried purging the grub-efi
package and reinstalling it. This did not fix the problem, but now when it starts in command prompt mode, GRUB shows the following message:
error: no such device: 6fxxxxx-xxxx-xxxx-xxxx-xxxxxee.
Entering rescue mode...
grub rescue>
I checked with the blkid
command and that is the identifier of my linux partition. Maybe this additional bit of information can help figure out what is going on?
grub-efi
package. Try purging and reinstallinggrub-efi
.cat /etc/default/grub
?