除非具有grub模块的分区可用,否则无法从grub救援提示符下启动Windows。这就是为什么您会收到未知的命令错误的原因。最好的解决方案是重新安装Windows Bootloader。要从Windows 7修复CD或Windows安装DVD启动到修复提示并运行:
bootrec /fixmbr
如果您没有Windows修复CD或安装DVD,则如果您具有以下之一,也可以从Ubuntu CD / USB安装类似Windows的引导程序:
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr
请注意,这lilo
将弹出一个大警告屏幕,但是可以忽略它,因为这是指它用于引导linux的时间,因此可以安全地忽略它。
这就是它的使用方式lilo
(注意该命令区分大小写):
bcbc@neptune:~$ sudo apt-get install lilo
[sudo] password for bcbc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
lilo-doc
The following NEW packages will be installed:
lilo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 275 kB of archives.
After this operation, 807 kB of additional disk space will be used.
Get:1 http://mirror.csclub.uwaterloo.ca/ubuntu/ precise/main lilo amd64 1:23.2-2 [275 kB]
Fetched 275 kB in 1s (198 kB/s)
Preconfiguring packages ...
Selecting previously unselected package lilo.
(Reading database ... 505850 files and directories currently installed.)
Unpacking lilo (from .../lilo_1%3a23.2-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up lilo (1:23.2-2) ...
bcbc@neptune:~$ sudo lilo -M /dev/sda mbr
Backup copy of /dev/sda in /boot/boot.0800
The Master Boot Record of /dev/sda has been updated.
bcbc@neptune:~$
您会看到类似以下的警告-在lilo
用作Windows样式的引导加载程序时可以将其忽略: