Earlier today I was upgrading my computer from Ubuntu 19.04 to 19.10. The update temporarily broke my computer, booting into GRUB safe mode. With the accepted answer from grub error: you need to load kernel first I was able to load the kernel, specifically the following snippet:
insmod linux
linux /vmlinuz root=/dev/sda2
initrd /initrd.img
boot
That allowed me to load into my OS, and I used the solution proposed in Login loop on Ubuntu 19.10 to help me finish updating. Now, my computer works fine, but I still need to input the code that to which I referred earlier. How can I have it so that it will automatically boot into my Ubuntu kernel?
EDIT: Thankfully solved by the comments below.
sudo update-grub
to update your/boot/grub/grub.cfg
? – Freddy Feb 17 '20 at 17:36/usr/sbin/grub-probe: error: failed to get canonical path of 'dev/sda2'.
right now. – connordaniel Feb 17 '20 at 17:40sudo grub-install /dev/sda
(assuming/dev/sda
is the target drive) followed bysudo update-grub
? – Freddy Feb 17 '20 at 17:53