SMART Tests Haven't Been Running?

I have no idea how to get into the shell…there’s an option under Exit in the BIOS to boot into an EFI shell via USB, but I don’t think that’s the right thing because there’s no shell on the USB, just the firmware and sas2flash. Do I need to download the thing from here and put that on the drive as well?

Either way, when I select the EFI option it tells me to turn Secure Boot off, but I don’t see an “off” option in the Secure Boot settings, just “Custom,” which as far as I can tell only allows me to delete keys, which seems like the opposite of what I want, and the default option. According to this, setting it to “Other OS” disables Secure Boot, but it’s already set to that and it’s giving me the error message that Secure Boot is turned on.

The shell is built into the EFI BIOS. That’s the nice thing of EFI over e.g. FreeDOS.

The OS is built into the system, no need to prepare bootable media.

Then just invoke any EFI binary from e.g. USB drive.

1 Like

So I don’t need the Shell_Full.efi file that’s linked to in that Super User answer?

Okay, but…how? The option to launch EFI from USB sounds like it expects the shell file to be on the USB and won’t launch because Secure Boot is on, even though according to that Asus page it shouldn’t be, and I’m not sure how else to begin the process?

Correct, device names like /dev/sda can and do change every time the system starts. You cannot rely on those between boots, instead, always cross-check with the serial numbers or UUID’s.

If a drive reported 8 smart errors they won’t magically go away. Go through every drive with smartctl -a /dev/sdX replacing X for the device names in use during that current boot. You will eventually find it, when you do, note down the serial.

Regarding SMART tests; they run in the background and as previously mentioned take many hours to complete (typically 12 to 24). If you reboot the system while one is running the test will fail.

I know the serial of the drive that initially reported errors, that’s how I know it’s the same drive that’s throwing errors now. But it was listed as FAULTED, with 18 read errors, and the VDEV was listed as DEGRADED. But now it’s showing that it’s completely fine, and none of the drives have any errors, even as I continue to get emails about the ATA error count increasing.

Are you looking for the errors with smartctl?
Unreadable sectors do not necessarily show up as ZFS errors clearly visible in the GUI.

Try it…
Boot to UEFI Shell from the boot menu.
map to list file systems. Hopefully your USB with sas2flash.efi and the firmware is fs0.
fs0: to go there and dir to list files and confirm.
If it’s not the USB drive, try fs1:.
Then follow the instructions to flash.

Should SecureBoot get in the way, disable it. It is useless for TrueNAS anyway.

1 Like

The instructions to disable it say to set the operating system to “Other” instead of “Windows”, which it already is, and yet it’s still blocking me.

Gotta say, the argument that doing this is easier than removing the drive is falling apart a bit. :joy:

If you just need sas2flash or sas3flash, they are included with TrueNAS these days (at least as of 25.4).

/usr/local/sbin/sas2flash
/usr/local/sbin/sas3flash

You will still need the firmware (and maybe the BIOS) image file(s).

But booting from a FreeDOS USB may be safer as it guarantees no I/O through the HBA during the flashing.

Well I can’t boot FreeDOS without buying a GPU, which is not something I’m particularly keen to do just for this. So that specific option is out.

They cannot boot FreeDOS because their system does not support legacy boot.

Secure boot should not prohibit invoking the shell from the boot menu. You are not booting from a medium. You are invoking the builtin UEFI shell. Try it.

This is my boot menu:

Option 1 boots into TrueNAS, option 2 boots into the BIOS.

Enter the setup and check if you need to add the UEFI shell to the boot options,

1 Like

To everyone participating in this thread: have you ever encountered a system with a BIOS so broken a UEFI shell is not builtin?

Maybe the poor OP is suffering from a “lock in by default” platform designed to really only support Windows?

I feel a bit at a loss here without an opportunity to get my own hands on the system discussed.

@koberulz all else failing the programs to flash your HBA are part of TrueNAS as @PK1048 pointed out.

Possibly try that approach.

1 Like

Here?

Theoretically yes, seeing your screen shot that looks like a seriously locked down system not supporting the most fundamental functions of any modern UEFI based platform.

So we at least know the reason for all the confusion and frustration.

See my previous post and the linked one by @PK1048 for yet another way to go about flashing your HBA.

1 Like

Could you take pictures of the options under “Secure Boot” and “Boot Configuration”, as well please?

Never like this, no.



Can anyone think of any reason why @koberulz shouldn’t use remove the keys (by changing Secure Boot Mode from Standard to Custom? Secure Boot State should say Setup in that case.

Unless you’re dual booting Windows and have a Bitlocker encrypted volume I don’t see why the current keys are important. If the needs change and Windows is required, just create new keys and reenable Secure Boot.

Just make sure you have an up-to-date configuration file from your TrueNAS install if you don’t already have that, just in case.

1 Like