LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2020, 08:42 AM   #1
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Rep: Reputation: Disabled
Can’t run memtest86 in UEFI linux mint system


I have been advised to run memtest86 to test my RAM

Although in /boot I have the files memtest86+.bin, memtest86+.elf, and memtest86+_multiboot.bin, I cannot find a way of running memtest86 in my linux mint system

Just to clarify, are these files earlier than version 8, which is meant for UEFI, are they unusable in a UEFI system?, and so do I have to download v8 from somewhere?

I can see the grub menu, memtest definitely is not there, I remember on my older systems where it used to be and have used it.

I understand this is because I have a UEFI system

Can I boot it in BIOS mode? I found an web page that seems to say that once your OS is set to boot in UEFI you cannot change it back, you have to reinstall.



Linux Mint 19.2 Cinnamon

System
AMD Ryzen 2200 cpu with onboard Radeon graphics
Gigabyte mobo B450 Aorus M
1. Realtek® ALC892 codec
2. High Definition Audio
3. 2/4/5.1/7.1-channel
4. Support for S/PDIF Out
 
Old 08-23-2020, 10:49 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
benawhile,

Welcome to LQ forums.

You need to first download and install it from:
https://www.memtest86.com/download.htm

Instructions:
https://forums.linuxmint.com/viewtopic.php?t=306613
 
1 members found this post helpful.
Old 08-23-2020, 01:45 PM   #3
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks
OK
Does that mean that the memtest files I have are only there for non UEFI systems?
 
Old 08-24-2020, 06:58 AM   #4
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
I'm afraid I need a bit more help, those instructions in the link aren't clear to me.
So my intention is not to create a bootable USB, but to boot into memtest on startup

I have downloaded v8 from the Passmark site
I have created the empty memtest86 file in /boot/EFI/efi as instructed in the link
I have mounted the image and copied the relevant files into the newly created folder (ESP?)
I am OK until gm10's second post the words "end up with something like this"
I don't understand the code he is using there, what should I enter first

Then the grub instruction, do I just enter all that code as it is? with the } on the next line?
And where he says "eg to your" what does it mean and how do I do it?

Finally in the readme, which applies only to creating a usb drive,there is a warning about the program wasting disk space. Is this also likely to happen if I use it in GRUB?
 
Old 08-24-2020, 09:48 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by benawhile View Post
I have mounted the image and copied the relevant files into the newly created folder (ESP?)
No, that doesn't refer to a folder. ESP is short for EFI system partition. You will have such a partition on your hard drive if you have a UEFI, and you need to find out where it is. It's often (but not necessarily) partition 1. Running fdisk -l /dev/sda (as root) should show you. For example my output includes the line:
Code:
/dev/sda2    2050048   2582527    532480  260M EFI System
Once you have found your ESP, you must mount it somewhere; the traditional mount point is /boot/efi. Then you can copy the files over.
Quote:
I am OK until gm10's second post the words "end up with something like this"
I don't understand the code he is using there, what should I enter first
The order in which you copy the files doesn't matter. The example shows a listing of the result, which by default is in alphabetical order.
Quote:
Then the grub instruction, do I just enter all that code as it is? with the } on the next line?
And where he says "eg to your" what does it mean and how do I do it?
You need to edit these lines into one of the grub scripts, which will be in /etc/grub.d. He suggests 40_custom, so you might as well use that. Make sure you don't change the existing content of the script, just add your entry to the end. Include the braces exactly as written: they're important. For the "set root" line, use the ESP partition you found. For example, he uses (hd0,gpt1) but I would have to use (hd0,gpt2) on my machine. Then run update-grub. All of this as root, obviously.

But actually I wouldn't recommend you to do any of this until you've read up a bit more and are sure you understand what you are doing. Fooling about with your system on such a basic level is probably not a good idea until then. You could end up making it unbootable.

Last edited by hazel; 08-24-2020 at 09:50 AM.
 
1 members found this post helpful.
Old 08-24-2020, 02:56 PM   #6
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Hazel for the extra detail

The problem is I don't see what choice I have. My system keeps freezing and the only advice I have is to first run memtest86, and beachboy2's link is the only advice I have had to run memtest in a UEFI system.

I may not fully understand what an ESP is but I am quite certain I did what gm10 said in his 2nd and 3rd posts up to "end up with something like this". You have to read the second post and then the third for a better explanation of the second.

Well, I suppose if it's safer I could try running memtest86 from a USB stick. How frustrating that memtest86+ comes with Linux Mint but not memtest86.
 
Old 08-24-2020, 03:17 PM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
benawhile,

You could install memtester:

Code:
sudo apt install memtester
Then run using:

Code:
sudo memtester
Please read:
http://manpages.ubuntu.com/manpages/...mtester.8.html

Article:
https://www.techwalla.com/articles/h...e-ram-on-linux

Note that you need to give the size in megabytes, of the RAM installed on your computer.

Also replace the example of 5 with the number of times you want to run the test.

I have not used memtester personally, but it seems as though it may offer you an alternative way to test your memory.

What makes you think you have a problem with your memory?

Just remember the old adage, if it ain't broke, don't fix it.

Last edited by beachboy2; 08-24-2020 at 03:27 PM.
 
Old 08-24-2020, 04:05 PM   #8
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
I would like to run memtest86, as that was specifically recommended. I asked in my last post if it would be easier to run it from a USB.

I did explain in my previous reply to Hazel that my Linux Mint system is freezing and the first solution offered on the Linux Mint forum was that there may be a RAM fault, which sounded reasonable to me. It used to be a very simple matter to run memtest86.

