Dual Boot Grub Works Until You Run Win11 Once, then no grub.

Message
Author
User avatar
FullScale4Me
Posts: 1165
Joined: Fri Jan 08, 2021 11:30 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#11 Post by FullScale4Me »

I have seen a few posts elsewhere that advocated setting the Windows Boot Manager entry to 'inactive' slows/stops this meddling. I have not tested this to verify.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

User avatar
j2mcgreg
Global Moderator
Posts: 7219
Joined: Tue Oct 23, 2007 12:04 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#12 Post by j2mcgreg »

On both my HP 15 and HP 17, as soon as you disable Secure Boot in the bios, you are asked if you intend to install another OS. It seems to be a one or the other choice. You indicate Yes and you can install whatever you want with no hindrances. I don't dual boot anymore because of the disruptions that Windows Update can cause. It would not surprise me at all if dual booting Windows / Linux is no longer possible on HP computers
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Rovercar
Posts: 10
Joined: Wed Aug 12, 2020 6:44 am

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#13 Post by Rovercar »

m_pav wrote: Wed Nov 20, 2024 2:26 pm This is becoming a common issue and believe me, when a machine's BIOS is sold out to Windows, this very thing will happen every time the Windows system is booted. I've tried all sorts of things and none of them worked.

After disabling every possible thing in BIOS and in Windows that could potentially lead towards stealing the top boot position, from using a single MVME with dual OS's to using to using 2x NVME's with MX Linux in the highest preferred NVME slot and Windows on the 2nd slot, the BIOS will always elevate the Windows bootloader over the Grub bootloader every single time Windows is run.

This is an issue that has to be put to the manufacturer as a bug and addressed with a BIOS update that stops Windows being given top priority and overwriting the Bios Boot Sequence every time it's run.

Oh, and it happens with Windows 10 as well as Windows 11.

We have to push back HARD on all PCB and Laptop manufacturers who implement this crap to stop this rising BS from happening. It's not up to us to get a signed bootloader key loaded into the BIOS, that's not the Manufacturers decision to make because the moment we purchase their hardware, it becomes ours and we get to choose what we run on it.
What you've posted here is exactly what I have concluded to be the case. First of all, I don't need to post a printout of every aspect of my machine to see if anyone else has encountered this issue. It's a new HP laptop with AMD processor and Windows 11 with MX. I appreciate the responses I have received, but I have already tried all of the suggested cures, and while I thought they would work (especially the MX EFI tool), they do not. Windows 11 always overwrites the EFI settings. Frankly, it's not worth dealing with issues like this that cannot be solved without re-writing Win 11 or the machine's bios, so I've just done a factory cloud reset, and it's going back to Amazon. This is a hardware or firmware bug, not a configuration issue. Also, updating the bios from HP showed no improvement. So, it's back in the box, and I'll stick with my old Acer 792 until it melts down.

Rovercar
Posts: 10
Joined: Wed Aug 12, 2020 6:44 am

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#14 Post by Rovercar »

A general thanks to all who responded to my question. Responses were numerous and well reasoned, but the issue is due to the bios and how Windows 11 claims sole right to alter the EFI settings each time it starts. Many of the fixes suggested are good generic fixes, but are not effective with this new HP laptop, and it may be due to its AMD processor having its own bios.

However, I've been doing Linux since you had to load a dozen floppies just to be able to see the mouse move a little arrow around the screen (and that was a eureka moment). I don't need to waste my time with this particular issue, so the laptop's just going back to Amazon while my Acer 792 soldiers on.

Than you to everyone who responded.

User avatar
fehlix
Developer
Posts: 12916
Joined: Wed Apr 11, 2018 5:09 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#15 Post by fehlix »

Rovercar wrote: Wed Nov 20, 2024 5:17 pm A general thanks to all who responded to my question. Responses were numerous and well reasoned, but the issue is due to the bios and how Windows 11 claims sole right to alter the EFI settings each time it starts. Many of the fixes suggested are good generic fixes, but are not effective with this new HP laptop, and it may be due to its AMD processor having its own bios.

However, I've been doing Linux since you had to load a dozen floppies just to be able to see the mouse move a little arrow around the screen (and that was a eureka moment). I don't need to waste my time with this particular issue, so the laptop's just going back to Amazon while my Acer 792 soldiers on.

