我被这个问题困扰了很多次,今天在openssl
服务器grub中的更新后,我抱怨我应该重新安装它,因为“以前安装的硬盘不存在”。
我具有以下设置的raid 1安装(根据bootinfoscript):
> ============================= Boot Info Summary: ===============================
>
> => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at
> sector 1 of the same hard drive for core.img. core.img is at this location and looks
> for (mduuid/d2a04f98760e2b3cc23ba87845667605)/grub on this drive.
>
> => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
> the same hard drive for core.img. core.img is at this location and looks
> for (mduuid/d2a04f98760e2b3cc23ba87845667605)/grub on this drive.
My mount points are:
> /dev/md2 on / type ext4 (rw)
> /dev/md1 on /boot type ext3 (rw)
And mduuid seems to match the ones bootinfoscript mentions:
> ls -l /dev/disk/by-id/md-uuid-*
>
> lrwxrwxrwx 1 root root 9 Mar 19 11:37 /dev/disk/by-id/md-uuid-38048286:e3004e47:510ca3e1:2bae3f2e -> ../../md2
>
> lrwxrwxrwx 1 root root 9 Mar 19 11:37 /dev/disk/by-id/md-uuid-d2a04f98:760e2b3c:c23ba878:45667605 -> ../../md1
>
> lrwxrwxrwx 1 root root 9 Mar 19 11:37 /dev/disk/by-id/md-uuid-e099b695:0143bb58:e4ef7645:0f22ce0b -> ../../md0
运行grub-install可以运行,但是我想确保在重新引导grub之后,实际上可以正确引导我的分区。
我该如何验证?
1
我既不使用也不真正了解RAID,但是您将grub安装到RAID的根目录而不是驱动器的MBR。如果您运行引导修复,则可能会收到如下消息。/ dev / mapper / isw_cdjacjeebj_VOLUME_0的MBR中未安装引导加载程序。映射器是您的RAID卷。
—
oldfred 2014年