I am more than happy to give further details of the actual fault and welcome any other suggestions. I have described it here:

https://forums.linuxmint.com/viewtop...73858#p1873858
 
Old 08-24-2020, 07:51 PM   #9
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
I would like to run memtest86, as that was specifically recommended. I asked in my last post if it would be easier to run it from a USB.
Short answer, yes. I've also run into problems running memtest off the grub boot entries in *buntus like Mint with EFI bioses. Save yourself some time and aggravation and just run it off a usb.
Quote:
I did explain in my previous reply to Hazel that my Linux Mint system is freezing and the first solution offered on the Linux Mint forum was that there may be a RAM fault, which sounded reasonable to me.
That's sound advice. Is your ram on Gigabyte's supported list? I haven't built with AMD but it is my understanding that AMD boards tend to be more finicky about their ram. If an overnight run of memtest shows no errors, it could be a problem with your power supply or possibly improperly configured radeon graphics.

Edit: If you have overclocked at all, remove the overclock and see if that corrects the problem.

Last edited by kilgoretrout; 08-24-2020 at 08:28 PM.
 
1 members found this post helpful.
Old 08-25-2020, 03:53 AM   #10
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
Update: I managed to run memtest86 last night and there were no errors after 4 passes.

Is the line "Cores: 1 active 1 total SMP disabled" significant?

I had it on the usb from where I had installed Linux Mint. I had looked for it before but forgotten the procedure to locate it.
In the top corner, not shown in the shot, is a flashing red plus sign. Does that mean it was memtest86+?

Linux Mint 19.2 Cinnamon

System
AMD Ryzen 2200 cpu with onboard Radeon graphics
Gigabyte mobo B450 Aorus M
Attached Thumbnails
Click image for larger version

Name:	200815 Memtest86.jpg
Views:	106
Size:	188.3 KB
ID:	33965  
 
Old 08-25-2020, 04:35 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by benawhile View Post
Update: I managed to run memtest86 last night and there were no errors after 4 passes.

Is the line "Cores: 1 active 1 total SMP disabled" significant?
No. SMP stands for symmetric multiprocessing. In other words, if you have multiple cpu cores, memtest will use them symmetrically so that the work load is even. The Linux kernel does the same. It seems you have only one core, so that facility has been switched off.
 
1 members found this post helpful.
Old 08-25-2020, 05:11 AM   #12
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have Ryzen 3 2200G which is a 4 core. That aside, the main concern is that my RAM is OK I suppose?
 
Old 08-25-2020, 07:17 PM   #13
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
I'm running Linux Mint 18.3 and have memtest available by default but it's nothing to do with the operating system... It's one of the choices from the Grub menu, You "boot" memtest rather then Linux/Windows or whatever, it runs standalone, not via an operating system.

To check memory you don't want a load of operating system code getting in the way, you'd have to block shift it from one end of your available memory to the other while you test the "free" area. Waste of time and effort. Much easier to just shift a small stand alone program - Memtest (compared to an OS!).

To test the hardware on a computer you should run Stand Alone diagnostics, usually booted from some other medium, DVD, etc. HP Smartstart or IBM RS6000 Power Standalone Diags spring to mind, they're what I used in the day. Things were changing when I retired in that the stand alones were starting to be available by being accessed from ROM during POST.

If the stand alones run clean, your problem is with the OS rather than hardware.

My

Play Bonny!

 
Old 08-26-2020, 02:56 AM   #14
benawhile
LQ Newbie
 
Registered: Aug 2020
Posts: 8

Original Poster
Rep: Reputation: Disabled
I don't think I mentioned that I actually managed to run it from the USB that I had used to install Linux Mint, I assume that meets the criteria of Soadyheid for running it from somewhere separate from the system it is testing.

Like Soadyheid, on previous systems for example Lubuntu on my previous build I could boot memtest from Grub, but as people are posting on various forums, they can no longer see it in the Grub menu.

It seems to me that any legacy BIOS system should see it in Grub, and that the 3 Memtest files that come packaged with the current Linux Mint, and that I have, are intended to work in legacy BIOS, but I chose UEFI BIOS, and Linux Mint don't put the appropriate files in for that. That's the only explanation I can think of.

I am happy to mark this as solved now
 
1 members found this post helpful.
Old 08-26-2020, 06:30 AM   #15
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
people are posting on various forums, they can no longer see it in the Grub menu.

It seems to me that any legacy BIOS system should see it in Grub, and that the 3 Memtest files that come packaged with the current Linux Mint, and that I have, are intended to work in legacy BIOS, but I chose UEFI BIOS, and Linux Mint don't put the appropriate files in for that. That's the only explanation I can think of.
Very interesting... I'm running a 2009 HP Z400 workstation with legacy BIOS so still have memtest in the Grub menu.

Your diagnosis seems very logical Mr Spock.

Play Bonny!

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how many tests does memtest86 run? kpachopoulos Linux - General 4 09-17-2023 03:00 PM
[SOLVED] Install non-UEFI system from a UEFI USB? andrew.46 Slackware 10 04-08-2020 11:28 PM
how to install linux mint side by side windows into an uefi machine without uefi partition valgalsan Linux - Newbie 2 11-03-2015 12:25 PM
Can't install LM 32bit with UEFI disabled on UEFI Asus X200MA laptop dblaisde Linux Mint 3 10-15-2015 05:37 AM
Are Memtest86 and Memtest86+ best for checking memory MQMan Linux - Hardware 4 09-14-2007 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration