I have a storage server I have been slowly trying to get production ready (long story, not relevant). The box is currently running 10.04 LTS Sever, software raid1. over time I have installed multiple kernels and decided to attempt some cleanup.
After installing the latest kernel I rebooted, paused at the menu long enough to write down the listed kernel entries, and continued to boot to the latest for verification that it would boot just fine. At this point I had 5 kernels listed and installed. I first ran the following code to generate a list of installed kernels which I verified against my hand written list:
I then removed the three oldest kernels (leaving the two newest ones) using the following code:Code:dpkg --get-selections | grep linux-image
After everything was done processing, I rebooted the server to see what the menu looked like. The top part of the GRUB menu correctly showed just the two kernels I had left installed. The bottom portion of the GRUB menu showed all of the kernels associated with (on /dev/sdc1) which I believe is the mirrored drive. I thought I had seen transactions processed during the uninstall that referenced sdc1 so I thought maybe I just needed to update the GRUB menu which I did using the following command:Code:Sudo apt-get purge linux-image-2.6.32-28-server linux-image-2.6.32-39-server linux-image-2.6.32-41-server
But, on reboot the menu is unchanged. So my question is, how do I remove or make sure old kernels are removed from the secondary mirrored drive and how do I get the GRUB menu updated to reflect that change?Code:sudo update-grub