2

Possible Duplicate:
change the boot menu - GRUB

I regularly update my ubuntu (10.04), and new minor versions keep accumulating on the GRUB screen. Right now I have 5 different versions listed on the GRUB, even though I always select the latest version to work with.

Am I supposed to do anything to get rid of the old version references? Do these old versions affect disk space/performance?

artsince
  • 151
  • 4

2 Answers2

2

Go to System -> Administration -> Synaptic. Search for packages whose name begins linux-headers- and linux-image-. Mark all but the latest version of each for uninstallation.

Old kernels will have no effect on performance, but sure, like all old packages they will take up disc space. After uninstalling, you could also clear out /var/cache/apt/archives/*.deb.

bobince
  • 10,096
1

Remember that the Linux kernel is monolithic, so many drivers are compiled into it when it is built, though now, there are many modules available that can be loaded at runtime. Given this information, it is recommended that you usually keep at least the last kernel version on your machine, incase the new version has drivers that conflict with your current hardware. As bobince mentioned, you can simply remove the versions of the kernel you do not want. Since hard disk space is in abundance (usually) in modern machines, I would recommend simply removing the entries from the bootloader menu configutation rather than uninstalling the kernels. You can do this by opening the Terminal and typing "gksudo /boot/grub/menu.lst", finding the lines for the old kernel versions, and either deleting them, or placing a # (comment marker) before the Title line.