David J Murray
~ Learn and Do - Excel and Share ~

Old Kernels in AWS

Mar 25, 2016

I have found that on the minimal virtual machine that you can have on AWS (includes the free setup) has a small /boot size and this can quickly become full as new kernels are installed, especially when they are automatically installed.

When you run out of space, the install will fail, and this will confuse the apt-get autoremove command so that old kernels cannot be removed (it also affects other installs/removals also).

After a good hunt around, I found the best instructions to fix this problem are here: https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels https://help.ubuntu.com/community/RemoveOldKernels

It is very important to not delete your existing running kernel, hence the uname -r command at the beginning. Write this release number down and regularly check it before you start deleting each kernel.

And also, the auto complete double TAB TAB works well in checking the release number for each Linux and header packages.

 

 

About the Author

<a href="https://davidjmurray.org/author/davidjmurray/" target="_self">djm</a>

djm

I have been in the computer/IT industry for over 35 years. After spending half a life-time in highly proprietary database environments, I have succumbed to the WordPress Eco-system and I'm well down the chasm. I am specializing in AWS hosting, Wordpress CMS, Elegant Themes, in particular Divi and Extra themes.

1 Comment

  1. Sam

    Updated broken links.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest

Share This