ubuntu – GRUB“核心图像中可能缺少某些模块”警告

前端之家收集整理的这篇文章主要介绍了ubuntu – GRUB“核心图像中可能缺少某些模块”警告前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
一个硬盘从我的RAID崩溃,我添加了一个新的硬盘.
现在我想将GRUB安装到新硬盘上:使用grub-install / dev / sdb.
我收到这些警告:
Installing for i386-pc platform.
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.

在update-grub2上,我得到:

Generating grub configuration file ...
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found initrd image: /boot/initrd.img-3.13.0-32-generic
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-3.13.0-30-generic
Found initrd image: /boot/initrd.img-3.13.0-30-generic
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done

cat / proc / mdstat的输出

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md3 : active raid1 sdb4[3] sda4[2]
      1847608639 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sdb2[3] sda2[2]
      524276 blocks super 1.2 [2/2] [UU]

md2 : active raid1 sdb3[3] sda3[2]
      1073740664 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sdb1[3] sda1[2]
      8387572 blocks super 1.2 [2/2] [UU]

unused devices: none

我使用apt-get install –reinstall重新安装了两个内核,但这些错误/警告仍然存在.
有谁知道我怎么能摆脱它们?

更新:

因为它只是一个警告,而不是错误(并且GRUB必须仍然在sda上)我重新启动了系统.
系统启动并且警告消失.
我不知道触发警告的原因.

我在重建降级的SW-RAID阵列时遇到了同样的问题,并在另一个网站上绊倒了这个问题:

出现警告的grub-2.00源代码位于./grub-core/disk/diskfilter.c并有此评论

/* TRANSLATORS: This message kicks in during the detection of
   which modules needs to be included in core image. This happens
   in the case of degraded RAID and means that autodetection may
   fail to include some of modules. It's an installation time
   message,not runtime message.  */

(摘自https://bbs.archlinux.org/viewtopic.php?id=160785)

换句话说,当您的RAID阵列性能下降时会发生这种奇怪的错误,并且一旦阵列正常运行,它就会消失(在您的情况下会这样做).

当我的RAID阵列最终完成同步时,错误在update-grub和grub-install上都消失了.

原文链接:https://www.f2er.com/ubuntu/348794.html

猜你在找的Ubuntu相关文章