I just bought a Dell Inspiron 16 (which I'm extremely pleased with). It came with Windows 11 preinstalled. One of the first things I did was to install Kubuntu, with the intention of having a dual-boot system. But I botched the installation, leaving me with a first-rate Kubuntu system --but no Windows. -:(.
When I start up the machine, it runs Grub, not the Windows loader. I can choose among Ubuntu, Advanced options for Ubuntu, Windows Boot Manager on /dev/0n1p1, or UEFI Firmware Settings. Choosing Windows Boot Manager gets me into a Boot Repair loop; Reset doesn't work and the various options for restoring Windows, including restoring the factory configuration, don't work either. I've tried all the forms of Restore that I can discover and none of them work, probably because Reset doesn't work. And yes, I also tried restoring from the Cloud. Nada!
os-prober gives me this:
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi /dev/sda3:Mac OS X:MacOSX:macosx
So I have a first-rate Kubuntu installation and a Windows installation yearning to break free. The system starts up with Grub, and none of the other startup options (I've tried many) can get me past that.
So how can I get to run Windows? If I could add the right menu option to Grub, I'd be home free.
Update: I'm going to try retrieving the Windows menu entry from a different installation, modifying it by replacing its partition reference by the partition reference provided by os-prober, add that modified menu entry to boot.config, and then use update-grub to install it. Wish me luck!
Update: The menu entry I'm working from is
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-DE3E-67A1' {
savedefault
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 DE3E-67A1
else
search --no-floppy --fs-uuid --set=root DE3E-67A1
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
and the os-prober information is, as I indicated above,
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi /dev/sda3:Mac OS X:MacOSX:macosx
My apologies for the lack of formatting -- I couldn't get blockquote to preserve the spacing. Appareently the forum's use of blockquote is dfferent from the HTML version.