Boot partition full of old kernels

I started getting an error message every time I booted into Ubuntu.

“‘The volume “boot” has only ….. bytes disk space remaining.”.  

This is caused by old Linux kernels filling up the boot partition on the hard drive.

Most users don’t need to keep old kernels and therefore you can remove them to free up some space.

This is how i cleared it up.

1) First, you need to find the current kernel that you are was using – so that you don’t remove it!  Open a terminal and type:

#uname -a

output will look like this –

#{host} 4.2.0-41-generic #48-Ubuntu SMP Fri Jun 24 11:28:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

2) Next change to the boot root and list the files

#cd /boot

#ls

you will see a list of all the kernels installed –

3) To remove the ones you are not using –

#sudo apt-get remove linux-image-4.2.0-38-generic

This will clear up some space.

Leave a Reply

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.