No Memtest in Grub.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Henrik Jansson
Level 1
Level 1
Posts: 25
Joined: Sat Feb 22, 2014 9:45 am

No Memtest in Grub.

Post by Henrik Jansson »

I just installed Linux Mint 19.2, but in the Grub menu, there is no Memtest. Why?
What to do?
gm10

Re: No Memtest in Grub.

Post by gm10 »

Because that's how it is.

You can add it yourself:
https://www.memtest86.com/download.htm
Henrik Jansson
Level 1
Level 1
Posts: 25
Joined: Sat Feb 22, 2014 9:45 am

Re: No Memtest in Grub.

Post by Henrik Jansson »

But why cant I see it on my computer?
And how do i get it into Grub? I do not want it only on a USB stick.
gm10

Re: No Memtest in Grub.

Post by gm10 »

Mount the memtest86-usb.img and copy the files from the /EFI/BOOT folder inside of it to your ESP so you end up with something like this:

Code: Select all

# l /boot/efi/EFI/memtest86/
Benchmark  blacklist.cfg  BOOTIA32.efi  BOOTX64.efi  mt86.png  unifont.bin
then add a GRUB menu entry like this:

Code: Select all

menuentry 'MemTest86' $menuentry_id_option 'memtest86' {
    set root='hd0,gpt1'
    chainloader ($root)/EFI/memtest86/BOOTX64.EFI
}
e.g. to your /etc/grub.d/40_custom. Don't forget to update-grub once you're one.
Henrik Jansson
Level 1
Level 1
Posts: 25
Joined: Sat Feb 22, 2014 9:45 am

Re: No Memtest in Grub.

Post by Henrik Jansson »

What is ESP and where do I find it?
gm10

Re: No Memtest in Grub.

Post by gm10 »

Don't worry about it, open your file browser as root, navigate to /boot/efi/EFI/ and create the folder memtest86 in it, then put the files in there.
Henrik Jansson
Level 1
Level 1
Posts: 25
Joined: Sat Feb 22, 2014 9:45 am

Re: No Memtest in Grub.

Post by Henrik Jansson »

Is it "memtest86-usb.img" I should use to make a bootable USB and then from that find the files you are talking about?
gm10

Re: No Memtest in Grub.

Post by gm10 »

You can just (double) click on it to mount it, the mount point should then appear in your file browser.
SergiusTheBest
Level 1
Level 1
Posts: 3
Joined: Tue Sep 08, 2020 5:03 am

Re: No Memtest in Grub.

Post by SergiusTheBest »

After updating to Linux Mint 20 I found that memtest was missing in Grub. You just need to install it

Code: Select all

sudo apt install memtest86+
and it will appear again.
flyingrhino
Level 4
Level 4
Posts: 252
Joined: Sat Apr 04, 2015 8:55 pm

Re: No Memtest in Grub.

Post by flyingrhino »

sudo apt install memtest86+
I am running LM 20.1 xfce and I did exactly that as well as 'update-grub'.
I get the grub menu but no memtest.

I checked inside /etc/grub.d/ and I have:
-rwxr-xr-x 1 root root 1992 Aug 18 2020 20_memtest86+*

And under /boot/ I have:
-rw-r--r-- 1 root root 182704 Aug 18 2020 memtest86+.bin
-rw-r--r-- 1 root root 184380 Aug 18 2020 memtest86+.elf

Any ideas?
Yamelesswrench
Level 2
Level 2
Posts: 71
Joined: Wed Jul 29, 2020 12:42 pm

Re: No Memtest in Grub.

Post by Yamelesswrench »

gm10 wrote: Wed Dec 04, 2019 6:35 pm Mount the memtest86-usb.img and copy the files from the /EFI/BOOT folder inside of it to your ESP so you end up with something like this:

Code: Select all

# l /boot/efi/EFI/memtest86/
Benchmark  blacklist.cfg  BOOTIA32.efi  BOOTX64.efi  mt86.png  unifont.bin
then add a GRUB menu entry like this:

Code: Select all

menuentry 'MemTest86' $menuentry_id_option 'memtest86' {
    set root='hd0,gpt1'
    chainloader ($root)/EFI/memtest86/BOOTX64.EFI
}
e.g. to your /etc/grub.d/40_custom. Don't forget to update-grub once you're one.
Thanks for this! save me a USB stick, memtest right in Grub
slvstr3
Level 1
Level 1
Posts: 23
Joined: Sat Feb 15, 2020 7:20 am

Re: No Memtest in Grub.

Post by slvstr3 »

gm10 wrote: Wed Dec 04, 2019 6:35 pm set root='hd0,gpt1'
I see the memtest now, but when I chose it, I receive the error message that "hd0,gpt1" cannot be found.
hd0,gpt1 is a disk and its partition?
Could this be, in my case, "/dev/nvme0n1pw"?
User avatar
Bolle1961
Level 5
Level 5
Posts: 888
Joined: Tue Jun 29, 2010 12:59 pm

Re: No Memtest in Grub.

Post by Bolle1961 »

Why don't you install it from the repo's ?
slvstr3
Level 1
Level 1
Posts: 23
Joined: Sat Feb 15, 2020 7:20 am

