As I boot my computer , I always have to type the following to go inside the login display of the os.
set root=(hd1,gpt2);
set prefix=(hd1,gpt2)/boot/grub;
insmod normal;
normal;
I want to set the configuration(s) as default to avoid typing the above codes again and again.
I use the debian-based operating system and found the article of the solution which exactly tackles my current problem.
Brief solution which I quote is as below.
sudo update-grub;
sudo grub-install /dev/sda;
reboot;
The results which were obtained typing the above 2 commands are as below.
Seemingly no such error was found but as I reboot, the same GRUB menu appears even I've done the 2 commands...
This solution and this solution failed.
What can I do for next?
I've done the below 4 commands and got the below results .
efibootmgr -v;
tree -a /boot/efi;
lsblk;
sudo tree -a /boot/efi;
/dev/sdb
a USB drive? Does it boot and lead you to the same problem if you unplug drive first? If it does, perhaps try tosudo mv /boot/efi/ubuntu/grubx64.efi{,.bak}
and then see ifgrub-install
will actually installgrubx64.efi
back in/boot/efi/ubuntu/
. If it does, see ifsudo mv /boot/efi/kali/grubx64.efi{,.kali}; sudo cp /boot/efi/ubuntu/grubx64.efi /boot/efi/kali/
helps (in case shim failed somehow and the UEFI turns to the kali entry/executable). Maybe also pastebin/boot/efi/ububtu/grub.cfg
and/boot/grub/grub.cfg
.grub-install
does not put anothergrubx64.efi
back to/boot/efi/ubuntu/
, make sure you rename the old one back withsudo mv /boot/efi/ubuntu/grubx64.efi{.bak,}
before you perform a reboot./dev/sdb
is a usb and the format of it is fat32 .sudo mv /boot/efi/EFI/ubuntu/grubx64.efi{,.bak}
instead ofsudo mv /boot/efi/ubuntu/grubx64.efi{,.bak}
.