Dual system Win10 & Ubuntu boot item repair

Dual system Win10 installs Ubuntu without grub startup item solution and dual system Ubuntu grub startup item does not have Windows solution

1. This method does not work for sudo update-grub and cannot find the startup item

After entering the ubuntu system, open the terminal and enter sudo vim /etc/default/grub

Change GRUB_TIMEOUT_STYLE=hidden on line 7 to GRUB_TIMEOUT_STYLE=menu "Show menu

GRUB_TIMEOUT=0 changed to GRUB_TIMEOUT=10 "Wait time display 10 seconds

save . Terminal execution sudo update-grub

Restart the computer . You will find that the boot menu has come out.

I am a dual system installed with UEFI+GPT. Windows10+Ubuntu22.04

After installing Ubuntu22.04, the win10 of the grub menu is still missing

take further steps

sudo grub-install /dev/sda
sudo chmod -x /etc/grub.d/30_os-prober
sudo vim /etc/grub.d/40_custom

sudo grub-install /dev/sda (this place changes according to the efi installation disk

Terminal run sudo vim /etc/grub.d/40_custom

My ubuntu system efi is installed on the third place of the first hard disk

set root=(hd1,gpt3) changed to this picture is wrong.

Terminal continues to execute sudo update-grub

After the above command is executed, if you are careful, you can find that the /boot/grub/grub.cfg file has changed.

After restarting, the win10 option appears in the grub menu

Guess you like

Origin blog.csdn.net/onlyfirer/article/details/129093456
Recommended