Saat meng-upgrade package di Fedora muncul error seperti dibawah ini
[215/215] wireshark-cli-1:4.6.3-1.fc43.x86_64 100% | 2.8 MiB/s | 20.2 MiB | 00m07s -------------------------------------------------------------------------------------------------------- [215/215] Total 100% | 10.5 MiB/s | 1.6 GiB | 02m33s Running transaction Transaction failed: Rpm transaction failed. - installing package kernel-core-6.18.7-200.fc43.x86_64 needs 43MB more space on the /boot filesystem
Cek daftar kernel terinstall
$ sudo dnf list installed kernel # output Updating and loading repositories: Repositories loaded. Installed packages kernel.x86_64 6.18.3-200.fc43 updates kernel.x86_64 6.18.4-200.fc43 updates kernel.x86_64 6.18.5-200.fc43 updates Available packages kernel.x86_64 6.18.7-200.fc43 updates
Cek ukuran partisi /boot
$ lsblk -f | grep '/boot' ├─sda1 ext4 1.0 af5bf93e-d2b3-4602-aad6-a3f9b201f9b1 29.8M 90% /boot
dari hasil diatas, terlihat sisa partisi /boot hanya 29.8 MB
Cek file yang ada di /boot
$ sudo du -sh /boot/* | sort 0 /boot/symvers-6.18.3-200.fc43.x86_64.xz 0 /boot/symvers-6.18.4-200.fc43.x86_64.xz 0 /boot/symvers-6.18.5-200.fc43.x86_64.xz 1.1M /boot/extlinux 11M /boot/System.map-6.18.3-200.fc43.x86_64 11M /boot/System.map-6.18.4-200.fc43.x86_64 11M /boot/System.map-6.18.5-200.fc43.x86_64 11M /boot/vmlinuz-0-rescue-32e1768be27a4775b7c08e167269885f 156K /boot/memtest86+x64.efi 16K /boot/lost+found 18M /boot/vmlinuz-6.18.3-200.fc43.x86_64 18M /boot/vmlinuz-6.18.4-200.fc43.x86_64 18M /boot/vmlinuz-6.18.5-200.fc43.x86_64 2.4M /boot/grub2 288K /boot/config-6.18.3-200.fc43.x86_64 288K /boot/config-6.18.4-200.fc43.x86_64 288K /boot/config-6.18.5-200.fc43.x86_64 28K /boot/loader 45M /boot/efi 46M /boot/initramfs-6.17.10-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.11-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.12-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.5-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.7-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.8-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.18.3-200.fc43.x86_64kdump.img 46M /boot/initramfs-6.18.4-200.fc43.x86_64kdump.img 46M /boot/initramfs-6.18.5-200.fc43.x86_64kdump.img 69M /boot/initramfs-6.17.4-100.fc41.x86_64kdump.img 73M /boot/initramfs-6.18.3-200.fc43.x86_64.img 73M /boot/initramfs-6.18.4-200.fc43.x86_64.img 73M /boot/initramfs-6.18.5-200.fc43.x86_64.img 83M /boot/initramfs-0-rescue-32e1768be27a4775b7c08e167269885f.img
Bandingkan dengan kernel yang terinstall, ada beberapa initramfs (6.17.x) yang masih ada walaupun versi kernelnya telah terhapus
$ sudo du -sh /boot/initramfs-6.17* 46M /boot/initramfs-6.17.10-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.11-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.12-300.fc43.x86_64kdump.img 69M /boot/initramfs-6.17.4-100.fc41.x86_64kdump.img 46M /boot/initramfs-6.17.5-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.7-300.fc43.x86_64kdump.img 46M /boot/initramfs-6.17.8-300.fc43.x86_64kdump.img
pastikan kernel dan initramfs yang dipilih sudah tidak dipakai, lalu hapus dengan perintah
sudo rm -f /boot/initramfs-6.17*
Jalankan kembali perintah lsblk untuk memastikan file yang dihapus menambah space kosong di /boot
$ lsblk -f | grep -w '/boot' ├─sda1 ext4 1.0 af5af93e-d2b3-4602-aad6-a3f9b200f9b0 371.2M 55% /boot