Skip to content

Instantly share code, notes, and snippets.

@runozo
Last active October 9, 2019 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runozo/04441d43ba5f66c7a1fb5becbf6884e1 to your computer and use it in GitHub Desktop.
Save runozo/04441d43ba5f66c7a1fb5becbf6884e1 to your computer and use it in GitHub Desktop.
Safely clean up ubuntu /boot partition
uname -r
sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
sudo apt purge linux-image-3.19.0-25-generic
sudo apt autoremove -y
sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment