I first installed Windows 8 and then Ubuntu. There was no Windows entry on the boot screen, so I did grub-update and now it is present, but I also have 2 additional memtest entries in the list.
Is there a way to remove those from the list and have only Windows and Ubuntu there?
Asked
Active
Viewed 2.4k times
6
cl-netbox
- 31,491
George Irimiciuc
- 163
4 Answers
7
If it's just the memtest options you don't want, you can simply remove that package:
sudo apt-get remove memtest86+
You can also control the generation of the submenus (the "Advanced options for ..." entries), and the recovery options by editing /etc/default/grub. From the grub info documentation:
'GRUB_DISABLE_RECOVERY'
If this option is set to 'true', disable the generation of recovery
mode menu entries.
and
'GRUB_DISABLE_SUBMENU'
Normally, 'grub-mkconfig' will generate top level menu entry for
the kernel with highest version number and put all other found
kernels or alternative menu entries for recovery mode in submenu.
For entries returned by 'os-prober' first entry will be put on top
level and all others in submenu. If this option is set to 'y',
flat menu with all entries on top level will be generated instead.
For more details on the grub configuration, check out:
info -f grub -n 'Simple configuration'
Jeremy Kerr
- 27,829
4
I know the post is old, but it still comes up in searches.
sudo chmod -x /etc/grub.d/20_memtest86+
sudo update-grub
This will hide it from grub by setting execution bit to off. Enable it back by replacing "-" with "+".
Dzmitry
- 41