/boot almost full

osada

Active Member
Oct 21, 2019
14
0
41
49
Hi everyone,

PVE 6.4-15 on Debian 10


# df -h

Filesystem Size Used Avail Use% Mounted on
udev 126G 0 126G 0% /dev
tmpfs 26G 9.8M 26G 1% /run
/dev/mapper/alm--srv01--vg-root 2.6T 897G 1.6T 36% /
tmpfs 126G 37M 126G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 126G 0 126G 0% /sys/fs/cgroup
/dev/sda2 473M 430M 19M 96% /boot # here we can see only 4% free space left
/dev/fuse 30M 24K 30M 1% /etc/pve
tmpfs 26G 0 26G 0% /run/user/1000


# df -h /boot/
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 473M 430M 19M 96% /boot


# uname -r
5.4.128-1-pve


# dpkg --list | grep pve-kernel

ii pve-firmware 3.3-2 all Binary firmware code for the pve-kernel
ii pve-kernel-5.4 6.4-19 all Latest Proxmox VE Kernel Image
ii pve-kernel-5.4.106-1-pve 5.4.106-1 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-5.4.119-1-pve 5.4.119-1 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-5.4.124-1-pve 5.4.124-2 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-5.4.128-1-pve 5.4.128-2 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-5.4.195-1-pve 5.4.195-1 amd64 The Proxmox PVE Kernel Image
ii pve-kernel-helper 6.4-19 all Function for various kernel maintenance tasks.


Which kernel versions can I remove now correctly?

Can I remove the next versions?

apt-get remove pve-kernel-5.4.106-1-pve
apt-get remove pve-kernel-5.4.119-1-pve
apt-get remove pve-kernel-5.4.124-1-pve

then run the command:

apt autoremove

Is it correct?

Please give me a piece of advice on how to correctly clean up /boot partition since only 4% free space is left.


According to this article https://gist.github.com/jbgo/5016064 I need to remove old Linux kernel versions. But I can't see any Linux versions, only PVE.

What's wrong am I doing now?


Thanks a lot!
 
Last edited:
I always run apt autoremove after an PVE upgrade. PVE will hold some of the old kernels back but that is a good thing.
 
I always run apt autoremove after an PVE upgrade. PVE will hold some of the old kernels back but that is a good thing.


Yes, I did the same thing and after running this command almost 50% was cleaned in /boot partition.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!