Remove unused kernels
Remove all kernels but the latest For regular Debian/Ubuntu, type: for kernel in $(cd /boot; ls -1cr vmlinuz-* | head -n -1 | cut -f2,3 -d’-‘); do sudo apt-get remove -y $(dpkg -l | egrep “^ii linux-image-$kernel” | awk ‘{print $2}’); done If you are using ProxMox, type: for kernel in $(cd /boot; ls -1cr … [Read more…]