修复 Windows 7 后如何启动到 Ubuntu?

1 boot grub2 windows

可能的重复:
如何修复 grub?(安装 Windows 后如何取回 Ubuntu?)

我在 Windows 7 旁边安装了 Ubuntu 12.04。然后我摆弄了 EasyBCD 并设法填充了启动信息,Windows 无法启动,等等。

然后我通过安装 CD 修复了 Windows,但现在我没有启动进入 Ubuntu 的选项,它直接启动进入 Windows。

我现在如何启动到 Ubuntu?

ash*_*osh 6

唯一的问题是 MBR 部分现在已经取代了窗户。每当您修复 Windows 时,它都会修复 MBR 并卸载 GRUB 或上面写的任何内容。所以现在你的 GRUB 不在 MBR 中,它直接引导你进入 Windows。

要修复 GRUB,您可以使用任何 live cd 启动到 ubuntu 并打开终端,然后发出命令sudo grub-install。嗯,在很多情况下,这失败了。为此,您必须手动挂载根分区,然后将 GRUB 重新安装到其中。它如下:

sudo fdisk -l 
...list of devices and partions
//here find out the root partition (mine is sda3, so i am condireing /dev/sda3 here)

sudo mkdir /mnt/anyname
sudo mount /dev/sda3 /mnt/anyname
cd /mnt/anyname
sudo grub-install --root-directory=/mnt/anyname /dev/sda
Run Code Online (Sandbox Code Playgroud)

这将重新安装您的 GRUB。如果您在安装 GRUB 时遇到任何问题,请访问 google,那里有数百万个关于“在 linux 中安装 grub”的指南。:)


Ser*_*gey 5

除了@ashutosh 答案,您还可以使用名为 Boot Repair 的图形实用程序来重新安装 Ubuntu 引导加载程序:

图片: 开机修复

Ubuntu wiki 中还有一篇详细的文章,其中列出了在安装 Windows 后恢复引导加载程序的不同方法