Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456308 - grub2 won't launch memtest86 and memtest86+ if / and /boot are separated partitions and grub2 graphical terminal is enabled
Summary: grub2 won't launch memtest86 and memtest86+ if / and /boot are separated part...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2013-02-09 13:19 UTC by Nikita Kozlov
Modified: 2014-08-31 03:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

39_memtest86, (39_memtest86,870 bytes, text/plain)
2013-02-09 13:21 UTC, Nikita Kozlov

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Kozlov 2013-02-09 13:19:56 UTC

When using grub2 in graphical terminal mode, grub2 set is root device to /usr or / (depending on if you have splitted it in 2 partitions) for loading some stuff.

The current grub2 scripts for memtest86(+) (installed in /etc/grubd.d/ when emerging memtest86(+)) doesn't change the root device.

Just runnning linux16 /boot/memtest86/memtest86 won't work because we are on the wrong device, it's failing with a "File not found" error.

Doing manually a `set root=my_device_with_boot_partition` before launching memtest86 with linux16 is solving my issue.

I'm suggesting to replace the current 39_memtest86 script with the attached one (taken from

Reproducible: Always
Comment 1 Nikita Kozlov 2013-02-09 13:21:13 UTC
Created attachment 338392 [details]
Comment 2 Nikita Kozlov 2013-02-12 23:13:08 UTC
Note that the 4.1 is out, same Makefile as the 4.0b, just need to add -src in the download path.

In my case, the 4.0b had a broken percentage bar but not the 4.1 .
Comment 3 Mike Gilbert gentoo-dev 2013-02-12 23:53:31 UTC
/etc/grub.d/39_memtest86 is owned by the sys-apps/memtest86 package, not sys-boot/grub, so I'm re-assigning.

I'll try to have a look at it this week anyway.
Comment 4 jannis 2013-05-12 19:40:25 UTC
I can confirm that memtest86plus does not load (file not found)
Comment 5 Adam Dudek 2014-02-09 22:19:14 UTC
I can comfirm a similar issue after migrating from grub legacy.  

Another solution to the problem is to manually edit /etc/grub.d/39_memtest86+ and change /boot/memetest86plus/memtest to /memtest86plus/memtest.  From this point forward any subsequent changes made with grub2-mkconfig will correctly add the path for memtest86+ to grub.cfg.
Comment 6 Arthur D. 2014-04-07 00:50:23 UTC
Confirming this bug.
BTW, there's memtest86+ 5.01 out.
Comment 7 Balint SZENTE 2014-08-28 09:45:37 UTC
Confirming this bug.

I fixed it with a /boot/boot -> . symlink. But the best would be to fix the 39_memtest86+ script as proposed by Nikita.
Comment 8 Mike Gilbert gentoo-dev 2014-08-28 13:42:58 UTC
I don't think we need any more confirmations. We just need a developer to fix it.
Comment 9 Mike Gilbert gentoo-dev 2014-08-29 15:44:26 UTC
I will try to get this committed this weekend.
Comment 10 Mike Gilbert gentoo-dev 2014-08-31 03:19:43 UTC
Should be fixed, thanks for the report.

+*memtest86-4.3.3-r2 (31 Aug 2014)
+  31 Aug 2014; Mike Gilbert <> +files/39_memtest86,
+  +memtest86-4.3.3-r2.ebuild:
+  Add a more robust grub config generator, bug 456308.

+*memtest86+-4.20-r2 (31 Aug 2014)
+  31 Aug 2014; Mike Gilbert <> +files/39_memtest86+,
+  +memtest86+-4.20-r2.ebuild:
+  Add a more robust grub config generator, bug 456308.