AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1528776
Accepted
Nikolaj Hansen
Nikolaj Hansen
Asked: 2024-10-02 21:21:01 +0800 CST2024-10-02 21:21:01 +0800 CST 2024-10-02 21:21:01 +0800 CST

缺少 GRUB 内核启动列表升级

  • 772

由于某种原因,GRUB 在例行更新后不会更新可用内核列表

Sourcing file `/etc/default/grub'
Generating grub configuration file ...
grub-probe: error: unknown filesystem.
Found linux image: vmlinuz-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
Found initrd image: initrd.img-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
Found linux image: vmlinuz-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
Found initrd image: initrd.img-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
/usr/sbin/grub-probe: error: unknown filesystem.
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

这是启动文件夹中的内容:

$> ls -lah /boot
total 185M
drwxr-xr-x  4 root root   15 Oct  2 14:56 .
drwxr-xr-x 22 root root   26 Apr 27 20:04 ..
-rw-r--r--  1 root root 281K Oct  2 13:23 config-6.8.0-44-generic
-rw-r--r--  1 root root 281K Aug 30 10:32 config-6.8.0-45-generic
drwxr-xr-x  2 root root    2 Sep 11 02:18 efi
drwxr-xr-x  2 root root    4 Oct  2 14:57 grub
lrwxrwxrwx  1 root root   27 Oct  2 14:50 initrd.img -> initrd.img-6.8.0-45-generic
-rw-r--r--  1 root root  77M Oct  2 13:48 initrd.img-6.8.0-44-generic
-rw-r--r--  1 root root  77M Oct  2 14:50 initrd.img-6.8.0-45-generic
lrwxrwxrwx  1 root root   27 Oct  2 14:56 initrd.img.old -> initrd.img-6.8.0-44-generic
-rw-------  1 root root 8,7M Aug 30 10:32 System.map-6.8.0-45-generic
lrwxrwxrwx  1 root root   24 Oct  2 14:50 vmlinuz -> vmlinuz-6.8.0-45-generic
-rw-------  1 root root  15M Aug 13 12:22 vmlinuz-6.8.0-44-generic
-rw-------  1 root root  15M Aug 30 11:02 vmlinuz-6.8.0-45-generic
lrwxrwxrwx  1 root root   24 Oct  2 14:56 vmlinuz.old -> vmlinuz-6.8.0-44-generic

我彻底清除了 45 版并重新安装。我没有看到任何错误,apt 也没有。

当我重新启动时,我将进入紧急模式,并且必须通过以下方式手动返回内核版本 44:

update-initramfs -u -k 6.8.0-44-generic

然后系统按预期启动 - 但使用旧内核。

grub 有啥问题?

向 grub-amd64-efi 包报告的错误

https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2084584

boot
  • 1 1 个回答
  • 48 Views

1 个回答

  • Voted
  1. Best Answer
    Nikolaj Hansen
    2024-10-16T04:44:47+08:002024-10-16T04:44:47+08:00

    我认为我已经解决了这个问题。即使您的池未正确导入 zfs,您也可以执行 update-grub。

    我注意到列表如下所示:

    $> zpool list
    NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
    rpool 1.84T 141G 1.71T - - 1% 7% 1.00x ONLINE -
    

    导入 bpool 之后。

    $> sudo zpool import bpool.
    

    现在看起来像

    $> zpool list
    NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
    bpool 1.88G 285M 1.60G - - 0% 14% 1.00x ONLINE -
    rpool 1.84T 141G 1.71T - - 1% 7% 1.00x ONLINE -
    

    grub 脚本再次开始正常运行。完全重新安装最新的 *47 内核现在可以正确更新启动选择列表并让我启动到正确的内核。

    $> sudo update-grub
    Sourcing file `/etc/default/grub'
    Generating grub configuration file ...
    Found linux image: vmlinuz-6.8.0-47-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-47-generic in rpool/ROOT/ubuntu_9jipvg
    Found linux image: vmlinuz-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-44-generic in rpool/ROOT/ubuntu_9jipvg
    Found linux image: vmlinuz-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
    Found initrd image: initrd.img-6.8.0-41-generic in rpool/ROOT/ubuntu_9jipvg
    Found memtest86+ 64bit EFI image: /BOOT/ubuntu_9jipvg@/memtest86+x64.efi
    Warning: os-prober will not be executed to detect other bootable partitions.
    Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    Adding boot menu entry for UEFI Firmware Settings ...
    done
    

    反思

    $> ls -lah /boot
    total 279M
    drwxr-xr-x  4 root root   23 Oct 15 22:12 .
    drwxr-xr-x 22 root root   26 Apr 27 20:04 ..
    -rw-r--r--  1 root root 281K Aug  2 16:15 config-6.8.0-41-generic
    -rw-r--r--  1 root root 281K Aug 13 12:20 config-6.8.0-44-generic
    -rw-r--r--  1 root root 281K Oct 15 22:02 config-6.8.0-47-generic
    drwxr-xr-x  4 root root 4,0K Jan  1  1970 efi
    drwxr-xr-x  5 root root    8 Oct 15 22:33 grub
    lrwxrwxrwx  1 root root   27 Sep 10 23:22 initrd.img -> initrd.img-6.8.0-44-generic
    -rw-r--r--  1 root root  77M Sep 10 23:22 initrd.img-6.8.0-41-generic
    -rw-r--r--  1 root root  77M Sep 11 01:32 initrd.img-6.8.0-44-generic
    -rw-r--r--  1 root root  77M Oct 15 22:12 initrd.img-6.8.0-47-generic
    lrwxrwxrwx  1 root root   27 Sep 10 23:22 initrd.img.old -> initrd.img-6.8.0-41-generic
    -rw-r--r--  1 root root 140K Apr  8  2024 memtest86+ia32.bin
    -rw-r--r--  1 root root 141K Apr  8  2024 memtest86+ia32.efi
    -rw-r--r--  1 root root 145K Apr  8  2024 memtest86+x64.bin
    -rw-r--r--  1 root root 146K Apr  8  2024 memtest86+x64.efi
    -rw-------  1 root root 8,7M Aug  2 16:15 System.map-6.8.0-41-generic
    -rw-------  1 root root 8,7M Aug 13 12:20 System.map-6.8.0-44-generic
    lrwxrwxrwx  1 root root   24 Sep 10 23:22 vmlinuz -> vmlinuz-6.8.0-44-generic
    -rw-------  1 root root  15M Aug  2 16:39 vmlinuz-6.8.0-41-generic
    -rw-------  1 root root  15M Aug 13 12:22 vmlinuz-6.8.0-44-generic
    -rw-------  1 root root  15M Sep 27 20:47 vmlinuz-6.8.0-47-generic
    lrwxrwxrwx  1 root root   24 Sep 10 23:22 vmlinuz.old -> vmlinuz-6.8.0-41-generic
    

    我仍然认为这是 grub 脚本中的一个错误。

    如果 bpool 没有正确导入,脚本应该尝试执行此操作,或者 - 甚至更好 - 简单地退出并显示描述性错误。

    此外,当 grub-probe 可执行文件出现错误时 - 请确保它准确打印出失败的探测器在何处(在哪个设备上)运行。

    我使用 cannonical 更新了该错误来反映这一点。

    • 1

相关问题

  • grub 菜单中的“恢复”选项是什么?

  • 用户如何避免在启动时输入密码?[关闭]

  • 更改 Wubi 的启动顺序

  • 如何在 Ubuntu 启动时显示或隐藏启动消息?

  • 如何避免启动时出现“S to Skip”消息?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve