Score:0

Grub and 2x windows on 1 gpt drive (uefi)

mu flag

first, sorry for my english. Can somebody help with grub? I updated from mbr to gpt and now i have broken grub. I need to be able to select in grub menu which OS i want to start. Now i have only option to select "windows" and then i selecting again which windows i want to start.. This is bad.. I need to select in grub what os to start and no more selecting anything. grub loading bootmgfw.efi file and every windows share this file. How i can separate this? Make for example 2bootmgfw2.efi file for second windows to be able start into system directly from grub and not going into windows boot manager. Go around, or somehow tell to bootmgfw.efi boot directly into system one (or two) and i dont want to select anything anymore.. Is it possible? (im sure it is, I had this on my mbr system working perfectly, but im not able to replicate this on gpt without help.

For easy example, when I have this in grub.cfg

insmod part_gpt

insmod chain

set root=(hd0,gpt1)

chainloader /EFI/Microsoft/Boot/bootmgfw.efi

boot

Can i add some parameter in this code to tell what specific OS i want to start and skip that selecting in ugly, black, text windows bootmanager?

oldfred avatar
cn flag
You have to create a temportary ESP, and do a repair install of Windows so it creates the Windows boot files & BCD in that second ESP. Then move boot,esp flags back to first ESP, and run `sudo update-grub. Grub does not care that second FAT32 is not ESP, but does find the boot files. Or you can manually add boot stanza to 40_custom. https://ubuntuforums.org/showthread.php?t=2478842 & http://askubuntu.com/questions/653101/boot-repair-windows-not-listed But only one ESP per drive is allowed with most systems.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.