2

When rebooting from Gentoo Linux into Windows 11 through GRUB (I used os-prober to find Windows Boot Manager) I get the BSOD "KMODE_EXCEPTION_NOT_HANDLED" (Kernel failed to load). This happens at (what I think) random.

I use 2 different UEFI partitions for Linux and Windows bootloaders, and this seems to occur after mounting C:\ filesystem. I use an Acer Aspire A515-56. The address causing the BSOD seems to be ntoskrnl.exe+415b00. Here is my partition layout for the computer:

Image of my partition layout

I am currently unable to provide fdisk -l output, but I can provide it if required.

My computer uses an NVME drive, if that is relevant.

If I boot from GRUB, without being in Linux first, Windows does not crash. When Windows does crash, a force reboot fixes it (It does not reboot automatically). I have already disabled Fast Startup in BIOS and Windows, but the BSOD still shows up.

Gentoo boots just fine, without issue. Windows also boots just fine from GRUB (secure boot disabled) unless I have first booted into Linux.

Hope to find an answer soon, and please note that I'm not always availiable to give further information (but I will gladly provide further information), and that this is my first question on StackExchange.

Secure boot is disabled, because I would not be able to boot into Gentoo Linux if I had it enabled. As far as I know, (and I don't know too much about UEFI) enabling it would end up making GRUB not work (and I kind of need it to boot into any OS, but I do have F12 boot selection enabled), and I don't think enabling it would fix my issue, because Secure boot only really checks if the OS to boot is signed, and if its valid, and it shouldn't affect OS operation (as far as I know). Secure boot is also disabled no matter if I go into Linux or Windows. So, I don't see how Secure boot may affect this issue.

Fast startup is already disabled.

The BSOD 1st parameter is a 0xC0000005: STATUS_ACCESS_VIOLATION.

It crashes on both a reboot from Windows to Linux and back and a shutdown > boot into Linux > boot into Windows.

15
  • Do you have Secure Boot enabled or disabled? Instead of submitting a comment you should edit your question.
    – Ramhound
    Commented Feb 1, 2022 at 21:29
  • Secure boot is disabled. I also edited my question to add that, thank you.
    – Brainstorm
    Commented Feb 1, 2022 at 21:39
  • You are aware that Windows 11 technically requires Secure Boot, right? There are plenty of Linux distributions that support Secure Boot.
    – Ramhound
    Commented Feb 1, 2022 at 22:09
  • Windows 11 requires Secure boot support, but as far as I am aware it does not require Secure boot to be enabled. It works just fine with Secure boot disabled, and it only sometimes crashes when I reboot from Linux into Windows (or shut down Linux and start up and select Windows)
    – Brainstorm
    Commented Feb 1, 2022 at 22:11
  • ALL evidence points to that the fix action, for KMODE_EXCEPTION_NOT_HANDLED, is to disable and then reenable Secure Boot. The fact it only happens after booting into Linux, and never from Windows into Windows, tells me it's linked to the fact Secure Boot is disabled.
    – Ramhound
    Commented Feb 1, 2022 at 22:44

1 Answer 1

0

I think I managed to fix it by fully disabling hibernation. This can be done by typing powercfg.exe /h off in a Administrator command prompt. I'll re-open this question if this problem comes up again.

Just as a warning: If you are on a laptop (like me), if you disable hibernation, if your battery level is critical and Windows shuts down, it won't save your OS state because hibernation is disabled.

Update: Seems it does not BSOD on reboot, but it still BSODs if I shut down first. C:\hyberfil.sys does not exist, so hibernation is disabled.

2
  • When you mount the Windows partition from Linux, doesn’t it warn you that it is dirty/currently mounted?
    – binki
    Commented Feb 2, 2022 at 23:36
  • I don't mount the Windows partition from Linux. Also, it can't be dirty/currently mounted because Windows is not running when I'm loaded into Linux, and I have NTFS drivers in Linux. If it was dirty, Windows would do a chckdsk (checkdisk) operation on bootup.
    – Brainstorm
    Commented Feb 3, 2022 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .