在 VM 上更新后,我应该为“GRUB 安装设备”选择什么?

iai*_*ain 17 updates grub2 virtualbox vagrant

这与更新后我为“GRUB 安装设备”选择什么几乎完全相同- 或者可能不是,因此问,因为我通过 Vagrant 在 Virtualbox 机器上运行 Ubuntu。

我无法更新包,所以我跑了sudo apt-get update那么sudo apt-get dist-upgrade。它出现了以下消息:

The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason. It is        ? 
 ? important to make sure that the installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check again to make sure that GRUB is    ? 
 ? written to the appropriate boot devices.                                                                                                                ? 
 ?                                                                                                                                                         ? 
 ? If you're unsure which drive is designated as boot drive by your BIOS, it is often a good idea to install GRUB to all of them.                          ? 
 ?                                                                                                                                                         ? 
 ? Note: it is possible to install GRUB to partition boot records as well, and some appropriate partitions are offered here. However, this forces GRUB to  ? 
 ? use the blocklist mechanism, which makes it less reliable, and therefore is not recommended.                                                            ? 
 ?                                                                                                                                                         ? 
 ? GRUB install devices:                                                                                                                                   ? 
 ?                                                                                                                                                         ? 
 ?    [ ] /dev/sda (85899 MB; VBOX_HARDDISK)                                                                                                               ? 
 ?    [ ] - /dev/sda1 (254 MB; /boot)                                                                                                                      ? 
 ?    [ ] /dev/dm-0 (84833 MB; precise64-root) 
Run Code Online (Sandbox Code Playgroud)

我猜第一个选项是正确的,正如另一个问题的答案所说,但我不喜欢猜测!我真的很感激任何帮助或见解。

Tob*_*ias 13

假设您没有使用 UEFI,我认为您没有理由使用 UEFI。还假设您最初没有以某种花哨的方式设置它,那么是的,第一个选项是正确的。通过选择 /dev/sda,它将被安装到 /dev/sda 的 MBR,BIOS 应该能够启动它。

  • 我最近在我的 vagrant box 中遇到了这个问题,但是选择该选项后告诉我,我显然选择了_不将 GRUB 安装到任何磁盘_。我可以告诉安装过程,我不想在没有安装 GRUB 的情况下进行,但是后来我又被撞回了原始帖子中提到的“选择磁盘”屏幕。我花了很长时间才意识到我应该在继续之前使用空格键来选择/星号选择。所以如果其他人遇到这个问题,这可能就是你看到该通知的原因。/超级聪明的用户。8D (6认同)