Hi! I just ran dnf update and once it was done I got a notification saying that only 37 MB remain in the boot partition, which seems… worrying? It’s fine now, but I’m concerned about consequences in future updates. I think I allocated 1 GB to my boot partition, which I thought would be more than enough given I saw people saying that 500 MB was usually enough.
I have 5 kernels my boot partition and Combined, everything consumes 601MB. I have a 1GB boot partition.
Post the output of sudo du -h /boot and sudo tree -f /boot and we’ll see what you have, how large it is and where all the space is going.
Are you using the nvidia rpmfusion drivers and if so, do you have any need to ever use the nouveau drivers? You can save a great deal of space by ditching it.
Ah, damn. I installed as a partition (I still need Windows for a couple of things) and the default settings didn’t work for some reason so I had to manually create the partitions.
Looks like everyhting is quite normal size-wise. You don’t have any ancient cruft lying around so I assume the vast majority of the space is consumed with the rescue kernel, which I never bother with and the fact that your kernels are quite large due to including the nouveau drivers.
You have 2 options.
Increase the size of the boot partition from 1 GB to 2GB, which is the new default.
Remove the nouveau drivers, assuming you don’t require them, by omitting them from dracut.
If you are runing the Nvidia drivers, not nouveau, you’ll notice that each kernel (vmlinuz-{version} takes about 18MB and the initramfs-{same_version} takes about 159MB) and if you are also installing the rescue kernel, it takes even more space due to including all of the common drivers needed on most systems (pretty sizable).
I have been putting up with this same thing for a while. What I do is limit the number of installed kernels to 3 (default on most systems) and removing the rescue kernel, which is generally useless unless the normal kernels are booting with issues or you have to move the boot drive to another machine that has different HW installed. This usually leaves me with about 336MB in /boot. I was considering setting the number of kernels to keep to 2 but, haven’t really considered the need to be urgent … for now
Fair enough - it’s quite straightforward to set up a custom dracut configuration to omit drivers you don’t need. Then again, it’s also relatively easy to resize a partition too.
… yup, the default… the problem with just having 37MB of free space in /boot will come when there is a future kernel update. There will not be enough free space to install it and then things go sideways… so, the “easy” fix is to just remove the rescue kernel after each kernel update AFTER a successful reboot using the new kernel. To remove the rescue kernel each time, you sudo rm -f /boot/*rescue*. ( I’m pretty lazy so, this is what I do :-))
Yes, it is safe
Is there a reason to keep previous kernels that are not rescue? Again, not an expert here. But if I’m running the latest kernel (7.1.6), what do I need 7.1.5 and 6.19.10 for?
… it is “generally” a good idea to keep at least 1 previous known good working kernel just in case a new kernel update blows something up … you have a way to recover …
If there’s an issue with 7.1.6 (as there currently is for AMD 9070 users it seems, for example) then you can boot with the previous kernel and get around the regression.
The rescue kernel is often utterly useless, as by the time you need the thing, it’s so old that it doesn’t work. This is why I blow Rescue away and keep (admittedly, probably too many) five previous kernels.