Random boot issue

Hello,
I have installed EndeavorOS after several years with Archlinux because I wanted to change my DE and to refresh my installation.
Everything is going fine excepted I have a random boot issue.
Sometimes it works fine and sometime I have this error :
error: no such device: b508d6f6-6135-4831-b1bf-3520a30f3008.
error: unknown filesystem.
grub rescue>

I have found a workaround, I use F11 on my MSI laptop and then I can select my boot device as EndeavorOS an then everything works fine.
The device with indicated error is my nvme disk with linux install.
I have to point-out that I have a dualboot installation with W11.
I hope somebody could provide me a tip to fix this problem.

[daniel@daniel-gl738rd ~]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 vfat FAT32 SYSTEM D45A-0097 12,6M 96% /boot/efi
├─sda2
├─sda3 ntfs Windows 7A885B1E885AD7E9
├─sda4 ntfs DATA 1032179410321794 448,7G 43% /mnt/windows
├─sda5 ntfs WinRE tools D0445BFC445BE42E
└─sda6 ntfs BIOS_RVY AA1C616B1C61338B
nvme0n1
├─nvme0n1p1 ext4 1.0 b508d6f6-6135-4831-b1bf-3520a30f3008 44,4G 24% /
└─nvme0n1p2 ext4 1.0 df3e2103-fed7-439e-b340-a5312ed18bc8 753,1G 7% /home

[daniel@daniel-gl738rd ~]$ sudo file -s /dev/sda
[sudo] Mot de passe de daniel :
/dev/sda: DOS/MBR boot sector MS-MBR Windows 7 english at offset 0x163 “Invalid partition table” at offset 0x17b “Error loading operating system” at offset 0x19a “Missing operating system”, disk signature 0xd9c0f9b8; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 1953525167 sectors

