View previous topic :: View next topic |
Author |
Message |
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2322 Location: Bretagne
|
Posted: Fri Nov 29, 2024 9:05 pm Post subject: WIndows 10 broke my UEFI |
|
|
Hi!
I've run into a UEFI mess after installing Windows 10
Here's my setup:
/dev/nvme0n1p1 - Gentoo system, main drive
/dev/sda - Windows
I took care of unplugging all my hard drives before Windows install so it doesn't write it's bootmgr to /dev/nvme0n1 as it did before but now, I can't even see my gentoo drive in general BIOS menu. And I have to press F11 in order to see it and boot from it.
Re-running grub-install + grub-mkconfig did not reset things properly.
Trying to re-order boot entries with efibootmgr does not seem to work:
Code: |
trone ~ # efibootmgr
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0000,0003,0002,0005,0006
Boot0000* Windows Boot Manager HD(2,GPT,2bbeaf8e-0dcb-4a7f-8580-c2aff2f60048,0x109000,0x31800)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57
Boot0001* Hard Drive BBS(HD,,0x0)/VenHw(
Boot0002* UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)/VenHw(
Boot0004* gentoo HD(1,GPT,d557d33b-cb74-410c-81a9-7fec8455107f,0x800,0x200000)/\EFI\gentoo\grubx64.efi
Boot0005* UEFI OS HD(1,GPT,d557d33b-cb74-410c-81a9-7fec8455107f,0x800,0x200000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0006* USB HDD BBS(HD,,0x0)/VenHw |
And after issuing the proper command:
Code: | trone ~ # efibootmgr -o 0004,0000,0003,0002,0005,0006
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0000,0003,0002,0005,0006
Boot0000* Windows Boot Manager HD(2,GPT,2bbeaf8e-0dcb-4a7f-8580-c2aff2f60048,0x109000,0x31800)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
Boot0001* Hard Drive BBS(HD,,0x0)/VenHw
Boot0002* UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0300)0000474f00004e4fcb00000001000000850048004c002d00440054002d005300540020004200440044005600440052005700200043004800310030004c005300320038000000050109000300000000010416008b12e85cec2cf040837280640e3dc85803007fff040002010c00d041030a0000000001010600001703120a000300ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce639004b0044003700470033003300490035003600200038002000200020002000200020002000200000007fff04000000424f
Boot0004* gentoo HD(1,GPT,d557d33b-cb74-410c-81a9-7fec8455107f,0x800,0x200000)/\EFI\gentoo\grubx64.efi
Boot0005* UEFI OS HD(1,GPT,d557d33b-cb74-410c-81a9-7fec8455107f,0x800,0x200000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0006* USB HDD BBS(HD,,0x0)/VenHw |
Order does not get modified as wanted.
Don't really know where to go from now, so any advice would be greatly appreciated
Thank you for your attention and support. |
|
Back to top |
|
|
ajgringo619 n00b
Joined: 01 Nov 2022 Posts: 30
|
Posted: Sat Nov 30, 2024 2:21 am Post subject: |
|
|
There's no difference in the boot order from either command. What exactly are you trying to accomplish? |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2322 Location: Bretagne
|
Posted: Sat Nov 30, 2024 7:55 am Post subject: |
|
|
ajgringo619 wrote: | There's no difference in the boot order from either command. What exactly are you trying to accomplish? |
yep, I forgot to say that indeed.
I want gentoo back as first and main boot option. I should be able to boot Windeow from grub entry.
Indeed, changing boot order with efibootmgr does not work: that is my problem. |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2322 Location: Bretagne
|
Posted: Sat Nov 30, 2024 11:51 am Post subject: |
|
|
And a question I may add is: if I delete the Windows entry will the os still be bootable from grub menu? If anyone knows |
|
Back to top |
|
|
keekkenen n00b
Joined: 05 Oct 2024 Posts: 11
|
Posted: Sat Nov 30, 2024 12:33 pm Post subject: |
|
|
Adrien wrote: |
I want gentoo back as first and main boot option. I should be able to boot Windeow from grub entry.
Indeed, changing boot order with efibootmgr does not work: that is my problem. |
You can change boot priority in BIOS, for example.
Adrien wrote: | And a question I may add is: if I delete the Windows entry will the os still be bootable from grub menu? If anyone knows |
You can, but how will you boot Windows ? _________________ 7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 501
|
Posted: Sat Nov 30, 2024 12:45 pm Post subject: |
|
|
Windows did not broke your UEFI (and by the way: the support for Win 10 ends next year).
If you cannot change the boot order with efibootmgr, then you should be able to change the boot order from inside the UEFI settings. The ways how boot entries are handled vary from vendor to vendor. If you delete the Windows boot entry, it might be regenerated by the UEFI firmware.
Another alternative: Use the ESP from windows and mount it to /boot/efi (or /efi or whatever you have) and reinstall Grub and regenerate the Grub configuration. (Or boot Grub from the Windows bootloader). |
|
Back to top |
|
|
Adrien Advocate
Joined: 13 Jul 2004 Posts: 2322 Location: Bretagne
|
Posted: Sat Nov 30, 2024 12:47 pm Post subject: |
|
|
Nope, as written in my first message, my nvme drive (gentoo) does no longer appear in BIOS settings. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3936
|
Posted: Sat Nov 30, 2024 4:31 pm Post subject: |
|
|
How does it behave if you disconnect your M$ hard drive?
It could be windows command bcdedit could be a clue entry point...
There are GUI tools aimed to ease things up that do bcdedit under the hood.
Can't remember name fpr such freeware, but I recall that exists.
I may not match your use case.
U don't provide much element such as does the original UEFI partition (I suspect to exist) remains?
Has window installed a UEFI partition on its own disk?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|