AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1518366
Accepted
mseifert
mseifert
Asked: 2020-01-19 19:20:51 +0800 CST2020-01-19 19:20:51 +0800 CST 2020-01-19 19:20:51 +0800 CST

MBR 上的双启动 Win 7 和 GPT 上的 Win 10

  • 772

我目前使用的是 Windows 7,并希望在双启动配置中安装 Windows 10。

我的 Windows 7 磁盘使用 MBR。我的华硕主板bios显示

  • CSM:启用
  • 引导设备控制:UEFI 和 Legacy OPROM

当我去安装 Windows 10 时,我将现有的(单分区)引导盘分成两个分区,并为 Windows 10 选择了第二个空分区,但出现错误:

“Windows 无法安装到此磁盘。所选磁盘具有 MBR 分区表。在 EFI 系统上,Windows 只能安装到 GPT 磁盘。”

所以我想我会为 Windows 10 使用不同的驱动器并将其设置为 GPT。在我这样做之前,我想确保我会得到我希望的双启动方案。

我可以在 MBR 磁盘上使用 Windows 7 和在 GPT 磁盘上使用 Windows 10 进行双重引导吗?

我不清楚主引导表驻留在哪里,以及计算机何时引导它是否可以读取两个磁盘(一个 MBR 和一个 GPT)并向我展示要引导到哪个操作系统的选择。我也不肯定使用 UEFI 和 Legacy 意味着什么。

在引导设备控制下,我的 BIOS 为我提供了选项

  • UEFI 和传统 OPROM
  • 仅限传统 OPROM
  • 仅 UEFI

我的目标最终是删除 Windows 7,但这可能需要一段时间,因为我将 Windows 10 配置得令我满意。删除 Windows 7 后,如果能在 UEFI 上使用更现代的 GPT 系统,那就太好了。请注意,我还有其他使用 MBR 的旧版驱动器,理想情况下我会继续使用它们。但是,如果有必要,我可以全部使用 GPT。

在此先感谢您的帮助

multi-boot uefi
  • 1 1 个回答
  • 6083 Views

