您尚未登录。

#1 2024-01-15 08:51:40

chen05_20
会员
注册时间: 2021-04-02
帖子: 124

/boot目录满了,如何清理?

当时分配的比较少,空间,进去看了下 initramfs-linux-fallback.img 直接 200M了,看名字应该是之前内核的备份把?但也应该不至于这么大把?

离线

#2 2024-01-15 09:47:01

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: /boot目录满了,如何清理?

不知道你的为什么这么大,是不是没压缩?我的才75M。
fallback 是「备用」的意思,不是「备份」的意思。这个内核包含了许多生成时的系统用不上的模块,为的是在硬件发生变化(主要是启动的硬盘和文件系统)时能够进入系统。

离线

#3 2024-01-15 11:03:04

chen05_20
会员
注册时间: 2021-04-02
帖子: 124

Re: /boot目录满了,如何清理?

依云 说:

不知道你的为什么这么大,是不是没压缩?我的才75M。
fallback 是「备用」的意思,不是「备份」的意思。这个内核包含了许多生成时的系统用不上的模块,为的是在硬件发生变化(主要是启动的硬盘和文件系统)时能够进入系统。

意思配置一下包含的模块,重新生成下镜像就行了?

离线

#4 2024-01-15 12:00:07

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: /boot目录满了,如何清理?

你检查一下是不是没压缩?(检查 /etc/mkinitcpio.conf)
如果你确认你不会更改启动用的硬件和文件系统的话,可以把 fallback 禁用掉(在 /etc/mkinitcpio.d 下)。

离线

#5 2024-01-15 14:22:01

chen05_20
会员
注册时间: 2021-04-02
帖子: 124

Re: /boot目录满了,如何清理?

依云 说:

你检查一下是不是没压缩?(检查 /etc/mkinitcpio.conf)
如果你确认你不会更改启动用的硬件和文件系统的话,可以把 fallback 禁用掉(在 /etc/mkinitcpio.d 下)。

压缩是COMPRESSION把,开了压缩又多了2M。。。。。

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(usbhid xhci_hcd)
MODULES=()

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No RAID, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect modconf block filesystems fsck)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev modconf block filesystems fsck)
#
##   This setup assembles a mdadm array with an encrypted root file system.
##   Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
#    HOOKS=(base udev modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
#
##   This setup loads an lvm2 volume group.
#    HOOKS=(base udev modconf block lvm2 filesystems fsck)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr and fsck hooks.
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

# MODULES_DECOMPRESS
# Decompress kernel modules during initramfs creation.
# Enable to speedup boot process, disable to save RAM
# during early userspace. Switch (yes/no).
#MODULES_DECOMPRESS="yes"

离线

#6 2024-01-15 14:36:33

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: /boot目录满了,如何清理?

呃……

离线

#7 2024-01-15 15:10:40

鸭子的菊花
会员
注册时间: 2023-01-06
帖子: 21

Re: /boot目录满了,如何清理?

应该是更新6.7的原因,不是个例,fallback也不是必要的,等开发者解决吧。

离线

#8 2024-01-15 17:09:58

Honosr
会员
注册时间: 2022-07-12
帖子: 8

Re: /boot目录满了,如何清理?

我今天更新完initramfs-linux-fallback.img也200多M了

离线

#9 2024-01-15 17:10:35

eugene
会员
注册时间: 2024-01-15
帖子: 2

Re: /boot目录满了,如何清理?

今早更新了6.7, 遇到同样的问题,插个眼

离线

#10 2024-01-15 17:52:12

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: /boot目录满了,如何清理?

原来是 6.7 引入的问题啊。那你拆开 initramfs 文件看看是谁占空间了呀。

离线

#11 2024-01-15 20:46:25

路由器
会员
注册时间: 2024-01-15
帖子: 1

Re: /boot目录满了,如何清理?

刚更新完,也是告诉我boot空间满了,initramfs-linux-fallback.img文件9.1mb,但是initramfs-linux.img文件190mb

离线

#12 2024-01-16 07:10:20

BRS5672023
会员
注册时间: 2020-07-07
帖子: 102

Re: /boot目录满了,如何清理?

更新 mkinitcpio 到 37.2-1 应该就好了,对比以下更新前后 initramfs-linux-fallback.img 的大小

fan@D30 ~> ll /boot/
总计 282M
-rwxr-xr-x 1 root root  80K 12月11日 22:23 amd-ucode.img*
drwxr-xr-x 5 root root 4.0K 12月 5日 00:18 EFI/
-rwxr-xr-x 1 root root 237M  1月15日 17:33 initramfs-linux-fallback.img*
-rwxr-xr-x 1 root root  33M  1月15日 17:33 initramfs-linux.img*
drwxr-xr-x 3 root root 4.0K  1月16日 03:48 loader/
-rwxr-xr-x 1 root root  13M  1月15日 17:33 vmlinuz-linux*
fan@D30 ~> ll /boot/
总计 156M
-rwxr-xr-x 1 root root  80K 12月11日 22:23 amd-ucode.img*
drwxr-xr-x 5 root root 4.0K 12月 5日 00:18 EFI/
-rwxr-xr-x 1 root root 111M  1月16日 07:07 initramfs-linux-fallback.img*
-rwxr-xr-x 1 root root  33M  1月16日 07:07 initramfs-linux.img*
drwxr-xr-x 3 root root 4.0K  1月16日 03:48 loader/
-rwxr-xr-x 1 root root  13M  1月15日 17:33 vmlinuz-linux*

离线

#13 2024-02-17 10:02:11

8855599
会员
注册时间: 2024-02-17
帖子: 1

Re: /boot目录满了,如何清理?

┌ boot (7 visible, 606 total, 110.00 MiB) ────────────────────┐
│  38.12 MiB |   34.7%  ███▌       |  initramfs-l…fallback.img│
│  27.82 MiB |   25.3%  ██▌        | /EFI                     │
│  13.19 MiB |   12.0%  █▎         | /grub                    │
│  12.32 MiB |   11.2%  █▏         |  vmlinuz-linux-lts       │
│  11.50 MiB |   10.5%  █          |  initramfs-linux-lts.img │
│   7.03 MiB |    6.4%  ▋          |  intel-ucode.img         │
│   4.00 KiB |    0.0%             |  refind_linux.conf

离线

页脚