Re: imminent /boot problem.

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

 



On 2/22/24 4:56 PM, Samuel Sieb wrote:
On 2/22/24 10:21, home user wrote:
While doing my weekly "dnf upgrade" a little while ago, I got the following pop-up at the top of the screen"
------
Low Disk Space on"boot"
The volume "boot" has only 20.9 MB disk space remaining.

I'm only keeping 2 old kernels now.  I did not do anything to shrink /boot.  What has grown so much recently?  What do I delete?

Here's what's in /boot:
-----
-bash.2[~]: ls -alS /boot
total 414860
-rw-------.  1 root root 116291735 Jun  1  2023 initramfs-0-rescue-70857e3fb05849139515e66a3fdc6b38.img
-rw-------.  1 root root  74107910 Feb  8 12:15 initramfs-6.7.3-100.fc38.x86_64.img
-rw-------.  1 root root  74063151 Feb 22 10:15 initramfs-6.7.5-100.fc38.x86_64.img
-rw-------.  1 root root  74060383 Feb 15 13:15 initramfs-6.7.4-100.fc38.x86_64.img
-rwxr-xr-x.  1 root root  14806856 Feb  4 17:00 vmlinuz-6.7.4-100.fc38.x86_64
-rwxr-xr-x.  1 root root  14786376 Jan 30 17:00 vmlinuz-6.7.3-100.fc38.x86_64
-rwxr-xr-x.  1 root root  14786376 Feb 16 17:00 vmlinuz-6.7.5-100.fc38.x86_64
-rwxr-xr-x.  1 root root  14329896 Jun  1  2023 vmlinuz-0-rescue-70857e3fb05849139515e66a3fdc6b38

You think you're only keeping 2 kernels, but you definitely have a full 3 kernels there (plus the rescue one).

No, I don't think I'm only keeping 2 kernels.  I'm keeping 2 old kernels.  There's also the current kernel and the rescue.

  Your /boot partition is too small, but if you actually reduce it down to 2 kernels, you should be fine.

ok.
Here I go...
-----
-bash.1[~]: rpm -qa kernel-core
kernel-core-6.7.3-100.fc38.x86_64
kernel-core-6.7.4-100.fc38.x86_64
kernel-core-6.7.5-100.fc38.x86_64
-bash.2[~]: dnf remove kernel-core-6.7.3-100.fc38.x86_64
Dependencies resolved.
================================================================================
 Package                         Arch   Version             Repository     Size
================================================================================
Removing:
 kernel-core                     x86_64 6.7.3-100.fc38      @updates       66 M
Removing dependent packages:
 kernel                          x86_64 6.7.3-100.fc38      @updates        0
 kernel-modules                  x86_64 6.7.3-100.fc38      @updates       57 M
 kernel-modules-core             x86_64 6.7.3-100.fc38      @updates       32 M
 kmod-nvidia-470xx-6.7.3-100.fc38.x86_64
                                 x86_64 3:470.223.02-2.fc38 @@commandline  25 M

Transaction Summary
================================================================================
Remove  5 Packages

Freed space: 180 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Erasing          : kernel-6.7.3-100.fc38.x86_64                           1/5
  Running scriptlet: kernel-6.7.3-100.fc38.x86_64                           1/5
  Erasing          : kernel-modules-6.7.3-100.fc38.x86_64                   2/5
  Running scriptlet: kernel-modules-6.7.3-100.fc38.x86_64                   2/5
  Erasing          : kmod-nvidia-470xx-6.7.3-100.fc38.x86_64-3:470.223.02   3/5
  Running scriptlet: kmod-nvidia-470xx-6.7.3-100.fc38.x86_64-3:470.223.02   3/5
  Erasing          : kernel-modules-core-6.7.3-100.fc38.x86_64              4/5
  Running scriptlet: kernel-core-6.7.3-100.fc38.x86_64                      5/5
  Erasing          : kernel-core-6.7.3-100.fc38.x86_64                      5/5
  Running scriptlet: kernel-core-6.7.3-100.fc38.x86_64                      5/5
  Verifying        : kernel-6.7.3-100.fc38.x86_64                           1/5
  Verifying        : kernel-core-6.7.3-100.fc38.x86_64                      2/5
  Verifying        : kernel-modules-6.7.3-100.fc38.x86_64                   3/5
  Verifying        : kernel-modules-core-6.7.3-100.fc38.x86_64              4/5
  Verifying        : kmod-nvidia-470xx-6.7.3-100.fc38.x86_64-3:470.223.02   5/5

Removed:
  kernel-6.7.3-100.fc38.x86_64
  kernel-core-6.7.3-100.fc38.x86_64
  kernel-modules-6.7.3-100.fc38.x86_64
  kernel-modules-core-6.7.3-100.fc38.x86_64
  kmod-nvidia-470xx-6.7.3-100.fc38.x86_64-3:470.223.02-2.fc38.x86_64

Complete!
-bash.3[~]: rpm -qa kernel-core
kernel-core-6.7.4-100.fc38.x86_64
kernel-core-6.7.5-100.fc38.x86_64
-bash.4[~]: ls -S /boot
initramfs-0-rescue-70857e3fb05849139515e66a3fdc6b38.img
initramfs-6.7.5-100.fc38.x86_64.img
initramfs-6.7.4-100.fc38.x86_64.img
vmlinuz-6.7.4-100.fc38.x86_64
vmlinuz-6.7.5-100.fc38.x86_64
vmlinuz-0-rescue-70857e3fb05849139515e66a3fdc6b38
System.map-6.7.5-100.fc38.x86_64
System.map-6.7.4-100.fc38.x86_64
config-6.7.5-100.fc38.x86_64
config-6.7.4-100.fc38.x86_64
memtest86+x64.bin
lost+found
efi
grub2
loader
symvers-6.7.4-100.fc38.x86_64.xz
symvers-6.7.5-100.fc38.x86_64.xz
-bash.5[~]: df
Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs            4096        0      4096   0% /dev
tmpfs            8158692        0   8158692   0% /dev/shm
tmpfs            3263480     1796   3261684   1% /run
/dev/sda6       51422028 29286488  19497716  61% /
tmpfs            8158696        0   8158696   0% /tmp
/dev/sda3         485348   339543    116109  75% /boot
/dev/sda7      947550748 30064516 869326592   4% /home
tmpfs            1631736     3888   1627848   1% /run/user/1001
-bash.6[~]:
-----
You could also probably migrate the /boot directory into /, but without having a live USB option, that might be a bit risky.

That does look risky, live USB or no live USB!

Now I need to hunt down the other steps from my December thread.  I'll post more when that's done.
--
_______________________________________________
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