Clean up the GRUB2 menu.

Darkness
  12 years ago
  10

Clean up the GRUB2 menu - this gets rid of menu entries that become unnecessary following updates to the kernel.

A. Identify the old kernel entries in GRUB2:

  1. Boot the machine and identify what the oldest entries are in the GRUB2 menu (you may need to hold the [SHIFT] button down while booting to get the menu to show).
  2. So, for example, if you have entries for 3.2.0-2-amd64 and 3.2.0-3-amd64, then 3.2.0-2-amd64 is the older entry and can be removed.
  3. Boot into the operating system (by default it will boot into the latest kernel (in the above example, 3.2.0-3-amd64).
  4. Open Synpatic.
  5. In the search box type: 3.2.0-2-amd64.
  6. The results should show an 'image' and a 'header' entry containing 3.2.0-2amd64.
  7. Right-click both the identified entries (image and header) and select 'Mark for Complete Removal'.
  8. Apply the changes.
  9. Wait for the changes to take places.
  10. Close Synpatic.
  11. Reboot.
  12. GRUB2 should now only have the latest kernel (in the above example, 3.2.0-3-amd64).

yes

I hope this has helped you.

smiley

Comments
jahid_0903014 10 years ago

good tutorial


jrgsm70 12 years ago

I will test this tutorial. Before this reading, I used to change the entries in Grub modifying the following file: /boot/grub/grub.cfg but I never uninstalled the entries. Thank you for this article...