Clean unused kernels when boot partition is full

Posted on 03.10.17   dpkg Linux Ubuntu

My /boot partition keeps getting full so I must regularly clean it.

Quick instructions:

  • Show current linux kernel used
    uname -r
  • Show all installed kernels
    dpkg --list | grep linux-image
  • Remove old kernels which are no longer in use
    sudo apt-get remove linux-image-xxxx
    (replace xxxx) with the unused version numbers
  • For good measure, clean unused packages
    sudo apt-get autoremove
  • Optional: if the GRUB boot list is full of old kernel entries, update it by running
    sudo update-grub

Check out these articles for more info:

More on ITDB

Turn off CTRL + ALT + DEL at login prompt Windows 10


Fix twitchy/wobbling touchpad for Ubuntu based distributions


How to debug a non starting application with ProcMon


Create a cmd alias/shortcut for issuing commands on remote computer


Managing WiFi profiles in Windows 10