How to get back Windows on the grub menu?

Bo Berglund bo.berglund at gmail.com
Mon Oct 25 10:55:06 UTC 2021


On Mon, 25 Oct 2021 07:35:55 -0300, "J. Paul Bissonnette" <jpaulb at eastlink.ca>
wrote:

>>But for some reason when I reboot today the Windows entry has disappeared and I
>>really need that for f/w updates to the hardware and to be able to boot from
>>USB.
>>
>>So:
>>How can I get back the Windows 10 entry on the grub menu?
>>The efi partition is still intact on the disk when I inspect it using GParted in
>>Ubuntu desktop.
>>I have tried this inside both Ubuntu versions:
>>sudo os-prober
>>/dev/nvme0n1p5:Ubuntu 20.04.3 LTS (20.04):Ubuntu:linux
>>
>>So it only finds one os only...
>>But there are 2 on the disk and on the grub menu.
>>But no Windows...
>>
>
>I had the opposite problem with a Lenovo D30 a few years ago.  Couldn't keep Windoze out of grub. 
>I had Win 7 on a separate SSD. Since I use it maybe 3 times a year I left it out of grub. 
>During an update a new kernel was installed and Win 7 was back in grub. Maybe updating the 
>Linux kernel will update grub with your win 10. 
>
>No guarantee. 

Well then I will have to wait until apt offers a kernel update, I guess.
But this run on the Ubuntu server 20.04.3 did not help:

sudo update-grub

Probably because it did not see the Windows 10 OS properly. Windows 10 is UEFI
and there *is* an efi partition there...

Partitions:
/dev/nvme=n1p1   EFI system partition          fat32   SYSTEM
/dev/nvme=n1p2   Microsoft reserved partition  unknown
/dev/nvme=n1p3   Basic data partition          ntfs    Windows
/dev/nvme=n1p5                                 ext4    ubuntu20.04
/dev/nvme=n1p6                                 ext4    server20.04
/dev/nvme=n1p7                                 ext4    data
/dev/nvme=n1p8                                 ext4    home

So /dev/nvme=n1p3 containd Windows 10...


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list