boot-repair 不会将 Widnows 7 添加到 grub 菜单

boot-repair 不会将 Widnows 7 添加到 grub 菜单

我有一台笔记本电脑Debian 7Windows 7的Ubuntu 13.04。我决定升级到Ubuntu 13.10,并安装了Ubuntu重新分區。

重新安装后,Windows 7的从 grub 菜单中消失了。我用 live cd 启动了机器,然后开始启动修复

引导修复似乎已经识别出已安装的操作系统, 包括视窗分割:

...
sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sda5 and looks at sector 817082808 of the same hard 
                       drive for core.img, but core.img can not be found at 
                       this location.
    Operating System:  Ubuntu 13.10 
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img
...    

安装顺利,没有出现任何错误:

grub-install (GRUB) 2.00-19ubuntu2.1,grub-install (GRUB) 2.

Reinstall the GRUB of sda5 into the MBR of sda
Installation finished. No error reported.
grub-install /dev/sda: exit code of grub-install /dev/sda:0

chroot /mnt/boot-sav/sda5 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-15-generic
Found initrd image: /boot/initrd.img-3.11.0-15-generic
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found Debian GNU/Linux (7.0) on /dev/sda6
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.

完整报告可查看这里

重启后,我只看到UbuntuDebian记录在 grub 中,没有Windows 7的部分:

在此处输入图片描述

知道启动修复尝试出了什么问题吗?

答案1

说来也怪,update-grub做了这个伎俩:

$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-15-generic
Found initrd image: /boot/initrd.img-3.11.0-15-generic
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found Windows 8 (loader) on /dev/sda1
Found Windows 8 (loader) on /dev/sda2
Found Windows Recovery Environment (loader) on /dev/sda4
Found Debian GNU/Linux (7.0) on /dev/sda6
done

答案2

您可以尝试使用超级GRUB2针对您的问题的磁盘。

相关内容