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.
this screen-shot of update-log.
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.
- 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...
- using synaptic package manager
open synaptic , mark old kernel versions removal apply changes
- update manager
from update manager view linux kernels , click 'remove' button kernels want remove
- 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
Post a Comment