1 个回答

  • Voted
  1. Best Answer
    David Anderson
    2020-01-20T02:26:56+08:002020-01-20T02:26:56+08:00

    可以在您的计算机上安装 Windows 7 以进行 BIOS 引导。因此,您还可以在双引导配置中安装两个 Windows 7 操作系统。同样,两者都会启动 BIOS。我假设您还可以将第二个 Windows 7 升级到 Windows 10。同样,Windows 10 将启动 BIOS。启动计算机时,将出现一个菜单,您可以在其中选择要使用的窗口。因此,您不必使用 BIOS Windows 7 和 UEFI Windows 10 组合。

    64 位 Windows 10 安装介质包含 BIOS 和 UEFI 启动文件。如果您从安装介质引导 BIOS,则 GUI 将要求使用主引导记录 (MBR) 分区表对安装驱动器进行分区。Windows 将安装到 BIOS 引导。同样,如果您从安装介质启动 UEFI,则 GUI 将要求使用 GUID 分区表 (GPT) 对安装驱动器进行分区。Windows 将安装到 UEFI 引导。

    您还可以从 Windows 7 或 10 安装媒体启动,打开命令提示符窗口,然后发出安装 Windows 的命令。这是一种从媒体引导 BIOS,然后安装 Windows 以进行 UEFI 引导的方法。反之亦然。(即 UEFI 引导和 BIOS 安装) 但是,很少需要从命令行安装。

    旧版 Mac 计算机还允许使用 MBR 分区表和 GPT 来安装操作系统的混合分区。在这种情况下,您可以将 Windows 安装到 BIOS 引导,也可以让其他操作系统(例如 macOS 和 Linux)UEFI 引导。正因为如此,Windows 7 无法安装到 BIOS 启动,而 Windows 10 也安装到 UEFI 启动。换句话说,一旦您设置了混合配置,Windows 7 和 10 都必须安装到 BIOS 引导。

    从命令提示符窗口安装双重引导

    一个名为VirtualBox的免费产品用于说明和测试该过程。

    以下是 VirtualBox 版本 6.0.14 r133895 (Qt5.6.3) 的设置方式。选择的名称、类型和版本如下所示。

    注意:主机是 Apple iMac(21.5 英寸,2011 年中)。

    由于主机具有 16 GB 内存,因此虚拟机被设置为具有 4096 MB 的基本内存。此外,对 EFI 启动Enable EFI (special Ones only)进行了检查。请参阅下面的插图。

    由于主机有 4 个内核,因此处理器设置为 2 个 CPU。另外,Enable PAE/NX被检查了。请参阅下面的插图。

    最后,添加了第二个 SATA 内部驱动器,如下所示。

    当前的Windows 10和Windows 7 iso 文件是从 Microsoft 下载的。从 Windows 10 iso 开始,iso 文件实际上被插入到虚拟机 DVD 驱动器中。物理 iso 文件用于安装 Windows。但是,可以在不显着更改以下步骤的情况下替换物理闪存驱动器。

    UEFI 从包含 Windows 10 iso 的虚拟 DVD 驱动器启动后,显示以下窗口。

    输入组合键shift+F10将打开命令提示符窗口,如下所示。

    输入了以下命令以将 Windows 7 安装到磁盘 0 上的 BIOS 启动,并将 Windows 10 安装到磁盘 1 上的 UEFI 启动。请注意,有一条注释表明您需要将 Windows 7 DVD 交换为 Windows 10 DVD。

    注意:在下面显示的命令中,您可能需要install.esd替换install.wim.

    Microsoft Windows [Version 10.0.18362.418]
    (c) 2019 Microsoft Corporation. All rights reserved.
    
    X:\Sources>diskpart
    
    Microsoft DiskPart version 10.0.18362.1
    
    Copyright (C) Microsoft Corporation.
    On computer: MINWINPC
    
    DISKPART> select disk 0
    
    Disk 0 is now the selected disk.
    
    DISKPART> clean
    
    DiskPart succeeded in cleaning the disk.
    
    DISKPART> create partition primary
    
    DiskPart succeeded in creating the specified partition.
    
    DISKPART> format fs=ntfs label=Windows7 quick
    
      100 percent completed
    
    DiskPart successfully formatted the volume.
    
    DISKPART> active
    
    DiskPart marked the current partition as active.
    
    DISKPART> assign letter=c
    
    DiskPart successfully assigned the drive letter or mount point.
    
    DISKPART> select disk 1
    
    Disk 1 is now the selected disk.
    
    DISKPART> clean
    
    DiskPart succeeded in cleaning the disk.
    
    DISKPART> convert gpt
    
    DiskPart successfully converted the selected disk to GPT format.
    
    DISKPART> create partition efi size=300
    
    DiskPart succeeded in creating the specified partition.
    
    DISKPART> format fs=fat32 label=EFI quick
    
      100 percent completed
    
    DiskPart successfully formatted the volume.
    
    DISKPART> assign letter=s
    
    DiskPart successfully assigned the drive letter or mount point.
    
    DISKPART> create partition msr size=16
    
    DiskPart succeeded in creating the specified partition.
    
    DISKPART> create partition primary
    
    DiskPart succeeded in creating the specified partition.
    
    DISKPART> format fs=ntfs label=Windows10 quick
    
      100 percent completed
    
    DiskPart successfully formatted the volume.
    
    DISKPART> assign letter=w
    
    DiskPart successfully assigned the drive letter or mount point.
    
    DISKPART> exit
    
    Leaving DiskPart...
    
    X:\Sources>dism /get-imageinfo /imagefile:d:\sources\install.wim
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Details for image : d:\sources\install.wim
    
    Index : 1
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 14,513,453,277 bytes
    
    Index : 2
    Name : Windows 10 Home N
    Description : Windows 10 Home N
    Size : 13,698,165,844 bytes
    
    Index : 3
    Name : Windows 10 Home Single Language
    Description : Windows 10 Home Single Language
    Size : 14,495,067,516 bytes
    
    Index : 4
    Name : Windows 10 Education
    Description : Windows 10 Education
    Size : 14,780,689,298 bytes
    
    Index : 5
    Name : Windows 10 Education N
    Description : Windows 10 Education N
    Size : 13,967,235,459 bytes
    
    Index : 6
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 14,782,181,615 bytes
    
    Index : 7
    Name : Windows 10 Pro N
    Description : Windows 10 Pro N
    Size : 13,968,715,159 bytes
    
    Index : 8
    Name : Windows 10 Pro Education
    Description : Windows 10 Pro Education
    Size : 14,780,619,060 bytes
    
    Index : 9
    Name : Windows 10 Pro Education N
    Description : Windows 10 Pro Education N
    Size : 13,967,164,321 bytes
    
    Index : 10
    Name : Windows 10 Pro for Workstations
    Description : Windows 10 Pro for Workstations
    Size : 14,780,653,945 bytes
    
    Index : 11
    Name : Windows 10 Pro N for Workstations
    Description : Windows 10 Pro N for Workstations
    Size : 13,967,199,656 bytes
    
    The operation completed successfully.
    
    X:\Sources>dism /apply-image /imagefile:d:\sources\install.wim /index:6 /applydir:w:\ /checkintegrity
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Applying image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    X:\Sources>rem Removed Windows 10 DVD and inserted Windows 7 DVD.
    
    X:\Sources>dism /get-imageinfo /imagefile:d:\sources\install.wim
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Details for image : d:\sources\install.wim
    
    Index : 1
    Name : Windows 7 Home Basic
    Description : Windows 7 Home Basic
    Size : 11,710,161,360 bytes
    
    Index : 2
    Name : Windows 7 Home Premium
    Description : Windows 7 Home Premium
    Size : 12,222,587,449 bytes
    
    Index : 3
    Name : Windows 7 Professional
    Description : Windows 7 Professional
    Size : 12,122,886,417 bytes
    
    Index : 4
    Name : Windows 7 Ultimate
    Description : Windows 7 Ultimate
    Size : 12,285,492,779 bytes
    
    The operation completed successfully.
    
    X:\Sources>dism /apply-image /imagefile:d:\sources\install.wim /index:3 /applydir:c:\ /checkintegrity
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Applying image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    X:\Sources>bcdboot c:\windows /l en-us /s c: /f bios
    Boot files successfully created.
    
    X:\sources>bcdboot w:\windows /l en-us /s s: /f uefi
    Boot files successfully created.
    
    X:\sources>bootsect /nt60 c: /mbr
    Target volumes will be updated with BOOTMGR compatible bootcode.
    
    C: (\\?\Volume{02cca004-0000-0000-0000-100000000000})
    
        Successfully updated NTFS filesystem bootcode.
    
    \??\PhysicalDrive0
    
        Successfully updated disk bootcode.
    
    Bootcode was successfully updated on all targeted volumes.
    
    X:\sources>exit
    

    取出 DVD 并单击红色 X 以重新启动虚拟机。完成安装 Windows 10。关闭虚拟机,然后取消选中Enable EFI (special Ones only)设置中的选项,如下所示。

    BIOS 启动虚拟机并完成安装 Windows 7。

    可选步骤

    The following was omitted in the above example.

    • The System and Recovery partitions were omitted from disk 0. The files that would have been stored in these partitions were installed in Windows partition of disk 0 instead.
    • The Recovery partition was omitted from disk 1. The files that would have been stored in this partition were installed in Windows partition on disk 1 instead.
    • Any extra steps needed to install for Secure Boot.
    • The use of the Dism /Add-Driver command to add any required drivers to the driver store.

    Additional References

    DISM Image Management Command-Line Options
    DISM Driver Servicing (.inf) Command-Line Options
    BCDBoot Command-Line Options
    Bootsect Command-Line Options
    BIOS/MBR-based hard drive partitions
    UEFI/GPT-based hard drive partitions

    • 4

相关问题

  • GPT 驱动器未在 bios 中显示为 UEFI

  • 查看主板是否支持 UEFI

  • Macbook pro 2017。kali 的 USB 安装,不启动到 usb

  • 我的 BIOS 坏了

  • Windows 将引导加载程序移动到另一个驱动器

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve