Last night our system ran out of inodes. Luckily I manage to delete few old kernels using the following steps
sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v \uname -r | xargs sudo apt-get purge $1sudo apt-get autoremovesudo update-grub
I manage to get back some inodes but still more than 85 inodes are occupied.
Using ncdu I found out that the /usr/src/linux-headers-3.16.0.[69|71|73|..] directories still contain a few old kernel headers.
I'm not sure if they are needed or not given my current Linux version is 3.19.0-80-generic.
So I have two questions here:
Is it safe to delete them?
If so how to delete them?