在VM上进行更新后,如何为“ GRUB安装设备”选择什么?


13

这与更新后为“ 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) 

我猜第一个选择是正确的,就像对另一个问题的回答说的那样,但是我不喜欢猜测!如果有任何帮助或见解,我将不胜感激。

Answers:


8

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


5
我最近在我的vagrant盒子中遇到了这个问题,但是选择该选项然后通知我,我显然选择不将GRUB安装到任何磁盘上。我可以告诉我我不想在不安装GRUB的情况下进行安装的过程,但是后来我又碰到了原始帖子中提到的“选择磁盘”屏幕。花了我太长时间才意识到我应该在继续操作之前使用空格键选择/星号选择。.因此,如果其他任何人遇到此问题,这可能就是为什么您看到该通知的原因。/ supersmartuser。8D
spoorlezer's

@spoorlezer我也发生了同样的事情。您必须按空格键才能实际选择该项目。选中后,您会在框中看到一个*星号。然后点击“输入”,它将开始安装。
詹姆斯·尼科尔森

UEFI是什么?...
OZZIE
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.