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 / 问题 / 1391503
Accepted
alci
alci
Asked: 2022-02-07 13:56:09 +0800 CST2022-02-07 13:56:09 +0800 CST 2022-02-07 13:56:09 +0800 CST

从 18.04 升级到 20.04 后,grub 无法引导至最新内核(并且 ZFS 已损坏)

  • 772

在远程服务器上(启动后只能通过 ssh 访问),从 18.04LTS 升级到 20.04.3LTS 后我遇到了问题:

  • 在旧的救援内核上重新启动系统:

  • 并且 zfs 不再工作(所以我所有的 lxd 容器现在都不在了......)

    $ uname -r 4.19.62-mod-std-ipv6-64-rescue

    $ zpool info 未加载 ZFS 模块。尝试以 root 身份运行“/sbin/modprobe zfs”来加载它们。

    $ /sbin/modprobe zfs
      modprobe: FATAL: Module zfs not found in directory /lib/modules/4.19.62-mod-std-ipv6-64-rescue
    

新内核存在于 /boot 中:

ll /boot/
total 75287
drwxr-xr-x  5 root root     1024 févr.  6 21:36 ./
drwxr-xr-x 23 root root     4096 févr.  4 06:52 ../
-rw-r--r--  1 root root   237940 janv. 13 18:00 config-5.4.0-97-generic
drwxr-xr-x  2 root root     1024 nov.  24  2018 efi/
drwxr-xr-x  6 root root     1024 févr.  6 21:36 grub/
lrwxrwxrwx  1 root root       27 févr.  6 21:05 initrd.img -> initrd.img-5.4.0-97-generic
-rw-r--r--  1 root root 58416425 févr.  6 21:36 initrd.img-5.4.0-97-generic
lrwxrwxrwx  1 root root       27 févr.  6 21:13 initrd.img.old -> initrd.img-5.4.0-97-generic
drwx------  2 root root    12288 nov.  28  2019 lost+found/
-rw-------  1 root root  4757200 janv. 13 18:00 System.map-5.4.0-97-generic
lrwxrwxrwx  1 root root       24 févr.  6 21:05 vmlinuz -> vmlinuz-5.4.0-97-generic
-rw-------  1 root root 13660416 janv. 13 18:04 vmlinuz-5.4.0-97-generic
lrwxrwxrwx  1 root root       24 févr.  6 21:13 vmlinuz.old -> vmlinuz-5.4.0-97-generic

/etc/default/grub 说 GRUB_DEFAULT=0

运行 update-grub 说:

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-97-generic
Found initrd image: /boot/initrd.img-5.4.0-97-generic
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
Some pools couldn't be imported and will be ignored:
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
Found Ubuntu 20.04.3 LTS (20.04) on /dev/sda2
done

这个“救援”内核从何而来?以及如何引导到最新的内核(希望使用 ZFS ??)?

boot
  • 1 1 个回答
  • 237 Views

1 个回答

  • Voted
  1. Best Answer
    alci
    2022-02-08T06:55:32+08:002022-02-08T06:55:32+08:00

    终于工作了。问题不在于 Ubuntu:我的托管服务器 (Kimsufi) 设置为在自定义内核上而不是在磁盘上进行网络引导。Kimsufi 的支持帮助我解决了这个问题。

    • 0

相关问题

  • 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