Re: /boot too small

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/05/2024 08:54, Michal Schorm wrote:
Hi,

for an immediate workaround, remove the oldest kernel.
Here are the steps together with an example output:


1) List installed kernel-core packages:
# rpm -qa | grep kernel-core | sort
kernel-core-6.8.4-200.fc39.x86_64
kernel-core-6.8.6-200.fc39.x86_64
kernel-core-6.8.7-200.fc39.x86_64


2) Remove the oldest one
# dnf remove <oldest of the packages above>
Dependencies resolved.
====================================================================
  Package                Arch     Version           Repository  Size
====================================================================
Removing:
  kernel-core            x86_64   6.8.4-200.fc39    @updates    66 M
Removing dependent packages:
  kernel                 x86_64   6.8.4-200.fc39    @updates     0
  kernel-modules         x86_64   6.8.4-200.fc39    @updates    58 M
  kernel-modules-core    x86_64   6.8.4-200.fc39    @updates    32 M
  kernel-modules-extra   x86_64   6.8.4-200.fc39    @updates   2.4 M
Transaction Summary
====================================================================
Remove  5 Packages
Freed space: 159 M


3) profit
you have extra ~160 MB now.
System update should have enough space to install the new kernel now.


4)
Once finished, I'd recommend you to try to enlarge your /boot/
partition a bit (e.g. 100 - 500 MB ?) to avoid this problem
permanently.


Michal Schorm
Software Engineer
Core Services - Databases Team
Red Hat

I had the same problem a few days ago and did the same.  I
posted this reply but HyperKitty doesn't find it.  So..

But I installed f40 a few days ago, and today "dnf upgrade" installed kernel-6.8.8 but *not* vmlinuz-6.8.8, so booting failed.

My /boot partition is 450 GB, and I now have two bootable f40 kernels and a recent rescue kernel. There's no room for another. You probably don't have a "recovery" option.

I now have "installonly_limit=2" in /etc/dnf/dnf.conf, but a new "dnf upgrade" after that said there was "nothing to do". What did work was ( while running 6.8.7):

sudo dnf remove kernel-core-6.8.8
sudo dnf upgrade

and then when "systemctl list-jobs" was clear, "sudo systemctl reboot"

I, too, would prefer to have a bigger /boot, but this info might help.

John P


--

On Tue, May 14, 2024 at 9:44 AM Patrick Dupre via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello,

During an update, I get

Error Summary
-------------
Disk Requirements:
    At least 7MB more space needed on the /boot filesystem.


How can I fix it without currently resizing /boot?
Thank

drwx------. 5 root root      4096 May 14 08:36 grub2
lrwxrwxrwx. 1 root root        45 Mar  7 13:24 symvers-6.7.7-100.fc38.x86_64.xz -> /lib
/modules/6.7.7-100.fc38.x86_64/symvers.xz
-rw-------. 1 root root  81850041 Mar  7 13:24 initramfs-6.7.7-100.fc38.x86_64.img
-rw-r--r--. 1 root root    269378 Mar  1 01:00 config-6.7.7-100.fc38.x86_64
-rw-r--r--. 1 root root   8851783 Mar  1 01:00 System.map-6.7.7-100.fc38.x86_64
-rwxr-xr-x. 1 root root  14794568 Mar  1 01:00 vmlinuz-6.7.7-100.fc38.x86_64
lrwxrwxrwx. 1 root root        45 Feb 13 17:38 symvers-6.7.4-100.fc38.x86_64.xz -> /lib
/modules/6.7.4-100.fc38.x86_64/symvers.xz
-rw-------. 1 root root  81905180 Feb 13 17:37 initramfs-6.7.4-100.fc38.x86_64.img
-rw-r--r--. 1 root root    269327 Feb  5 01:00 config-6.7.4-100.fc38.x86_64
-rw-r--r--. 1 root root   8850577 Feb  5 01:00 System.map-6.7.4-100.fc38.x86_64
-rwxr-xr-x. 1 root root  14806856 Feb  5 01:00 vmlinuz-6.7.4-100.fc38.x86_64
lrwxrwxrwx. 1 root root        46 Jan 25 13:39 symvers-6.6.13-100.fc38.x86_64.xz -> /li
b/modules/6.6.13-100.fc38.x86_64/symvers.xz
-rw-------. 1 root root  42503616 Jan 25 13:39 initramfs-6.6.13-100.fc38.x86_64.img
-rw-r--r--. 1 root root    266375 Jan 20 01:00 config-6.6.13-100.fc38.x86_64
-rw-------. 1 root root   8786049 Jan 20 01:00 System.map-6.6.13-100.fc38.x86_64
-rwxr-xr-x. 1 root root  14676712 Jan 20 01:00 vmlinuz-6.6.13-100.fc38.x86_64
-rw-r--r--. 1 root root    147744 Jan  7 01:00 memtest86+x64.bin
drwx------. 4 root root      4096 Jun 20  2023 efi
drwxr-xr-x. 2 root root      4096 Jun 20  2023 extlinux
-rw-------. 1 root root 103940590 Jul 21  2022 initramfs-0-rescue-c60d54440c4d444a9eb5a084a65edf40.img
-rwxr-xr-x. 1 root root  11802352 Jul 21  2022 vmlinuz-0-rescue-c60d54440c4d444a9eb5a084a65edf40

drwxr-xr-x. 3 root root      4096 Jul 21  2022 loader
drwx------. 2 root root     16384 Jul 21  2022 lost+found


===========================================================================
  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
===========================================================================
--
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux