Ubuntu Reminder — Purge Old Kernels
Written on July 23, 2011
Don’t forget to clean up your old kernels once in a while — they actually chew up quite a bit of space. Its easy, simply complete the following (uname -r will report the current, purge the rest):
sudo bash cd /boot uname -r sudo apt-get remove --purge 2.6.2x-xx-*
Where x refers to old version numbers. Also, if you’re not seeing your latest kernels boot or they’re not showing up in your grub menu during boot, ensure that /etc/kernel-img.conf ends with the following:
postinst_hook = update-grub postrm_hook = update-grub
Still not seeing your new kernel? Remove your kernel-img and regenerate it with update-grub.
Enjoy…
Filed in: Geek Stuff.