如何将 Windows 7 加载程序添加到 GRUB?

Dan*_*Dan 12 grub2 windows-7

我已经成功地在 Windows 7 旁边安装了 Ubuntu 11.10。在安装过程中,我手动更改了 Windows 分区大小(使用了 24Gb,我将虚拟分区大小从 100Gb 更改为 40Gb)并杀死了 Windows 存储系统恢复的 150Mb 分区数据。我已经在第二个虚拟分区上安装了 Ubuntu。

所以现在当 GRUB 启动时,它看不到 Windows 安装程序。我认为 Windows 加载程序一切正常,只是 GRUB 不知道。

所以我需要手动指定它。在哪里以及如何?

Sir*_*rlo 15

从 Ubuntu 运行:

sudo update-grub
Run Code Online (Sandbox Code Playgroud)

并重新启动。

Windows 现在应该在 Grub 菜单中。


twi*_*oid 1

编辑 Grub 菜单

gksudo gedit /boot/grub/menu.lst


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Windows 7
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Run Code Online (Sandbox Code Playgroud)

编辑/etc/fstab以便在 Linux 中可以访问 Windows 分区:

sudo apt-get install ntfs-config

sudo ntfs-config
Run Code Online (Sandbox Code Playgroud)

/media为 Windows 分区添加挂载点

我想这会对你有帮助