How to clean the /boot directory on LINUX Mint? -


after yesterday update of linux mint mate (64bit), started receive warning "full disk space". have 400 mb /boot partition on hard disk.

this screen-shot of /boot files.

enter image description here

this screen-shot of update-log.

enter image description here

the question is: how can clean /boot? files safe delete?

check current kernel version uname -r , make sur current kernel work without problem keep it.

  1. from terminal:

list installed kernel :

dpkg --list | grep linux-image  dpkg --list | grep linux-headers 

remove old kernels through following command:

apt-get purge linux-image.x... apt-get purge linux-headers.x... 
  1. using synaptic package manager

open synaptic , mark old kernel versions removal apply changes

  1. update manager

from update manager view linux kernels , click 'remove' button kernels want remove

  1. purge-old-kernels

you can install purge-old-kernels cli tool through:

sudo apt-get install bikeshed 

if want purge old kernel except latest 2 kernels, run following command:

sudo purge-old-kernels --keep 2 

finally run sudo update-grub or sudo update-grub2

update

on ubuntu 16.04 (and based distros) , later purge-old-kernels included on byobu package:

sudo apt install byobu 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -