Hi, My /boot partition is 512MB, which in F39 was more than ample for 5 kernels and a rescue image, but in F40 that partition is now to small for a new rescue image to be created when a new kernel is installed. The rescue image in F40 seems to be around 102MB in size which is more that double the size of any kernel, I don't know what size it was in F39. I've tried dropping the number of kernels retained to 4, but that still produces out of space conditions on new kernel installs with the rescue image. Is F40 now rebuilding the rescue image where F39 didn't? If I drop back to retaining only 3 kernels will that provide enough free space, currently /boot is using 360.2MB with 88MB free of the 512MB partition? Is F40 really that much bigger the F39 that the /boot partition size, which I have always used across multiple Fedora versions, is no longer big enough to handle what F40 does relative to kernels? I have my /boot partition on an SSD. I could run gparted to resize the boot partition by resizing the Windows drive C partition which is on the disk before it (a 512MB /boot partition for Ubuntu is immediately after the Fedora partition), but I don't really want to change the size of the Windows partition?
regards, Steve
On 6/29/24 6:36 PM, Stephen Morris wrote:
Hi, My /boot partition is 512MB, which in F39 was more than ample for 5 kernels and a rescue image, but in F40 that partition is now to small for a new rescue image to be created when a new kernel is installed. The rescue image in F40 seems to be around 102MB in size which is more that double the size of any kernel, I don't know what size it was in F39.
That is normal. It contains all the kernel modules, so it is much bigger. And it's the initramfs, not kernel. The kernel is the same size.
I've tried dropping the number of kernels retained to 4, but that still produces out of space conditions on new kernel installs with the rescue image. Is F40 now rebuilding the rescue image where F39 didn't?
The rescue kernel is always rebuilt if you delete the old one. There's a setting somewhere to stop that.
If I drop back to retaining only 3 kernels will that provide enough free space, currently /boot is using 360.2MB with 88MB free of the 512MB partition?
My /boot is about 350MB with 3 kernels and the rescue.
Is F40 really that much bigger the F39 that the /boot partition size, which I have always used across multiple Fedora versions, is no longer big enough to handle what F40 does relative to kernels?
My latest F40 initramfs is actually smaller than the previous one and the F39 one.
I have my /boot partition on an SSD. I could run gparted to resize the boot partition by resizing the Windows drive C partition which is on the disk before it (a 512MB /boot partition for Ubuntu is immediately after the Fedora partition), but I don't really want to change the size of the Windows partition?
512MB is enough for the default 3 kernels. Why do you need more than that?
On Sat, Jun 29, 2024 at 10:36 PM Stephen Morris samorris@netspace.net.au wrote:
Hi, My /boot partition is 512MB, which in F39 was more than ample for 5 kernels and a rescue image, but in F40 that partition is now to small for a new rescue image to be created when a new kernel is installed. The rescue image in F40 seems to be around 102MB in size which is more that double the size of any kernel, I don't know what size it was in F39. I've tried dropping the number of kernels retained to 4, but that still produces out of space conditions on new kernel installs with the rescue image. Is F40 now rebuilding the rescue image where F39 didn't? If I drop back to retaining only 3 kernels will that provide enough free space, currently /boot is using 360.2MB with 88MB free of the 512MB partition? Is F40 really that much bigger the F39 that the /boot partition size, which I have always used across multiple Fedora versions, is no longer big enough to handle what F40 does relative to kernels? I have my /boot partition on an SSD. I could run gparted to resize the boot partition by resizing the Windows drive C partition which is on the disk before it (a 512MB /boot partition for Ubuntu is immediately after the Fedora partition), but I don't really want to change the size of the Windows partition?
You could create a new partition somewhere else, but others have found old cruft in /boot, so try comparing with what I have (on dual boot with Windows 11 and F40) below.
% sudo du -sm /boot 439 /boot % sudo du -sm /boot/* 1 /boot/config-6.9.4-200.fc40.x86_64 1 /boot/confg-6.9.5-200.fc40.x86_64 1 /boot/config-6.9.6-200.fc40.x86_64 100 /boot/efi 3 /boot/grub2 162 /boot/initramfs-0-rescue-0a5117a885584ae1b650c3c575315b73.img 29 /boot/initramfs-6.9.4-200.fc40.x86_64.img 29 /boot/initramfs-6.9.5-200.fc40.x86_64.img 29 /boot/initramfs-6.9.6-200.fc40.x86_64.img 1 /boot/loader 1 /boot/lost+found 1 /boot/memtest86+x64.efi 1 /boot/symvers-6.9.4-200.fc40.x86_64.xz 1 /boot/symvers-6.9.5-200.fc40.x86_64.xz 1 /boot/symvers-6.9.6-200.fc40.x86_64.xz 9 /boot/System.map-6.9.4-200.fc40.x86_64 9 /boot/System.map-6.9.5-200.fc40.x86_64 9 /boot/System.map-6.9.6-200.fc40.x86_64 16 /boot/vmlinuz-0-rescue-0a5117a885584ae1b650c3c575315b73 16 /boot/vmlinuz-6.9.4-200.fc40.x86_64 16 /boot/vmlinuz-6.9.5-200.fc40.x86_64 16 /boot/vmlinuz-6.9.6-200.fc40.x86_64
On 30/06/2024 03:36, Stephen Morris wrote:
I've tried dropping the number of kernels retained to 4, but that still produces out of space conditions on new kernel installs with the rescue image.
You can also consider disabling the rescue kernel generation. I have never had any use for it. I think the only time you would need to use the rescue kernel is when some fundamental hardware change (like different mainboard-CPU-combo) requires different kernel modules to boot than what is included in your normal initrd. In case this situation happens, you can enable the rescue kernel generation again. Ideally before the hardware change (if this is a planned operation), but it should also be possible by mounting and chrooting from a live system (if your old system just died). Disabling the rescue kernel should be as easy as uninstalling the package dracut-config-rescue.
Is F40 really that much bigger the F39 that the /boot partition size, which I have always used across multiple Fedora versions, is no longer big enough to handle what F40 does relative to kernels?
Do you really need the separate /boot partition? I have not had separate /boot partitions for at least a decade now. Especially with multiple parallel installations, it is much simpler to not have / and /boot on different partitions. And that way you waste less space and you can't get the size of /boot wrong. You only need a separate /boot if your / can not be read by grub directly. Where is your / located and what FS do you use for it?