Windows 安裝程式:使用 MBR 或 GPT 磁碟分割樣式進行安裝Windows Setup: Installing using the MBR or GPT partition style

使用 Windows 安裝程式在 UEFI 型電腦上安裝 Windows 時,硬碟的磁碟分割樣式必須設定為支援 UEFI 模式或舊版 BIOS 相容性模式。When installing Windows on UEFI-based PCs using Windows Setup, your hard drive partition style must be set up to support either UEFI mode or legacy BIOS-compatibility mode.

例如,如果您收到錯誤訊息:「Windows 無法安裝在此磁碟上。For example, if you receive the error message: “Windows cannot be installed to this disk. 選取的磁碟不屬於 GPT 磁碟分割樣式」,這是因為您的電腦在 UEFI 模式中開機,但您的硬碟並未設定為 UEFI 模式。The selected disk is not of the GPT partition style”, it’s because your PC is booted in UEFI mode, but your hard drive is not configured for UEFI mode. 您有幾個選項:You’ve got a few options:

  1. 在舊版 BIOS 相容性模式中將電腦重新開機。Reboot the PC in legacy BIOS-compatibility mode. 此選項可讓您保留現有的磁碟分割樣式。This option lets you keep the existing partition style. 如需詳細資訊,請參閱 開機至 UEFI 模式或舊版 BIOS 模式For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  2. 使用 GPT 磁碟分割樣式,為您的磁碟機設定 UEFI。Configure your drive for UEFI by using the GPT partition style. 此選項可讓您使用電腦的 UEFI 韌體功能。This option lets you use the PC’s UEFI firmware features.

    您可以使用 MBR2GPT 工具來保留資料及轉換磁碟機。You can preserve your data and convert the drive using the MBR2GPT tool. 您也可以使用下列指示,選擇重新格式化磁碟機。You can also choose to reformat the drive using the instructions below. 重新格式化會清除磁碟機上的所有資料。Reformatting will erase all the data on the drive.

為什麼我應轉換磁碟機?Why should I convert my drive?

目前有許多電腦都提供使用 UEFI 版 BIOS 的功能,可加快開機和關機時間,並提供額外的安全性優勢。Many PCs now include the ability to use the UEFI version of BIOS, which can speed up boot and shutdown times and can provide additional security advantages. 若要在 UEFI 模式中將電腦開機,您必須使用 GPT 磁碟機格式將磁碟機格式化。To boot your PC in UEFI mode, you'll need to use a drive formatted using the GPT drive format.

許多電腦都可直接使用 UEFI,但其包含的相容性支援模組 (CSM) 設定為使用舊版的 BIOS。Many PCs are ready to use UEFI, but include a compatibility support module (CSM) that is set up to use the legacy version of BIOS. 此版本的 BIOS 開發於 1970 年代,因此提供多種舊設備和網路組態的相容性,且需要採用 MBR 磁碟機格式的磁碟機。This version of BIOS was developed in the 1970s and provides compatibility to a variety of older equipment and network configurations, and requires a drive that uses the MBR drive format.

不過,基本的 MBR 磁碟機格式不支援 4TB 以上的磁碟機。However, the basic MBR drive format does not support drives over 4TB. 此外,也難以設定四個以上的磁碟分割。It's also difficult to set up more than four partitions. GPT 磁碟機格式可讓您設定大於 4 TB 的磁碟機,並且可讓您視需要輕鬆設定許多磁碟分割。The GPT drive format lets you set up drives that are larger than 4 terabytes (TB), and lets you easily set up as many partitions as you need.

使用不同的磁碟分割樣式將磁碟機重新格式化Reformatting the drive using a different partition style

使用 Windows 安裝程式抹除及轉換磁碟機To wipe and convert the drive by using Windows Setup

  1. 關閉電腦,然後放入 Windows 安裝 DVD 或 USB 隨身碟。Turn off the PC, and put in the Windows installation DVD or USB key.

  2. 以 UEFI 模式讓電腦開機進入 DVD 或 USB 隨身碟。Boot the PC to the DVD or USB key in UEFI mode. 如需詳細資訊,請參閱 開機至 UEFI 模式或舊版 BIOS 模式For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  3. 選擇安裝類型時,請選取 [自訂] 。When choosing an installation type, select Custom.

  4. 在 [您要將 Windows 安裝到何處?] 畫面上,選取磁碟機上的每個磁碟分割,然後選取 [刪除] 。On the Where do you want to install Windows? screen, select each of the partitions on the drive, and select Delete. 磁碟機將會顯示未配置空間的單一區域。The drive will show a single area of unallocated space.

  5. 選取未配置的空間,然後按 [下一步] 。Select the unallocated space and click Next. Windows 會偵測到電腦是以 UEFI 模式開機的,並使用 GPT 磁碟機格式將磁碟機重新格式化,然後開始安裝。Windows detects that the PC was booted into UEFI mode, and reformats the drive using the GPT drive format, and begins the installation.

若要手動抹除磁碟機並將其轉換為 GPT:To manually wipe a drive and convert it to GPT:

  1. 關閉電腦,然後放入 Windows 安裝 DVD 或 USB 隨身碟。Turn off the PC, and put in the Windows installation DVD or USB key.

  2. 以 UEFI 模式讓電腦開機進入 DVD 或 USB 隨身碟。Boot the PC to the DVD or USB key in UEFI mode. 如需詳細資訊,請參閱 開機至 UEFI 模式或舊版 BIOS 模式For more info, see Boot to UEFI Mode or Legacy BIOS mode.

  3. 在 Windows 安裝程式內按下 Shift+F10,以開啟命令提示字元視窗。From inside Windows Setup, press Shift+F10 to open a command prompt window.

  4. 開啟 diskpart 工具:Open the diskpart tool:

    diskpart
    
  5. 識別要重新格式化的磁碟機:Identify the drive to reformat:

    list disk
    
  6. 選取磁碟機,然後加以重新格式化:Select the drive, and reformat it:

    select disk <disk number>
    clean
    convert gpt
    exit
    
  7. 關閉命令提示字元視窗。Close the command prompt window.

  8. 繼續進行「Windows 安裝程式」安裝。Continue the Windows Setup installation.

    選擇安裝類型時,請選取 [自訂] 。When choosing an installation type, select Custom. 磁碟機將會顯示為未配置空間的單一區域。The drive will appear as a single area of unallocated space.

    選取未配置的空間,然後按 [下一步] 。Select the unallocated space and click Next. Windows 會開始進行安裝。Windows begins the installation.

確定 Windows 安裝程式開機進入正確的韌體模式Make sure Windows Setup boots to the correct firmware mode

若要將此程序自動化,您必須先透過 Windows PE 執行 Windows 安裝程式,並使用指令碼來偵測您所處的模式,再安裝 Windows。To automate this process, you'll need to run Windows Setup through Windows PE, and use a script to detect which mode you’re in before installing Windows. 如需詳細資訊,請參閱 WinPE:以 UEFI 或舊版 BIOS 模式開機For more info, see WinPE: Boot in UEFI or legacy BIOS mode.

相關主題Related topics

開機進入 UEFI 模式或舊版 BIOS 模式Boot to UEFI Mode or Legacy BIOS mode