Memtest86+ not detected by update-grub

I`m having problem with memtest86+, I cant add option to grub.

root@zorinvm:~# aptitude install memtest86+
memtest86+ is already installed at the requested version (5.01-3.1ubuntu2.1)
memtest86+ is already installed at the requested version (5.01-3.1ubuntu2.1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@zorinvm:~# update-grub
Sourcing file /etc/default/grub' Sourcing file /etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-generic
Found linux image: /boot/vmlinuz-5.13.0-30-generic
Found initrd image: /boot/initrd.img-5.13.0-30-generic
Adding boot menu entry for UEFI Firmware Settings
done
root@zorinvm:~# ls -l /boot/
total 225204
-rw-r--r-- 1 root root 257734 Feb 7 15:01 config-5.13.0-30-generic
-rw-r--r-- 1 root root 257734 Mar 7 08:40 config-5.13.0-35-generic
drwx------ 3 root root 4096 Jan 1 1970 efi
drwxr-xr-x 4 root root 4096 Mar 11 20:59 grub
lrwxrwxrwx 1 root root 28 Mar 10 20:34 initrd.img -> initrd.img-5.13.0-35-generic
-rw-r--r-- 1 root root 98622703 Mar 10 20:34 initrd.img-5.13.0-30-generic
-rw-r--r-- 1 root root 98623309 Mar 10 20:35 initrd.img-5.13.0-35-generic
lrwxrwxrwx 1 root root 28 Mar 10 20:34 initrd.img.old -> initrd.img-5.13.0-30-generic
-rw-r--r-- 1 root root 182704 Aug 18 2020 memtest86+.bin
-rw-r--r-- 1 root root 184380 Aug 18 2020 memtest86+.elf
-rw-r--r-- 1 root root 184884 Aug 18 2020 memtest86+_multiboot.bin
-rw------- 1 root root 5960334 Feb 7 15:01 System.map-5.13.0-30-generic
-rw------- 1 root root 5960381 Mar 7 08:40 System.map-5.13.0-35-generic
lrwxrwxrwx 1 root root 25 Mar 10 20:34 vmlinuz -> vmlinuz-5.13.0-35-generic
-rw------- 1 root root 10171040 Feb 7 15:03 vmlinuz-5.13.0-30-generic
-rw------- 1 root root 10171296 Mar 7 09:09 vmlinuz-5.13.0-35-generic
lrwxrwxrwx 1 root root 25 Mar 10 20:34 vmlinuz.old -> vmlinuz-5.13.0-30-generic
root@zorinvm:~#

This is fresh ZorinOS Core instalation inside vm (qemu)

Why would you run memtest in a Virtual environment?

But even so, you could try;

sudo chmod +x /etc/grub.d/20_memtest86+

Update grub and see if it appears.

I`m preparing instalation from my PC inside VM.
+x does not helps.

root@zorinvm:~# chmod +x /etc/grub.d/20_memtest86+
root@zorinvm:~# update-grub
Sourcing file /etc/default/grub' Sourcing file /etc/default/grub.d/init-select.cfg'
Generowanie pliku konfiguracyjnego gruba...
Znaleziono motyw: /usr/share/grub/themes/zorin/theme.txt
Znaleziono obraz Linuksa: /boot/vmlinuz-5.13.0-35-generic
Znaleziono obraz initrd: /boot/initrd.img-5.13.0-35-generic
Znaleziono obraz Linuksa: /boot/vmlinuz-5.13.0-30-generic
Znaleziono obraz initrd: /boot/initrd.img-5.13.0-30-generic
Adding boot menu entry for UEFI Firmware Settings
gotowe
root@zorinvm:~#

Zrzut ekranu-20220311212352-588x454

got it. See in folder /etc/grub.d if the file 20_memtest is present.

I usually remove this from grub because I don't use it. To me it's an annoying option on grub. But still why are u trying to see this option in VM and especially on grub? Are you gonna use it. Do you have a problem with RAM. While using VM I guess you have not preserved all RAM for the VM.

Im preapring my instalation inside VM after everything is setup im migrating this to my real pc. This instalation is running inside "UnRaid" have dedicated 32GB of RAM and 64GB of disk space :) Im not planing to test virtual memory, I want to make sure everything is tip-top before switching my main pc.

File is present :frowning:

root@zorinvm:~# ls -lh /etc/grub.d/
razem 132K
-rwxr-xr-x 1 root root 11K lip 20 2021 00_header
-rwxr-xr-x 1 root root 6,1K lip 20 2021 05_debian_theme
-rwxr-xr-x 1 root root 18K sie 20 2021 10_linux
-rwxr-xr-x 1 root root 42K lip 20 2021 10_linux_zfs
-rwxr-xr-x 1 root root 13K lip 20 2021 20_linux_xen
-rwxr-xr-x 1 root root 2,0K sie 18 2020 20_memtest86+
-rwxr-xr-x 1 root root 12K lip 20 2021 30_os-prober
-rwxr-xr-x 1 root root 1,4K lip 20 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 214 lip 20 2021 40_custom
-rwxr-xr-x 1 root root 216 lip 20 2021 41_custom
-rw-r--r-- 1 root root 483 lip 20 2021 README
root@zorinvm:~# head /etc/grub.d/20_memtest86+
#!/bin/sh
set -e

if [ -f /usr/lib/grub/grub-mkconfig_lib ]; then
. /usr/lib/grub/grub-mkconfig_lib
LX=linux16
elif [ -f /usr/lib/grub/update-grub_lib ]; then
. /usr/lib/grub/update-grub_lib
LX=linux
else
root@zorinvm:~#

Does this mean that if the file does not show, you are not going to install Zorin for real.

I have tried Zorin and many derivatives in Virtual Environment. They all seem to work out of the box in VM, until I do the real installation I discover that some OS don't have all the media or peripheral drivers present (Linux Mint for example). The only OS which spared me this headache and worked 100% is Zorin.

So I don't think you will have a 100% hit while using VM, but that's my experience.

This is not a key feature for me, I will install it anyway.

Zorin is using mainly Ubuntu repo, I'm almost 99% sure, Zorin will support my 2-3 years old hardware.

1 Like