You are not logged in.

#1 2018-06-05 17:40:16

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

[Solved] No UEFI boot after system freeze and power-off

This afternoon my system froze (probably due to a bug in Zoom communication software).

When I wanted to reboot, I got an error from the BIOS saying
"reboot and select proper Boot device or insert Boot Media in selected Boot device and press a key.

I can boot without problem from Archiso install USB stick.

Hardware:
Motherboard AsRock N3700-ITX, BIOS v2.00 (updated after the crash from v1.80)

My hard drive has three partitions

Device name  Partition    Partition size  File system   Flags
/dev/sda1       /boot          523MB            fat32             boot,esp
/dev/sda2      /                  454GB             ext4
/dev/sda3                          25.9GB           linux-swap

Partition table: gpt

This is the actual output from parted

I removed a dirty bit with fsck.vfat on /dev/sda1, but that didn't change anything.
No problems detected when fsck'ing  /dev/sda1 and /dev/sda2.

Any suggestions how to troubleshoot and to get my machine rolling again?

Last edited by zilverling (2018-06-05 21:46:22)

Offline

#2 2018-06-05 17:55:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] No UEFI boot after system freeze and power-off

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-06-05 18:04:47

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

Thanks @jasonwryan. I was at a loss where to post this. Even when I don't consider myself a newbie to Arch Linux (I've been using Arch since August 2009), it's probably the best forum for my question.

Offline

#4 2018-06-05 18:11:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] No UEFI boot after system freeze and power-off

Chroot in and check your /boot: make sure everything is intact. Regenerate your initramfs.

Also check in your UEFI interface that the boot order is correct.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-06-05 18:52:07

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

Thanks for the suggestions.

Generated new initramfs images. No effect.

Boot order is simple: just Boot option #1: AHCI PO ADATA SP550 , which is my SSD drive.

When I insert the archiso usb, two additional boot options are shown by the BIOS:
Boot Option #2     USB: Adata USB Flash Drive 0.00
Boot Option #3     UEFI: A-Data USB Flash Drive 0.00. Partition 1

When installing Arch on this machine in January this year I had some difficulty to get UEFI going. According to the notes I made at that time, I had to switch Compatibility Support Mode off in the BIOS, but if I do so now, the BIOS does not find the SSD drive.

Last edited by zilverling (2018-06-05 18:52:56)

Offline

#6 2018-06-05 18:56:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] No UEFI boot after system freeze and power-off

Use efibootmgr to print the current settings.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2018-06-05 20:15:09

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

after arch-chrooting to my N3700-ITX machine I get the following

[root@archiso /]# efibootmgr
EFI variables are not supported on this system

I booted the archiso-USB in UEFI mode (option #3)...

Offline

#8 2018-06-05 20:21:07

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] No UEFI boot after system freeze and power-off

Does dmesg | grep efi produce any output?  If not I would suggest the system is booting in BIOS mode.

Offline

#9 2018-06-05 20:36:27

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

Turns out the archiso-USB was not booted in UEFI mode. After I switched off CSM (UEFI COmpatibility Support Mode) I did succeed to mount the archiso-USB in UEFI mode.

Problem is that if I switch off CSM, the BIOS somehow does not see the SSD drive.

I think this is some nasty peculiarity of the N3700 BIOS. I think I am close to finding the trick. @jasonwryan thanks for your help so far. I may be back soon with good news.

Offline

#10 2018-06-05 20:40:04

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] No UEFI boot after system freeze and power-off

If the firmware has reset all settings that would include those relating to the SSD such as the controller being in RAID rather than ACPI mode.
The dmesg may contain output explaining the SSD detection failure.

Offline

#11 2018-06-05 20:57:57

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

More complicated than I hoped.

@loqs If I boot the archiso with CSM disabled I get output from dmesg | grep efi

@jasonwryan

Output after arch-chrooting to my N3700-ITX machine:

[root@archiso /]# efibootmgr
BootCurrent: 0003
TimeOut: 1 seconds
BootOrder: 0003
Boot0003* UEFI: A-DATA USB Flash Drive 0.00, Partition 1

For some reason the BIOS doesn't find the SSD with CSM disabled...

Back on this tomorrow morning.

Last edited by zilverling (2018-06-05 21:33:56)

Offline

#12 2018-06-05 21:38:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] No UEFI boot after system freeze and power-off

You can try manually writing a boot entry for your SSD in the nvram.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2018-06-05 21:43:59

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 84

Re: [Solved] No UEFI boot after system freeze and power-off

Solved it:

grub-install --efi-directory=/boot

(/boot is my efi-directory) did the trick.

I will document this. Thanks for your help @jasonwryan and @loqs

Offline

Board footer

Powered by FluxBB