If using UEFI Please see this question, "Can I boot memtest86+ if I'm using UEFI?"
After having installed the 64bit version of Ubuntu 12.04 on my Lenovo B570 I ran into the same problems I had when installing 11.10 with Grub not playing nicely with a uEFI system. I used the same technique as last time to solve the problem (using a Super Grub Disc LiveCD session to repair Grub) and my system happily dual boots between Ubuntu and Windows 7
However now when I boot up the Grub menu only displays
- Ubuntu, with Linux 3.2.0-24-generic
- Ubuntu, with Linux 3.2.0-24-generic (recovery mode)
- Previous Linux versions
- Windows 7 (loader) (on /dev/sda1)
- Windows Recovery Environment (loader) (on /dev/sda4)
I no longer see the option to use Memtest86+ which was there previously, having checked in the Ubuntu Software Center I can see that the package is installed, but how to I make the option to run it once again appear in the Grub menu?
I've tried:
sudo update-grub
which doesn't make any difference.
sudo chmod +x /etc/grub.d/20_memtest86+
results in:
chmod: cannot access /etc/grub.d/20_memtest86+': No such file or directory
and entering
ls /etc/grub.d/
results in:
00_header 10_linux 30_os-prober 41_custom
05_debian_theme 20_linux_xen 40_custom README
Try opening a terminal and running
Check to see if it's there
Just done the same as I had it disabled
You could try creating the file if it's not there, using nano in a terminal
or with a gui editor
Fill it with
Make sure to run the chmod +x command on it afterwards.
I'd be a bit concerned that it's missing though - do you have everything else in grub.d ?
This will automatically reconfigure grub and add the entry to the boot menu.
If you get the error
memtest86+ is already the newest version
then usesudo apt-get install --reinstall memtest86+
If all else fails you can get a bootable ISO that you can burn to a CD and boot from. Of course if you are booting UEFI you should be here instead.
I had the same issue, and due to the fact that I have EFI on my laptop the memtest86+ version 4.x shipped by ubuntu won't work, since EFI is only supported by version 5 and newer.
The latest versions are non-GPL and must be downloaded manually from the memtest website(they have ISO and USB images), but at least they are free of charge.
I didn't managed to make this work in 2 days, then I checked Synaptic for grub packages... Seems to be, that the absence of package
grub-imageboot
are the root of the problem.This what I did to add the now latest (non free) memtest86+ to the grub boot menu for UEFI booting. Current memtest version is 8.2. Tools needed: Disk Image Mounter and grub-customizer, the latter is only for convenience :) Files: memtest binary (see below)
save and quit grub-customizer
reboot and enjoy Memtest86
See also this answer on the Unix StackExchange. In short, the Linux Kernel has a simple memory test built in.
Do
grep CONFIG_MEMTEST "/boot/config-$(uname -r)"
to determine if it's enabled or not (it'll be commented out if it's not enabled).Then, edit
/etc/default/grub
and addmemtest
toGRUB_CMDLINE_LINUX_DEFAULT
, runsudo update-grub
, and then reboot.Once it's finished booting up (it'll take longer than normal given it has to also run the memory test), check
/var/log/kern.log
for the result of the test.