Friday, March 12, 2010

Grub 2 Cleanup the menu

After few updates on the grub menu keeps building in size. Also like me if you have a small /boot partition, the partition fills up. So, to clean them up and to clean the menu follow the lines below

Delete the unwanted old files in /boot

For example on my ubuntu:

rm abi-2.6.31-19-generic
rm initrd.img-2.6.31-19-generic
rm vmcoreinfo-2.6.31-19-generic
rm config-2.6.31-19-generic
rm System.map-2.6.31-19-generic
rm vmlinuz-2.6.31-19-generic


Then run the update-grub command as root


update-grub


Thats it! Next time you boot you dont see all the old releases on the grub boot menu

No comments: