Thursday, January 3, 2013

0 Remove Old Linux Kernel, Clean Up Boot Menu

Each time when Ubuntu updates to a new Linux kernel, the old one is left behind and the boot menu gets longer. If your new Linux kernel works well, it's safe to remove the old one and clean up the boot menu. Do take these steps carefully as incorrect removal of the items can make your system unbootable.
  1. Go to Applications (or Main Menu) > Accessories > Terminal.
  2. Enter uname -r to print the Linux kernel version you're running (e.g. 2.6.32-22-generic).
  3. Go to System > Administration > Synaptic Package Manager.
  4. Click Status from the left panel and select Installed.
  5. Enter the main version number (e.g. 2.6.32) in the Search box.
  6. Right-click the items with smaller sub version number (e.g. 2.6.32-21) for older Linux kernel and select Mark for Complete Removal. The files for the older version to remove may include linux-headers-2.6.32-21, linux-headers-2.6.32-21-generic and linux-image-2.6.32-21-generic.
  7. Click Apply from the top panel.
  8. Click Apply again from the pop-up window to confirm removal of the marked packages. The boot menu will be cleaned up automatically after the removal is confirmed.
   Try also Grub Customizer which can be used to hide items from the boot menu. Just install the program by entering the following in the Terminal, then run the program, untick the items you want to hide and click 'Save'.
  1. sudo add-apt-repository ppa:danielrichter2007/grub-customizer
  2. sudo apt-get update
  3. sudo apt-get install grub-customizer
 

Kadublicek Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates