The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 2,753β€…    Votes:  2β€…
Tags: boot   partitioning   dependencies  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1033109
Title: How do I free up space on /boot?
ID: /2018/05/07/How-do-I-free-up-space-on-_boot_
Created: May 7, 2018
Upload: December 22, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Assuming the two kernels you will want to keep are:

linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic
linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic

So delete the others out of /boot to free space:

sudo rm /boot/*4.10.0-28*
sudo rm /boot/*4.10.0-37*
sudo rm /boot/*4.4.0-103*
sudo rm /boot/*4.4.0-104*
sudo rm /boot/*4.4.0-98*
sudo rm /boot/*4.10.0-28*
sudo rm /boot/*4.10.0-38*
sudo rm /boot/*4.4.0-103*
sudo rm /boot/*4.4.0-98*

This will save you about 500 MB in /boot but doesn’t remove the kernel packages fully. To do that use:

sudo apt autoremove
⇧ How to scale desktop icons in 18.04 Signature-based rootkit scanner?  β‡©