Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu disappeared from Grub menu #332

Open
cyberfriend-d opened this issue May 17, 2023 · 1 comment
Open

Ubuntu disappeared from Grub menu #332

cyberfriend-d opened this issue May 17, 2023 · 1 comment
Assignees

Comments

@cyberfriend-d
Copy link

I installed Ubuntu to work as a second system in early May. I updated my Ubuntu version from 20 to 22.
Today, the OS just disappeared from the Grab menu.
I press F11, I see a choice between Win11 and Ubuntu, I choose Ubuntu, but then only Win11 and UEFI settings remain from the options. I connected the drive to WSL2, checked the bootloader, nothing out of the ordinary, but Grub doesn't see Ubuntu...

@hakuna-m hakuna-m self-assigned this Jun 9, 2023
@hakuna-m
Copy link
Owner

hakuna-m commented Jun 9, 2023

Probably, the upgrade uninstalls package lupin-support. Package lupin-support contains a script which creates a GRUB menu for a Wubi installed Ubuntu.

If the menu does not exist, you can manually boot with the following commands from GRUB menu (enter it on command line or edit a menu entry)

search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
set root='(loop1)'
linux  /boot/vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro
initrd /boot/initrd.img

If that works und you can boot into Ubuntu, install Grub script 10_lupin from terminal.

wget https://raw.githubusercontent.com/hakuna-m/wubiuefi/master/data/custom-installation/patch/10_lupin -O 10_lupin
sudo cp 10_lupin  /etc/grub.d/10_lupin
sudo update-grub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants