Grub 菜单中缺少 Memtest86+ 选项

Mar*_*arc 6 grub2 memtest 13.04

我在这里遇到了与 @coversnail 相同的问题:如何将 Memtest86+ 选项添加回 Grub 菜单?

问题是:我只能在较旧的内核版本和 GRUB 中的实际 Ubuntu 版本之间进行选择。没有其他选择。

我想跑memtest86+。它安装在 中/etc/grub.d/,但不在 GRUB 本身中。我有点困惑。

Mit*_*tch 5

尝试 Grub 定制器。Grub Customizer 是 GRUB2 的图形设置管理器。

要安装,只需按键盘上的Ctrl+ Alt+T打开终端。打开后,运行以下命令:

sudo add-apt-repository ppa:adabbas/1stppa
sudo apt-get update
sudo apt-get install grub-customizer
Run Code Online (Sandbox Code Playgroud)

或者只是查看他们的网站

要添加 memtest 条目,请参见下面的图像和文本。

在此输入图像描述 在此输入图像描述 在此输入图像描述

第一次进入

insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b4d22d74-d1db-44c3-a834-e879263662f5
else
  search --no-floppy --fs-uuid --set=root b4d22d74-d1db-44c3-a834-e879263662f5
fi
linux16 /boot/memtest86+.bin
Run Code Online (Sandbox Code Playgroud)

第二项

insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b4d22d74-d1db-44c3-a834-e879263662f5
else
  search --no-floppy --fs-uuid --set=root b4d22d74-d1db-44c3-a834-e879263662f5
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
Run Code Online (Sandbox Code Playgroud)

注意:现在上述信息是正确的,但请记住 memtest 在 grub2-uefi 中不起作用。这是因为 UEFI 不支持启动 16 位二进制文​​件,而 memtest 是 16 位二进制文​​件。这也是 grub2 uefi 中没有 linux16 命令/模块的原因。

另外,您可能想查看memtest86+ 在 efi 系统上失败