GRUB / os-prober没有看到Windows 8.1分区

我有一个带有7个分区的1 TB硬盘,一个用于Windows的600GB,一个用于Xubuntu的300GB和一系列各种系统分区占用其余空间。 我最近用全新的安装覆盖了我的Xubuntu分区,因为我以某种方式搞砸了,这就是我的问题开始的地方。 之前,GRUB会在启动时出现,要求我启动Xubuntu或Windows。 重新安装后,这不再发生了。

我试过运行os-prober ,但它什么也没做,什么也没输出。 update-grub显示我的Linux分区没问题,但根本没有提到Windows。

这是我的布局( parted -l ):

 Model: ATA ST1000DM003-1CH1 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 525MB 524MB fat16 EFI system partition boot 2 528MB 570MB 41.9MB fat32 Basic data partition hidden 3 570MB 705MB 134MB Microsoft reserved partition msftres 4 705MB 2852MB 2147MB ntfs Basic data partition hidden, diag 5 2852MB 632GB 629GB ntfs Basic data partition msftdata 7 632GB 994GB 362GB ext4 boot 6 994GB 1000GB 6093MB ntfs Microsoft recovery partition hidden, diag 

os-prober输出(只挂在那里一秒钟,没有说什么):

 marvin@ttyfsck:~$ sudo os-prober marvin@ttyfsck:~$ 

update-grub输出:

 marvin@ttyfsck:~$ sudo update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.13.0-24-generic Found initrd image: /boot/initrd.img-3.13.0-24-generic Adding boot menu entry for EFI firmware configuration done 

fdisk -l输出:

 marvin@ttyfsck:~$ sudo fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x314b8de1 Device Boot Start End Blocks Id System /dev/sda1 1 1953525167 976762583+ ee GPT Partition 1 does not start on physical sector boundary. 

Boot-Info(长): http : //paste.ubuntu.com/7416627/

规格(再次):
Xubuntu 14.04
Windows 8.1
1 TB硬盘

编辑:我可以挂载我的Windows分区并查看内容没问题。

你应该使用boot-repair 。 在大多数情况下,它将能够帮助解决问题。

Boot-Repair是一个简单的工具,用于修复您在Ubuntu中可能遇到的频繁启动问题,例如在安装Windows或其他Linux发行版后无法启动Ubuntu,或者在安装Ubuntu后无法启动Windows,或者GRUB不安装时显示,某些升级会破坏GRUB等。

尝试使用Windows可启动修复/恢复CD或DVD来重写Windows MBR,然后执行update-grub操作。 那应该解决它。

您可以挂载Windows分区并查看文件,以便Windows安装可能仍然完好无损。 只是因为Windows没有有效的MBR条目, os-prober / grub忽略了它。

你有没有检查你的grub配置文件,看看是否列出了Windows? 如果不是,最好在/etc/grub.d/40_custom使用以下命令添加Windows条目:

 menuentry 'Windows 7′ { set root='(hd0,msdos2)' chainloader +1 } 

在此之后更新你的grub。

注意:编辑grub文件时要小心,如果操作不当,这可能会弄乱你的系统。