2024年5月7日发(作者:)

安装Ubuntu后Windows 7无法启动

操作系统版本:Ubuntu 14.04.1和Windows7 sp1 x64版

故障现象:

先安装Windows7 SP1 64位版,后使用U盘安装Ubuntu 14.04.1。Ubuntu安装成功后,

可正常启动,而GRUB上选择Windows 7菜单项,无法启动到Win7界面,直接返回GRUB

菜单界面。

故障分析:

安装Ubuntu的过程中经历分区步骤,如下图。在指定Boot Loader时并未选择默认的选

项/dev/sda,而是选择/dev/sda1。因为硬盘的活动分区是第一个分区sda1。Windows7安装程

序默认划分一个100MB的小分区用于存储启动文件。而划分的C盘则是硬盘上的第二个分

区即sda2。此时如果将GRUB2的引导程序装在“/”所在分区,会造成Ubuntu无法启动,而

本人又不想将GRUB2的引起程序装在硬盘的MBR上。因此选择将GRUB安装windows

的启动分区Sda1上。

Ubuntu安装成功,重启选择windows7启动,结果悲剧出现。选择Windows 7启动菜单

启动Windows,毫无反映几秒钟后返回GRUB启动菜单。

1.为了分析问题打开 Ubuntu 软件中心 安装软件“Inspect boot environment”也可直接搜索

“boot-info-script”

2.打开终端,运行命令

sudo bootinfoscript

3.默认输出结果到主文件夹中的,内容如下:

Boot Info Script 0.61 [1 April 2012]

====================== Boot Info Summary: ==========================

=> Windows is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

File system: ntfs

Boot sector type: Grub2 (v1.99)

Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1

and looks at sector 1886304656 of the same hard drive

for . is at this location and looks

in partition 112 for . No errors found in the Boot

Parameter Block.

Operating System:

Boot files: /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

File system: ntfs

Boot sector type: Windows Vista/7: NTFS

Boot sector info: No errors found in the Boot Parameter Block.

Operating System: Windows 7

Boot files: /Windows/System32/

sda3: __________________________________________________________________________

File system: ntfs

Boot sector type: Windows Vista/7: NTFS

Boot sector info: No errors found in the Boot Parameter Block.

Operating System:

Boot files:

启动信息上看Windows的启动器安装在主硬盘MBR上,而启动文件安装在Sda1上。