Sunday, March 27, 2011

Grub2 tips & tricks

How to remove old kernels?

    Use the following command to search for installed kernels
       sudo aptitude search linux-image | grep -E "^i"
    Above command will provide the list of installed kernels. Unwanted/old kernels can be removed with the following command. 
       sudo aptitude purge <kernel name from the above list>
    Finally the boot menu can be updated with the following command
       sudo update-grub

    No comments:

    Post a Comment