I know that this is a quite old problem and some popular solutions already exists. But none of them is worked for me.
So I have Dell Precision laptop and completely removed older Linux Mint 19 during the installation of Linux Mint 20.3. And know I'm getting "Minimal BASH like line editing is supported" error.
First I tried this. I can proceed to OS typing
Code: Select all
set root=(hd1,msdos5)
set prefix=(hd1,msdos5)/boot/grub
insmod normal
normal
Then I tried this and also stuck with error.
In alternative way it said that boot successfully repaired, but nothing changed after reboot.
`sudo fdisk -l` shows this
Code: Select all
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 500117503 499064834 238G 5 Extended
/dev/sda5 * 1052672 500117503 499064832 238G 83 Linux
UPDATE.
Finally solved with
Code: Select all
sudo apt install grub-efi
sudo mount /dev/sda5 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi