The two methods below can be used to boot Memtest86+ from the grub2 boot loader on Red Hat Enterprise Linux 9. This is convenient when a system is located in a datacenter instead of on your desk, and has a remote console like e.g. iLO. Unfortunately the most recent Memtest86+ v7 cannot currently detect correctable ECC errors, so the only hint is very low performance in the memtest interface like the elapsed timer not updating every second. In that case EDAC errors filling up /var/log/messages are a more reliable indicator.
- Download the Binary Files (.bin/.efi) from https://www.memtest.org
- Create a new directory
/boot/efi/EFI/tools/
- Put
memtest64.efi
in/boot/efi/EFI/tools/
- Create
/etc/grub.d/20_memtest64
with the following content:
Note: the single quotes around EOF in the first line make sure that#!/usr/bin/sh cat << 'EOF' menuentry "Memtest86+ v7.00 EFI" { insmod part_gpt insmod search_fs_uuid insmod chain search --no-floppy --set=root --file /EFI/tools/memtest64.efi chainloader (${root})/EFI/tools/memtest64.efi } EOF
${root}
isn't inadvertently expanded by the shell but included as-is. - Update the EFI grub2 config file using
grub2-mkconfig --update-bls-cmdline -o /boot/efi/EFI/redhat/grub.cfg
- Download the Binary Files (.bin/.efi) from https://www.memtest.org
- Put
memtest64.efi
in/boot
- Create /boot/loader/entries/memtest64.conf with the following content:
title Memtest86+ v7.00 BLS version 1 linux /memtest64.efi
- Updating grub isn't necessary in this case.