How can I edit my Grub bootloader entries (Hide, Rename, Remove)?
The blog post GRUB2 revisited will provide you with a blow-by-blow set of instructions on how to manually edit GRUB2's configuration files. If you check the other postings in the series (by filtering on Category = GRUB) you will also find information on removing old kernels and what happens when a new kernel arrives as an update. The postings include references to a number of related web sites.
Use grub-customizer: https://launchpad.net/grub-customizer
sudo apt install grub-customizer
This is a GUI that will allow you to hide unwanted grub entries.
Rather than edit the grub file directly, you should clean up the kernels you don't want.
Start with this:
dpkg -l | grep linux-image
The update-grub
script just makes entries for everything it finds in /boot
, as far as I'm aware, so removing old linux-image (and linux-headers) packages via apt-get remove
will clean up /boot and therefore clean up your grub config.
This is the "proper" way to do it and hence will require no special action when newer kernels are released in the future, you'll just have to clean up again at some point probably :)