Re: No Memtest in Grub.

Post by slvstr3 »

I did install it from the repos running sudo apt install memtest86. It installed. But then it still didn't show up at boot.

So then I followed the advice and added to the grub menu

Code: Select all

menuentry 'MemTest86' $menuentry_id_option 'memtest86' {
    set root='hd0,gpt1'
    chainloader ($root)/EFI/memtest86/BOOTX64.EFI
}
And ran update-grub.

I just don't understand what is

Code: Select all

set root='hd0,gpt1'
. Does this point to a disk, or a name, or a location?

Obviously, I do not have this specific location.
User avatar
Bolle1961
Level 5
Level 5
Posts: 888
Joined: Tue Jun 29, 2010 12:59 pm

Re: No Memtest in Grub.

Post by Bolle1961 »

slvstr3 wrote: Wed Apr 28, 2021 11:50 am I did install it from the repos running sudo apt install memtest86. It installed. But then it still didn't show up at boot.
Weird, see screenshot, memtest installed using synaptic
GrubMemtest86.resized10.jpg
burtsevyg
Level 1
Level 1
Posts: 19
Joined: Wed Oct 23, 2019 8:39 am

Re: No Memtest in Grub.

Post by burtsevyg »

slvstr3 wrote: Wed Apr 28, 2021 11:50 am I did install it from the repos running sudo apt install memtest86. It installed. But then it still didn't show up at boot.

So then I followed the advice and added to the grub menu

Code: Select all

menuentry 'MemTest86' $menuentry_id_option 'memtest86' {
    set root='hd0,gpt1'
    chainloader ($root)/EFI/memtest86/BOOTX64.EFI
}
And ran update-grub.

I just don't understand what is

Code: Select all

set root='hd0,gpt1'
. Does this point to a disk, or a name, or a location?

Obviously, I do not have this specific location.
Same problem. After install memtest86

Code: Select all

$ sudo apt install memtest86+

Code: Select all

$ ls /boot/
config-5.4.0-58-generic  efi         initrd.img-5.4.0-58-generic  initrd.img.old  memtest86+_multiboot.bin     System.map-5.4.0-72-generic  vmlinuz-5.4.0-71-generic
config-5.4.0-71-generic  grub        initrd.img-5.4.0-71-generic  memtest86+.bin  System.map-5.4.0-58-generic  vmlinuz                      vmlinuz-5.4.0-72-generic
config-5.4.0-72-generic  initrd.img  initrd.img-5.4.0-72-generic  memtest86+.elf  System.map-5.4.0-71-generic  vmlinuz-5.4.0-58-generic     vmlinuz.old

Code: Select all

$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Генерируется файл настройки grub …
Найден образ linux: /boot/vmlinuz-5.4.0-72-generic
Найден образ initrd: /boot/initrd.img-5.4.0-72-generic
Найден образ linux: /boot/vmlinuz-5.4.0-71-generic
Найден образ initrd: /boot/initrd.img-5.4.0-71-generic
Найден образ linux: /boot/vmlinuz-5.4.0-58-generic
Найден образ initrd: /boot/initrd.img-5.4.0-58-generic
Adding boot menu entry for UEFI Firmware Settings
завершено

Code: Select all

# ls /boot/efi/EFI/
BOOT  ubuntu

Code: Select all

# cat /etc/grub.d/40_custom 
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
bking
Level 1
Level 1
Posts: 19
Joined: Sun Jan 06, 2019 6:35 pm

Re: No Memtest in Grub.

Post by bking »

Bigger question for me is WHY is it missing. It's always been a critical part of diagnosing some boot problems, and it seems logical to be on the GRUB menu along with other boot options for diagnosis. This thread started back with either 19.3 or 20, so if it were a mistake that it was missing we've had several updates that could have restored it.
User avatar
Pierre
Level 21
Level 21
Posts: 13226
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: No Memtest in Grub.

Post by Pierre »

Bolle1961 wrote: Wed Apr 28, 2021 12:54 pm
slvstr3 wrote: Wed Apr 28, 2021 11:50 am I did install it from the repos running sudo apt install memtest86. It installed. But then it still didn't show up at boot.
Weird, see screenshot, memtest installed using synapticGrubMemtest86.resized10.jpg
isn't that for LMDE4 :?: this is about the Main Edition & with Memtest+

the issue arises, from what you have remembered, was the traditional 32bit version,
and now there is an 64bit version, that isn't included, as it once would have been.
- - you now have to Install it, yourself - -
https://www.memtest86.com/tech_configuring-grub.html
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
Bolle1961
Level 5
Level 5
Posts: 888
Joined: Tue Jun 29, 2010 12:59 pm

Re: No Memtest in Grub.

Post by Bolle1961 »

You're probably right.
Installed memtest now on my dualboot Mint 20.2 / LMDE4 from Mint 20.2 synaptic and memtest is not in Grub
SimonPeter
Level 5
Level 5
Posts: 579
Joined: Tue Jul 13, 2021 5:13 am

Re: No Memtest in Grub.

Post by SimonPeter »

Copy the memtest executable from a Linux ISO , then load it with GRUB by editing /etc/grub/40_custom and then sudo update-grub
Locked

Return to “Installation & Boot”