Clean up that full ubuntu /boot drive

Without any kind of monitoring or alerting enabled, you may run into your /boot drive becoming full, and resulting in errors such as:

[crayon-5e8f543a757c2755962755/] When your disk is at 100% full, it’s difficult to take the safe route and remove old kernels with apt-get. So the blunt way of fixing this is with rm -f.

The following 1 liner can help achieve this.
[crayon-5e8f543a757cc506145423/] This command was derived from this gist:  that does a great job reviewing the different checks that should be done, and how to achieve the same manually.


Leave a Reply

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