Clean Up the New Ubuntu Grub2 Boot Menu

Abstract:

you must change the files located in /etc/grub.d.

Change mod to  non-executable:

sudo chmod –x 20_memtest86+

Note: If you don’t run update-grub, the boot menu options will not change! So run upgrade-grub:

sudo update-grub

sshot-1

Remove Any Option by Editing /etc/grub.d

If you need more fine-grained control, or want to remove entries that are not kernel versions, you must change the files located in /etc/grub.d.

/etc/grub.d contains files that hold the menu entries that used to be contained in /boot/grub/menu.lst. If you want to add new boot menu entries, you would create a new file in this folder, making sure to mark it as executable.

If you want to remove boot menu entries, as we do, you would edit files in this folder.

If we wanted to remove all of the memtest86+ entries, we could just make the 20_memtest86+ file non-executable, with the terminal command

sudo chmod –x 20_memtest86+

Followed by the terminal command

sudo update-grub

Note that memtest86+ was not found by update-grub because it will only consider executable files.

Note: If you don’t run update-grub, the boot menu options will not change!

Now, the next time you boot up, that strange entry will be gone, and you’re left with a simple and clean boot menu.

Advertisements

About zephyr9000

Happy sailer
This entry was posted in Ubuntu Configuration and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s