1

I've a dual-boot with kUbuntu and Windows 10. I had a GRUB configuration made with Grub Customizer tool (auto boot after 10s, theme). And it worked really well. Today I updated Ubuntu from 23.04 to Ubuntu 23.10. During update I decided to keep my current GRUB profile. After update the entries of Ubuntu are completely missing. I've old settings (theme, and so on) and rest of the entries (Windows, Memtest and UEFI), but Ubuntu entry and Ubuntu Advanced Options are missing. It's the first time it happened to me and I've been using such dual-boot config (made with Grub Customizer) on multiple computers for some years. What happened and how can I fix it?

I can go to GRUB's CLI and can boot to Windows, but I have no idea how can I access Ubuntu to try doing something like update-grub. Can I fix it using this GRUB's CLI or Live USB?

EDIT: Some information about my setup and what I've tried. I got Windows installed on nvme0 and got efi partition there with Windows Boot Manager. (I usually do not overwrite it but install grub elsewhere to be able in case of somethink to simply choose to boot Windows Boot Manager). I got kUbuntu installed on sda and did not manually created the efi partition. Got there only sda1 - wpar and sda2 - linux filesystem (which has /boot and /boot/efi dirs and). I mounted sda2 in /mnt using liveUSB and chroot into it. I was able to run update-grub but it only found the entries I already have (Windows, Memtest, UEFI) and not Ubuntu. I've tried to reinstall grub there. But grub-install returned an error that it cannot find efi partition and when I pointed /mnt/boot/efi as efi-path and got another error that this is not a valid efi partition. Have anyone some ideas how can I reinstall it?

  • I normally do not recommend Grub Customizer, although a gui app, so many consider it easier. Often not difficult to manually configure grub. Grub Customizer totally replaces all of grub's scripts with its own proxy files. You can only totally uninstall Customizer & grub & reinstall grub. Either Boot-Repair advanced mode or chroot. I have used SuperGrub & rEFInd to emergency boot, but now have multiple internal & external drives with full installs and can boot something to make repairs if needed. https://help.ubuntu.com/community/Boot-Repair & https://sourceforge.net/p/boot-repair/home/Home/ – oldfred Nov 03 '23 at 17:17
  • @oldfred Thanks for help. My main problem is that I cannot boot ubuntu. I suppose that when I boot I will be able to simply update-grub and the entries will be readded. Have you any idea how can I boot it? – Aenye_Cerbin Nov 03 '23 at 17:21
  • If you can manually boot Windows, you should be able to manually boot Ubuntu. May be easier with live installer & Boot-Repair or a rEFInd flash drive. General info: https://help.ubuntu.com/community/Grub2/Troubleshooting if you know partition, you can set root & configfile to grub. https://www.gnu.org/software/grub/manual/grub/grub.html#Multi_002dboot-manual-config or chroot into system to reinstall grub. or manually type: https://askubuntu.com/questions/344125/how-to-add-a-grub2-menu-entry-for-booting-installed-ubuntu-on-a-usb-drive/344359#344359 – oldfred Nov 03 '23 at 17:35

3 Answers3

0

I have a really old Fujitsu laptop. Over the years I have upgraded this laptop several times to latest and greatest ubuntu rekease. Upgrade to 23.04 was a disapointment. Refused to boot because of nvidia 390 problems. Had to wipe nvidia. Now upgraded to 23.10. New problem. Not booting. Even worse than last time. After upgrade completed finally, took forever to search for old software, it asked to reboot. I did and went into bios setup...So I had to boot from live usb stick with 23.10, try option and install boot-repair from 23.04. Not present for 23.10. That made the system boot. Finally.....

0

I forgot to mention that I am still not satisfied. Yes, using boot-repair made my system boot again. Yes. But boot-repair was not hassle free. It required several manual steps. Copy and pasting lots of commands. And after all of this I still cannot get grub into graphics mode. But it boots.. Both windows and ubuntu. So basic steps working yes. So only way now is to set grub to console mode not to what worked before:, graphics mode. So to circumvent that I changed -i to -d in the linux options. It boots as said, but with blue background in g rub menu

-1

Fixed using Boot-Repair, but it required to manually purge some GRUB files, because the tool was not able to do it automatically.