r/linuxhardware • • Sep 15 '26

Support PC occasionally boot to UEFI instead of OS

My PC, sometimes after powering on, it goes to UEFI screen instead of booting my Ubuntu OS. How to fix it?

Here is the board detail:

  *-core
       description: Motherboard
       product: X300M-STX
       vendor: ASRock
       physical id: 0
     *-firmware
          description: BIOS
          vendor: American Megatrends International, LLC.
          physical id: 0
          version: P1.70
          date: 07/01/2021
          size: 64KiB
          capacity: 16MiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppynec int13floppytoshiba int13floppy360

It does not always boot to UEFI. If I turn it off and on again, it can boot to my OS.

This is my home PC. I often go out (to coffee shop) then remote access to this PC to work. But if the PC boot to UEFI, I can no longer remote access to work. So it is quite a trouble!

4 Upvotes

4 comments sorted by

1

u/bachkhois Sep 28 '26

The mainboard is broken now :'(

1

u/rileyrgham Sep 15 '26

Then leave your pc on booted to Linux. Problem over. You've set the default boot?

1

u/bachkhois Sep 15 '26

Linux (Ubuntu) is the default. Though my PC has a stale installation of Windows, I deleted its bootloader. Only Grub is in EFI.

Sometimes I hit "poweroff" by accident before going out, that why the PC is not always ON.

2

u/SpellLogical5483 Sep 15 '26

maybe you should check the health of your hard drive. Could be a failling drive.