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

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

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

我无法更新软件包,因此我运行sudo apt-get updatesudo 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) 

我猜第一个选项是正确的,就像另一个问题的答案一样,但我不喜欢猜测! 我将非常感谢任何帮助或见解。

答案1

假设您没有使用 UEFI,而我看不出您应该使用的原因。此外,假设您最初没有以某种花哨的方式进行设置,那么是的,第一个选项是正确的。通过选择 /dev/sda,它将安装到 /dev/sda 的 MBR,BIOS 应该能够引导它。

相关内容