I installed EndeavourOS on an SSD in my laptop alongside Fedora linux, with Windows 11 on another SSD, and I have grub2 on Fedora as my bootloader. 50% of the time, it attempts to mount nvme0n1p4 (NTFS windows partition) instead of nvme1n1p4 (ext4 EndeavourOS partition) on boot. When this happens, I can reboot and it will work properly. Here is my fdisk:
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: INTEL SSDPEKNU010TZ
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6198EBDB-7932-4E5B-A355-7CE514E9F5E5
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 1951967886 1951400591 930.5G Microsoft basic data
/dev/nvme0n1p4 1951969280 1953857535 1888256 922M Windows recovery environment
/dev/nvme0n1p5 1953861632 1999998975 46137344 22G Microsoft basic data
/dev/nvme0n1p6 1999998976 2000408575 409600 200M Windows recovery environment
Disk /dev/nvme1n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 980 PRO 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B65920ED-3BA6-4CA7-9783-0369FFCE723B
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 1230847 1228800 600M EFI System
/dev/nvme1n1p2 1230848 3327999 2097152 1G Linux filesystem
/dev/nvme1n1p3 3328000 1009805311 1006477312 479.9G Linux filesystem
/dev/nvme1n1p4 1009805312 1953525134 943719823 450G Linux filesystem
Is this an issue with grub, and are there steps I can take to fix this?