It has come to the point where I have been given a Linux laptop and the /boot
partition is really small
and only holds 2 kernels. Each time I try to upgrade it stops beacuse the /boot
partition runs out of space.
Here are some commads I use to free up some space.
# check what kernel version I am currently using
uname -a
# list the kernels currently installed
sudo dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
# delete the kernels I am not using
sudo apt purge <list of kernels I don't want>
Thanks to this SO post that helped me