Ubuntu 24.04 partition constantly disappears from Dual Boot (Dual SSD Setup)
https://askubuntu.com/questions/1568017/ubuntu-24-04-partition-constantly-disappears-from-dual-boot-dual-ssd-setup
I have a dual boot setup with Ubuntu 24.04 and Windows 11, where each operating system is installed on its own dedicated SSD.
The issue is that after some time, GRUB completely disappears, and the computer boots straight into Windows 11. When I check the BIOS/UEFI settings, the Ubuntu partition/boot option is simply gone.
I can only get GRUB back by physically removing the Windows SSD and leaving only the Ubuntu SSD installed. After doing this and reconnecting both drives, everything goes back to "normal" for a while (though I notice that the Windows system clock gets completely messed up). However, after a short period, the Ubuntu partition disappears from the boot options all over again.
I have already tried several troubleshooting steps, including reinstalling and reconfiguring GRUB, but nothing seems to permanently fix the issue.
My hardware specs:
Motherboard: ASUS ROG Strix Z790-F Gaming WiFi
NVMe 1: Windows 11
NVMe 2: Ubuntu 24.04
Some relevant info...
When I list the disks and partitions in Linux, this is the output:
nvme1n1
├─nvme1n1p1
│ vfat FAT32 1D01-94D5 1G 1% /boot/efi
└─nvme1n1p2
ext4 1.0 77b47b1a-9096-47aa-9cfa-2ea0afc17342 3,4T 1% /
nvme0n1
├─nvme0n1p1
│ vfat FAT32 88DB-682F
├─nvme0n1p2
│
├─nvme0n1p3
│ ntfs 008EE9158EE903CE
└─nvme0n1p4
ntfs 7E8640B086406B2B
When I list the UEFI boot entries, this is the output:
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0003,0004
Boot0001* ubuntu HD(1,GPT,5491ef32-02ba-4fe0-952f-11fce6e2e1ca,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.)
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 98 21 00 00 00 00 00 32 ef 91 54 ba 02 e0 4f 95 2f 11 fc e6 e2 e1 ca 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 75 00 62 00 75 00 6e 00 74 00 75 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot0002* UEFI:CD/DVD Drive BBS(129,,0x0)
dp: 05 01 09 00 81 00 00 00 00 / 7f ff 04 00
Boot0003* UEFI:Removable Device BBS(130,,0x0)
dp: 05 01 09 00 82 00 00 00 00 / 7f ff 04 00
Boot0004* UEFI:Network Device BBS(131,,0x0)
dp: 05 01 09 00 83 00 00 00 00 / 7f ff 04 00
This is the GRUB configuration:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
When I run sudo os-prober, this is the output:
/dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Kernel and system:
Ubuntu 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
In the BIOS, Ubuntu has completely vanished from the boot menu. In Windows, there is no clue about the Ubuntu partition either. I checked it using bcdedit /enum firmware, and the output is below:
C:\Windows\System32>bcdedit /enum firmware
Firmware Boot Manager
identifier {fwbootmgr}
displayorder {bootmgr}
timeout 1
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
path \EFI\Microsoft\Boot\bootmgfw.efi
description Windows Boot Manager
locale pt-BR
inherit {globalsettings}
default {current}
resumeobject {6d4c7900-0d9d-11f0-9c98-ca7b141ae062}
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30
Any help or insights on how to prevent Windows or the BIOS from dropping the Ubuntu boot entry would be greatly appreciated!