I have a protectli vault fw4 mini PC running Untangle NG Firewall. It failed to boot after I had to forcefully power it off when the web UI was unresponsive. I plugged the device in to a monitor and saw the Untangle boot menu start followed by a brief message about failed to read sector <random hex code>
. And then a restart.
Thinking the 32GB mSata SSD drive might be failing I switched the UEFI firmware settings to legacy mode and booted a UBCD usb stick. I was able to successfully run a surface (read) scan on the drive without issue.
From that point on, I switched the BIOS back to UEFI mode and it refuses to see the drive’s boot entries.
I created a Linux System Rescue disk and was able to run fsck
on all three partitions. It did fix several issues on the main partition. Hopefully this is why it was having reading sector errors (strange for a logical problem).
The disk has 3 partitions.
- /dev/sda1 - Linux Filesystem
- /dev/sda2 - Linux Swap
- /dev/sda3 - EFI System
On /dev/sda3
I see the following folder structure…
/EFI
— debian
—— grubx64.efi
— untangle
—— grubx64.efi
The system is obviously a Debian based system.
I assume the problem is that changing to legacy mode erased the boot entry in the UEFI firmware. What is the proper way to add this boot entry back to the UEFI firmware with Linux tools / commands? I found some info about first listing the entries with efibootmgr
but only the bootable USB stick is found.
The UEFI firmware menu itself does not have an option for adding manual entries that I see. Any other information needed?