Than you to everyone who responded.
Fair enough. OTHO, you missed the chance to let us know what system this is, b/c not providing the QSI "Quick System Info",
does not help others to identify a laptop which may provide some challenges, to prepare for Dual-boot.
Also I'm not convinced that there are no ways to have a peaceful coexistence setup, even after a full Windows update.
Couple of data points:
* always use a separate ESP dedicated for MX Linux to be used, this would prevent Windows from detecting the Windows -ESP was touched by something else.
* always use only free space on the drive for installing Linux which comes after any Windows prepared partitions, so windows would not see the Linux partions as a challenge to adjust, in case more space is needed for Windows
* do disable Intel Raid/RST ( or whatever those matkteting names are), b/c otherwise Windows might make it such that Linux boot partitions are not seen anymore by the EFI subsystem, and EFI might remove any UEFI boot option which appears invalid.
* if still UEFI Boot options do not list MX Linux efi-loader entries, after Windows boot or upgrade, do consider rEFInd setup into the Widows-ESP,
as it provides some robustness, when it comes to missing UEFI boot options, b/c rEFInd does actively scan for all efi-boot loaders on all detected ESP,
which would than provide a GRUB menu and further provides an alternative to GRUB kernel entries to boot directly into the detected linux kernels, so by this bypassing the GRUB menu.
* perhaps last point, there is a GRUB2WIN, which prepares a Windows boot menu, where you can select to boot into a GRUB (installed on WIndows),
which offers to add a chainloader entry to boot into a Linux GRUB menu.
Something similare what the MX LiveUSB boot menu is offering under Boot Rescue menu to scan for efi-loader / or GRUB menus, and have the found GRUB menu shown ready to boot into MX Linux.
***
ttfn

User avatar
j2mcgreg
Global Moderator
Posts: 7219
Joined: Tue Oct 23, 2007 12:04 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#16 Post by j2mcgreg »

@Rovercar wrote:
Windows 11 always overwrites the EFI settings. Frankly, it's not worth dealing with issues like this that cannot be solved without re-writing Win 11 or the machine's bios, so I've just done a factory cloud reset, and it's going back to Amazon.
It's absolutely imperative to use Windows' own disk management tools to shrink its partitions in order to create the space for a Linux install. If you don't and use some other tool like GParted instead, Windows will do exactly what you described here because it will see that space as corrupted and attempt to restore order.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
FullScale4Me
Posts: 1165
Joined: Fri Jan 08, 2021 11:30 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#17 Post by FullScale4Me »

Rovercar wrote: Wed Nov 20, 2024 5:09 pm First of all, I don't need to post a printout of every aspect of my machine to see if anyone else has encountered this issue. It's a new HP laptop with AMD processor and Windows 11 with MX.
Knowing at least the make and exact model helps me do behind-the-scenes research to locate the user/service manual and actionable social media tech commentary.

Very often, I find details that are not well discussed on the interwebs, such as 'marketing-speak' names for things already more well-known. The RAID configuration of the SATA Controller is a glaring example. Then some time later it ends up as an edit to my how-to guide ‘Dual Boot: MX Linux & Windows-Installation Guide‘ updated November 11, 2024, so the next persons have a much easier time. This aspect has shown a huge payback to the MX Linux community at large as it is profusely illustrated and step-by-step portions are highly proofread (over time). Started at 4 pages in 2021; now 36 pages.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

User avatar
m_pav
Developer
Posts: 1892
Joined: Sun Aug 06, 2006 3:02 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#18 Post by m_pav »

I've got an issue going on with Gigabyte right now, which is why I was so hot on the subject in my first post. I raised a support request about my bios boot settings being overwritten whenever I boot into Windows and claimed it was a BIOS bug.

Their response totally ignored my request (as expected) and replied with the following.
We do not test dual operating system in one storage device. However, the Windows Boot Manager is prioritize in the BIOS.

Ironic that I never said I had windows on the same drive, they came to that conclusion all by themselves.

Anyway, I responded telling them the issue is identical whether a single drive has multiple OS's or when multiple drives with differing OS's are fitted, booting Windows overwrites the BIOS settings chosen by the user. I advised I have done thousands of Linux installations over the last 23 years and I have never seen such an ugly bug that would overwrite a users hand-set BIOS boot preference simply by booting one of the OS's available on that machine. Please provide a fixed BIOS that respects a users boot device choice.

I'm still waiting to hear back
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#19 Post by artytux »

@fehlix * always use a separate ESP dedicated for MX Linux to be used, this would prevent Windows from detecting the Windows -ESP was touched by something else.
This one thing done has saved me from alot of problems in the past, I think it was you fehlix that you mentioned this before start of this year, anyway thanks for the advice back then fehlix.
" Outside the square , inside the cube "

MXRobo
Posts: 1840
Joined: Thu Nov 14, 2019 12:09 pm

Re: Dual Boot Grub Works Until You Run Win11 Once, then no grub.

#20 Post by MXRobo »

I quit dual-booting with Windows partially because of this, mostly because Window's entire system behavior, ethics, etc. disgusts me.
always use a separate ESP dedicated for MX Linux to be used, this would prevent Windows from detecting the Windows -ESP was touched by something else.
b/c rEFInd does actively scan for all efi-boot loaders on all detected ESP
Sure fehlix stated that in the past.

I bookmarked fehlix's post just in case I ever want to leave that exclusionary system usurping antitrust garbage on a computer.
Not sure, but I think it may help to leave the original Windows UEFI (whatever it's called) partition intact for potential BIOS upgrades.

On a more positive note, it's good to know that it can be done – thanks.

Post Reply

Return to “Software / Configuration”