Windows 10 未显示在 grub 菜单中(单独磁盘安装)

Windows 10 未显示在 grub 菜单中(单独磁盘安装)

我使用安装在 SSD 上的 Windows 10 以及用于存储的 HHD。最近,我添加了另一个 SSD,并在其中安装了 Ubuntu 18.04.2 LTS

我的问题是 os-prober 和 grub 都找不到 Windows 10。但是,我能够从 UEFI 启动菜单启动 Windows 10。我阅读了所有关于它的帖子,但无法解决问题。你能帮帮我吗?

以下是启动信息的输出 Boot Info Script 0.61 [2012 年 4 月 1 日]

============================== 启动信息摘要: =================================

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

sda1:______________________________________________________________________

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:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2:________________________________________________________________________

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:        

sdb1:______________________________________________________________________

File system:       
Boot sector type:  -
Boot sector info: 
Mounting failed:   mount: /tmp/BootInfo-OmyD6Lmf/sdb1: unknown filesystem type ''.

sdb2:______________________________________________________________________

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:        

sdc1:________________________________________________________________________

File system:       vfat
Boot sector type:  FAT32
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /efi/BOOT/fbx64.efi /efi/ubuntu/fwupx64.efi 
                   /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                   /efi/ubuntu/shimx64.efi

sdc2:______________________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  Ubuntu 18.04.2 LTS
Boot files:        /boot/grub/grub.cfg /etc/fstab

============================= 驱动器/分区信息: ==============================

驱动器:sda ___________________________________________________________________________________

Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   233,517,055   233,515,008   7 NTFS / exFAT / HPFS
/dev/sda2         233,517,056   234,438,655       921,600  27 Hidden NTFS (Recovery Environment)

驱动器:sdb ___________________________________________________________________________________

Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 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
Disklabel type: gpt

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1                   1 4,294,967,295 4,294,967,295  ee GPT

/dev/sdb1 ends after the last sector of /dev/sdb

GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sdb1              34       262,177       262,144 Microsoft Reserved Partition (Windows)
/dev/sdb2         264,192 1,953,523,711 1,953,259,520 Data partition (Windows/Linux)

驱动器:sdc ___________________________________________________________________________________

Disk /dev/sdc: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1                   1   468,862,127   468,862,127  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sdc1           2,048     1,050,623     1,048,576 EFI System partition
/dev/sdc2       1,050,624   468,860,927   467,810,304 Data partition (Linux)

“blkid” 输出:________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/loop1                                              squashfs   
/dev/loop10                                             squashfs   
/dev/loop11                                             squashfs   
/dev/loop12                                             squashfs   
/dev/loop13                                             squashfs   
/dev/loop14                                             squashfs   
/dev/loop15                                             squashfs   
/dev/loop16                                             squashfs   
/dev/loop17                                             squashfs   
/dev/loop2                                              squashfs   
/dev/loop3                                              squashfs   
/dev/loop4                                              squashfs   
/dev/loop5                                              squashfs   
/dev/loop6                                              squashfs   
/dev/loop7                                              squashfs   
/dev/loop8                                              squashfs   
/dev/loop9                                              squashfs   
/dev/sda1        6EAEC608AEC5C933                       ntfs       Fisso
/dev/sda2        34D8E21FD8E1DEDC                       ntfs       
/dev/sdb1                                                          
/dev/sdb2        1688449A884479EF                       ntfs       Fisso exp
/dev/sdc1        3BCC-705C                              vfat       
/dev/sdc2        b64bdc97-1ec9-4a7f-a4f6-7e0e51b54f2d   ext4  

=================================== 挂载点: ===================================

Device           Mount_Point              Type       Options

/dev/sdc1        /boot/efi                vfat       (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdc2        /                        ext4       (rw,relatime,errors=remount-ro)

============================ sdc2/boot/grub/grub.cfg: =============================

答案1

Windows 处于传统模式,因此要从 grub 运行它,您需要在传统模式下启动 grub,但您是在 UEFI 模式下安装的。最简单的方法是在传统模式下重新安装 Ubuntu。您启动安装介质的方式(传统模式与 UEFI 模式)就是安装方式

您的 Windows 10 安装在 dos 分区(vs gpt)磁盘上,因此仅凭这一点就意味着是旧版安装。其磁盘还具有 MBR 启动设置,没有 EFI 分区,因此这些是表明它是旧版安装的其他线索。Ubuntu 可以在任何磁盘分区类型(dos/gpt)上以任一模式(旧版/UEFI)运行,但通常对于 UEFI 使用更现代的 gpt,但其磁盘(sdc)确实有一个带有 Ubunu 引导加载程序的 EFI 分区,因此已完成 UEFI 安装。如果您想在该磁盘上进行旧版安装,则需要执行以下操作之一:

  1. 添加一个 grub-bios 2M 未格式化的分区(因为 grub 无法将其代码放在 gpt 磁盘上的分区之间)或
  2. 使用 DOS 分区表对磁盘重新分区(在这种情况下不需要 grub-bios 分区)。

相关内容