[daniel@daniel-gl738rd ~]$ efibootmgr
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0004,0007,0000,0002,0003,0001
Boot0000* boot HD(1,GPT,96394b90-178d-4c90-a1bf-5636eb3a0bc3,0x800,0x96000)/\EFI\BOOT\GRUBX64.EFI
Boot0001 grub HD(1,GPT,96394b90-178d-4c90-a1bf-5636eb3a0bc3,0x800,0x96000)/\EFI\GRUB\GRUBX64.EFI
Boot0002* UEFI: PXE IP4 KIller PCIe Network Controller PciRoot(0x0)/Pci(0x1d,0x7)/Pci(0x0,0x0)/MAC(309c23ffceed,0)/IPv4(0.0.0.0,0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)0000424f
Boot0003* UEFI: PXE IP6 KIller PCIe Network Controller PciRoot(0x0)/Pci(0x1d,0x7)/Pci(0x0,0x0)/MAC(309c23ffceed,0)/IPv6([::],0,Static,[::],[::],64)0000424f
Boot0004* endeavouros HD(1,GPT,96394b90-178d-4c90-a1bf-5636eb3a0bc3,0x800,0x96000)/\EFI\ENDEAVOUROS\GRUBX64.EFI
Boot0007* Windows Boot Manager HD(1,GPT,96394b90-178d-4c90-a1bf-5636eb3a0bc3,0x800,0x96000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
[daniel@daniel-gl738rd ~]$

This appears to be the root device on the nvme device. I would do a disk check on the device and check any connections it has. This could be the sign of a failing drive or a bad connection.

1 Like

can you recheck in your UEFI motherboard
save a profile pour windows ,then

for linux

  • Secureboot off
  • CSM off
  • all disks on AHCI
  • no legacy

I have check my nvme with Samsung Magician, no failure found.

Everything was working well since 5 years. I have made no change in the UEFI motherboard, just a new fresh install with KDE as new DE.

Not by far being a expert on this I noticed that your efi partion is 96% full.
That seems a bit to much for good measure, also I noticed you have grub 3 times , that seems a bit strange too.

1 Like

I am quite the noob as well, meaning I have made many mistakes throughout the years on my Linux ride. So I might not be able to explain something, but maybe I can point in the right direction (hopefully!).

Following up keescase’s reply, I am a bit confused as to what I am looking at on your lsblk output.
I might be entirely wrong, but it feels like you have your EFI partition for both OSes on the same drive, and on top of that is the Windows drive. Did you make sure to install Windows after Linux or are you sure you configured it correctly? I have a slight feeling that could cause trouble, maybe. Windows is a bit of a rascal :laughing:

Edit: I forgot to ask/mention - When you mention your F11 UEFI/BIOS solution - does this mean you have to manually go in and select it every time for it to boot correctly (as if it wasn’t default) OR do you mean that it stays as default but then randomly breaks? It could also be something to do with GRUB maybe.

That said, not too long ago I was dual booting as well, but dumb-past-me forgot to unplug one of the SSDs when installing each OS, so everything was fine but the EFI stuff was shared as well and when I tried to format and reinstall… I nuked the EFI and couldn’t restore it so had to end up reinstalling EnOS completely - this time with the other (windows) SSD unplugged! Now everything is separated and balanced, as all things should be :stuck_out_tongue:

Hopefully you can solve this without too much hassle.

I would run a check disc in Windows for errors on the disc since i see this.

I have the same conclusion as yours, it is a grub issue.
My next step is to search how to delete and create a new grub.
The 300Mo came with the original efi partition with Windows7 when I bought this laptop.

I have installed EndeavourOS in replacement of an old arch installation.
It seems that during the grub installation, EndeavourOS created a new grub without replacing or updating the previous one.

Well it makes sense that eos would have created a new grub , because it uses a different path then the other two grub files. You could delete the other 2 grub files if they are not in use and free up some space. If I can make a suggestion , and it is not to much of aproblem, you could reinstall Eos and create a new EFI partition ,using the installer , so your efi parttition wil use the nvme, which probably also speed up things a little bit at boot.

I have reinstalled eos, deleting old grub, and I still have this randomized issue, sometimes it boots, sometimes not.
My msi laptop is from 2019 and does not support efi partition on the nmve.
Did I still missed something ?





Can you share some information about your system by typing the following command.

inxi -Fxxc0z

Please put the output in a “box” by using the </> , that would make it a bit more readable.

the size for /boot/efi is too small ( around 100M to 300M )

Yes I know but there is a “Microsoft reserved partition” just behind which is not movable.

[daniel@daniel-gl738rd ~]$ inxi -Fxxc0z
System:
Kernel: 6.15.7-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
Desktop: KDE Plasma v: 6.4.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Laptop System: Micro-Star product: GL73 8RD v: REV:1.0
serial: Chassis: type: 10 serial:
Mobo: Micro-Star model: MS-17C6 v: REV:1.0 serial:
part-nu: 17C6.1 UEFI: American Megatrends v: E17C6IMS.109 date: 05/22/2019
Battery:
ID-1: BAT1 charge: 32.6 Wh (95.6%) condition: 34.1/42.4 Wh (80.4%)
volts: 12.1 min: 10.8 model: MSI Corp. MS-17C6 serial: N/A
status: not charging
CPU:
Info: quad core model: Intel Core i5-8300H bits: 64 type: MT MCP
arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
Speed (MHz): avg: 800 min/max: 800/4000 cores: 1: 800 2: 800 3: 800 4: 800
5: 800 6: 800 7: 800 8: 800 bogomips: 36799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Micro-Star MSI
driver: i915 v: kernel arch: Gen-9.5 ports: active: eDP-1
empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:3e9b
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
vendor: Micro-Star MSI driver: nvidia v: 575.64.05 arch: Pascal pcie:
speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c8c
Device-3: Bison HD Webcam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 1-13:6 chip-ID: 5986:211b
Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
alternate: fbdev,intel,nouveau,nv,vesa dri: iris gpu: i915 display-ID: 0
Monitor-1: eDP-1 model: ChiMei InnoLux 0x1747 res: 1920x1080 hz: 120
dpi: 128 diag: 437mm (17.2")
API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: iris
device: 3 drv: swrast gbm: drv: iris surfaceless: drv: nvidia wayland:
drv: iris x11: drv: iris inactive: device-2
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 25.1.6-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL
GT2) device-ID: 8086:3e9b display-ID: :1.0
API: Vulkan v: 1.4.321 surfaces: N/A device: 0 type: discrete-gpu
driver: nvidia device-ID: 10de:1c8c
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
wl: wayland-info x11: xdpyinfo, xprop, xrandr
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
API: ALSA v: k6.15.7-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin
Network:
Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:a370
IF: wlan0 state: down mac:
Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: Micro-Star MSI
driver: alx v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 3000
bus-ID: 03:00.0 chip-ID: 1969:10a1
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac:
IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
mac:
IF-ID-2: proton0 state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-14:7
chip-ID: 8087:0aaa
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: N/A
Drives:
Local Storage: total: 1.85 TiB used: 1.5 TiB (80.9%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
speed: 31.6 Gb/s lanes: 4 serial: temp: 49.9 C
ID-2: /dev/sda vendor: Seagate model: ST1000LM049-2GH172 size: 931.51 GiB
speed: 6.0 Gb/s serial:
ID-3: /dev/sdb vendor: Generic model: Flash Disk size: 29.79 GiB type: USB
rev: 2.0 spd: 480 Mb/s lanes: 1 serial:
Partition:
ID-1: / size: 54.82 GiB used: 26.21 GiB (47.8%) fs: ext4 dev: /dev/nvme0n1p1
ID-2: /boot/efi size: 296 MiB used: 266.9 MiB (90.2%) fs: vfat
dev: /dev/sda1
ID-3: /home size: 860.7 GiB used: 22.27 GiB (2.6%) fs: ext4
dev: /dev/nvme0n1p2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 55.0 C pch: 66.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB available: 15.46 GiB used: 3.6 GiB (23.3%)
Processes: 281 Power: uptime: 22m wakeups: 0 Init: systemd v: 257
default: graphical
Packages: pm: pacman pkgs: 1258 Compilers: gcc: 15.1.1 alt: 14 Shell: Bash
v: 5.3.3 running-in: konsole inxi: 3.3.38
[daniel@daniel-gl738rd ~]$

Hi,
It seems that my issue has been solved by diactivating the fastboot in the bios.
Thansk you for your support.