[SOLVED] Cleanning /boot on PVE

PRK

New Member
Jan 28, 2019
2
0
1
34
Hello,

I'm new on this forum.

I just have a quick question. After many updates on PVE my /boot increasing at +90% used space with many files likes this :

root@xxxxx:/boot# ls -lia
total 150796
2 drwxr-xr-x 5 root root 3072 Jan 9 07:59 .
2 drwxr-xr-x 22 root root 4096 Jan 3 2018 ..
31 -rw-r--r-- 1 root root 216647 Feb 25 2019 config-4.15.18-11-pve
13 -rw-r--r-- 1 root root 217157 Dec 5 10:14 config-4.15.18-24-pve
25 -rw-r--r-- 1 root root 216668 Nov 15 2018 config-4.15.18-9-pve
32257 drwxr-xr-x 5 root root 1024 Jan 9 07:59 grub
34 -rw-r--r-- 1 root root 34483010 Mar 2 2019 initrd.img-4.15.18-11-pve
24 -rw-r--r-- 1 root root 34844528 Jan 9 07:59 initrd.img-4.15.18-24-pve
30 -rw-r--r-- 1 root root 34459928 Dec 5 2018 initrd.img-4.15.18-9-pve
11 drwx------ 2 root root 12288 Jan 3 2018 lost+found
17 drwxr-xr-x 2 root root 1024 Jan 9 07:59 pve
40 -rw-r--r-- 1 root root 4078636 Jun 27 2018 System.map-4.15.17-3-pve
26 -rw-r--r-- 1 root root 4089343 Feb 25 2019 System.map-4.15.18-11-pve
22 -rw-r--r-- 1 root root 4079489 Aug 13 2018 System.map-4.15.18-1-pve
12 -rw-r--r-- 1 root root 4108075 Dec 5 10:14 System.map-4.15.18-24-pve
19 -rw-r--r-- 1 root root 4083129 Aug 30 2018 System.map-4.15.18-4-pve
18 -rw-r--r-- 1 root root 4087041 Nov 15 2018 System.map-4.15.18-9-pve
32 -rw-r--r-- 1 root root 8447856 Feb 25 2019 vmlinuz-4.15.18-11-pve
14 -rw-r--r-- 1 root root 8533792 Dec 5 10:14 vmlinuz-4.15.18-24-pve
27 -rw-r--r-- 1 root root 8439664 Nov 15 2018 vmlinuz-4.15.18-9-pve


I know that i have to clean it manually but i would like to ensure that for each cleaning i can delete :

  • config-xxxx files
  • initrd.img-xxxx files
  • System.map-xxxx files (i wonder about this kind of files)
  • vmlinuz-xxxx files
for each no more used version. (i ran previously a uname -r to know which is the version used by the system).

Thanks
 
i think

apt-get remove pve-kernel-versiondukernelwewanttodelete
 

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!