以 BIOS/MBR 為基礎的硬碟磁碟分割BIOS/MBR-based hard drive partitions

將 Windows 部署至 BIOS 型裝置時,請為您的硬碟(Hdd)、固態硬碟(Ssd)和其他磁片磁碟機建立自訂的磁碟分割配置。Create custom partition layouts for your hard disk drives (HDDs), solid-state drives (SSDs), and other drives when deploying Windows to BIOS–based devices.

注意  如果您在 Windows 10 傳統型版本(家用版、專業版、企業版和教育版)上使用自訂磁碟分割配置,請更新推播按鈕復原腳本,讓復原工具可以在需要時重新建立自訂磁碟分割配置。Note  If you use a custom partition layout on Windows 10 for desktop editions (Home, Pro, Enterprise, and Education), update the push-button recovery script so the recovery tools can recreate the custom partition layout when needed.

分割區需求Partition Requirements

當您將 Windows 部署至 BIOS 型裝置時,必須使用 MBR 檔案系統來格式化硬碟。When you deploy Windows to a BIOS-based device, you must format hard drives by using an MBR file system. Windows 不支援 BIOS 型電腦上的 GUID 磁碟分割表格(GPT)檔案系統。Windows does not support the GUID partition table (GPT) file system on BIOS-based computers.

MBR 磁碟磁碟機最多可以有四個標準磁碟分割。An MBR drive can have up to four standard partitions. 一般而言,這些標準分割區會指定為主要磁碟分割Typically, these standard partitions are designated as primary partitions. 如需有關如何建立超出此限制的其他磁碟分割的詳細資訊,請參閱在BIOS/MBR 型硬碟上設定四個以上的磁碟分割。For information about how to create additional partitions beyond this limit, see Configure More than Four Partitions on a BIOS/MBR-Based Hard Disk.

系統磁碟分割System partition

每個可啟動的磁片磁碟機都必須包含一個系統磁碟分割。Each bootable drive must contain a system partition. 系統磁碟分割必須設定為使用中的磁碟分割。The system partition must be configured as the active partition.

此分割區的大小下限為 100 MB。The minimum size of this partition is 100 MB.

Windows 磁碟分割Windows partition

  • 針對64位版本,此磁碟分割必須至少有 20 gb 的磁片磁碟機空間,或32位版本為 16 GB。This partition must have at least 20 gigabytes (GB) of drive space for 64-bit versions, or 16 GB for 32-bit versions.
  • Windows 磁碟分割必須使用 NTFS 檔案格式來格式化。The Windows partition must be formatted using the NTFS file format.
  • 使用者完成全新體驗(OOBE)並完成自動維護之後,Windows 分割區必須有 16 GB 的可用空間。The Windows partition must have 16 GB of free space after the user has completed the Out Of Box Experience (OOBE) and Automatic Maintenance has completed.
  • 此分割區最多可以有 2 tb 的空間。This partition can have a maximum of 2 terabytes (TB) of space. BIOS 不支援將可見磁碟分割空間延伸至超過 2 TB 的軟體工具,因為它們可能會干擾軟體解決方案的應用程式相容性和復原。Software tools to extend the visible partition space beyond 2 TB are not supported on BIOS because they can interfere with software solutions for application compatibility and recovery.

修復工具分割區Recovery tools partition

建立個別的復原磁碟分割,以支援自動容錯移轉,以及支援將 Windows BitLocker 磁碟機加密加密的磁碟分割啟動。Create a separate recovery partition to support automatic failover and to support booting Windows BitLocker Drive Encryption-encrypted partitions.

我們建議您將此分割區放在個別的磁碟分割中,緊接在 Windows 磁碟分割之後。We recommend that you place this partition in a separate partition, immediately after the Windows partition. 這可讓 Windows 在日後更新需要較大的復原映射後,修改並重新建立磁碟分割。This allows Windows to modify and recreate the partition later if future updates require a larger recovery image.

Windows 修復環境(Windows RE)工具需要額外的可用空間:The Windows Recovery Environment (Windows RE) tools require additional free space:

  • 至少需要 52 MB,但建議使用 250 MB,以配合未來的更新,特別是自訂的資料分割配置。A minimum of 52 MB is required but 250 MB is recommended, to accomodate future updates, especially with custom partition layouts.

計算可用空間時,請注意:When calculating free space, note:

  • 復原映射 winre 通常介於 250 300MB 之間,視您新增的驅動程式、語言和自訂而定。The recovery image, winre.wim, is typically between 250-300MB, depending on what drivers, languages, and customizations you add.
  • 檔案系統本身可能會佔用更多空間。The file system itself can take up additional space. 例如,NTFS 可能會在750MB 磁碟分割上保留5個15MB 或更多的資料。For example, NTFS may reserve 5-15MB or more on a 750MB partition.

資料分割Data partitions

建議的 Windows 10 磁碟分割配置不包含公用程式或資料磁碟分割。The recommended partition layout for Windows 10 does not include utility or data partitions.

不過,如果需要公用程式或資料分割,則應該將它們放在 Windows 分割區之前或 Windows RE 磁碟分割之後。However, if utility or data partitions are required, they should be placed either before the Windows partition or after the Windows RE partition. 藉由將 Windows 和修復磁碟分割保持在一起,當 Windows RE 的未來更新可用時,Windows 就能夠藉由壓縮 Windows 磁碟分割來擴大 Windows RE 磁碟分割的範圍。By keeping the Windows and recovery partitions together, then when future updates of Windows RE area available, Windows will be able to grow the Windows RE partition by shrinking the Windows partition.

此配置可讓使用者更難以移除資料分割,並將空間與 Windows 分割區合併。This layout makes it more difficult for end users to remove the data partition and merge the space with the Windows partition. 例如,Windows RE 磁碟分割可能需要移至從資料分割區回收之未使用空間的結尾,以便擴充 Windows 磁碟分割。For example, the Windows RE partition may need to be moved to the end of the unused space reclaimed from the data partition, so that the Windows partition can be extended. Windows 10 並不包含功能或公用程式來協助執行此流程。Windows 10 does not include functionality or utility to facilitate this process. 不過,如果電腦隨附于資料分割區,則製造商可以開發並提供這類公用程式。However, manufacturers can develop and provide such a utility if PCs are shipped with data partitions.

每個分割區最多可以有 2 tb 的空間。Each partition can have a maximum of 2 terabytes (TB) of space.

如果您要在磁片上新增四個以上的分割區,請參閱在BIOS/MBR 型硬碟上設定四個以上的分割區,以取得詳細資訊。If you're going to be adding more than four total partitions to the disk, see Configure More than Four Partitions on a BIOS/MBR-Based Hard Disk for more info.

資料分割版面配置Partition layout

如果您使用 Windows 映像和設定設計工具(ICD)所建立的可開機 USB 金鑰來安裝 Windows,它預設會建立下列版面配置:系統磁碟分割、Windows 磁碟分割和修復工具磁碟分割。If you install Windows using a bootable USB key made by Windows Imaging and Configuration Designer (ICD), it creates the following layout by default: a system partition, a Windows partition, and a recovery tools partition.

預設磁碟分割配置的圖表:系統、Windows 與修復

系統和公用程式磁碟分割System and utility partitions

根據預設,系統磁碟分割不會出現在檔案瀏覽器中。By default, system partitions do not appear in File Explorer. 這有助於防止使用者不小心修改資料分割。This helps protect end users from accidentally modifying a partition.

若要讓系統和公用程式的分割區無法重設,請使用類型0x27。To keep system and utility partitions from being reset, use type 0x27. 請勿使用下列任何類型:0x7、0x0c、0x0b、0x0e、0x06 和0x42。Do not use any of the following types: 0x7, 0x0c, 0x0b, 0x0e, 0x06, and 0x42.

將分割區設定為公用程式分割區To set partitions as utility partitions

  1. 當您使用 Windows ICD 部署 Windows 時,將會自動設定磁碟分割類型。When you are deploying Windows by using Windows ICD, the partition type will be set automatically.
  2. 當您使用DiskPart工具部署 Windows 時,請在建立磁碟分割之後,使用set id = 27命令。When you are deploying Windows by using the DiskPart tool, use the set id=27 command after you create the partition.

確認系統和公用程式磁碟分割是否存在To verify that system and utility partitions exist

  1. 按一下 [開始],以滑鼠右鍵按一下 [這部電腦],然後按一下 [管理]。Click Start, right-click This PC, and then click Manage. [電腦管理] 視窗隨即開啟。The Computer Management window opens.
  2. 按一下 [磁碟管理]。Click Disk Management. [可用的磁片磁碟機] 和 [磁碟分割] 清單隨即出現。The list of available drives and partitions appears.
  3. 在磁片磁碟機和磁碟分割清單中,確認系統和公用程式磁碟分割存在,而且未指派磁碟機號。In the list of drives and partitions, confirm that the system and utility partitions are present and are not assigned a drive letter.

範例檔案:使用 Windows PE 和 DiskPart 腳本設定磁片版面配置Sample files: configuring disk layout by using Windows PE and DiskPart scripts

若是以映射為基礎的部署,請將電腦開機至WINDOWS PE,然後使用DiskPart工具在目的地電腦上建立磁碟分割結構。For image-based deployment, boot the PC to Windows PE, and then use the DiskPart tool to create the partition structures on your destination PCs.

請注意   在這些DiskPart範例中,會將下列字母指派給分割區: System = S、Windows = W 和 Recovery = R。Note   In these DiskPart examples, the partitions are assigned the letters: System=S, Windows=W, and Recovery=R.

將 Windows 磁碟機號變更為接近字母結尾的字母(例如 W),以避免發生磁碟機號衝突。Change the Windows drive letter to a letter that’s near the end of the alphabet, such as W, to avoid drive letter conflicts. 請勿使用 X,因為此磁碟機號已保留給 Windows PE。Do not use X, because this drive letter is reserved for Windows PE. 裝置重新開機之後,Windows 磁碟分割會被指派磁碟機代號 C,其他磁碟分割則不會收到磁碟機代號。After the device reboots, the Windows partition is assigned the letter C, and the other partitions don’t receive drive letters.

如果您重新開機,Windows PE 會從字母 C 開始,不考慮 Windows 安裝程式中的設定,依字母順序重新指派磁片字母。If you reboot, Windows PE reassigns disk letters alphabetically, starting with the letter C, without regard to the configuration in Windows Setup. 此設定可能會根據不同的磁片磁碟機(例如 USB 快閃磁片磁碟機)的存在而變更。This configuration can change based on the presence of different drives, such as USB flash drives.

下列步驟說明如何分割硬碟並準備套用映射。The following steps describe how to partition your hard drives and prepare to apply images. 您可以使用下列各節中的程式碼來完成這些步驟。You can use the code in the sections that follow to complete these steps.

分割硬碟並準備套用映射To partition hard drives and prepare to apply images

  1. 將下列程式碼儲存為 USB 快閃磁片磁碟機上的文字檔(CreatePartitions-BIOS .txt)。Save the following code as a text file (CreatePartitions-BIOS.txt) on a USB flash drive.

    rem == CreatePartitions-BIOS.txt ==
    rem == These commands are used with DiskPart to
    rem    create three partitions
    rem    for a BIOS/MBR-based computer.
    rem    Adjust the partition sizes to fill the drive
    rem    as necessary. ==
    select disk 0
    clean
    rem == 1. System partition ======================
    create partition primary size=100
    format quick fs=ntfs label="System"
    assign letter="S"
    active
    rem == 2. Windows partition =====================
    rem ==    a. Create the Windows partition =======
    create partition primary
    rem ==    b. Create space for the recovery tools  
    rem       ** Update this size to match the size of
    rem          the recovery tools (winre.wim)
    rem          plus some free space.
    shrink minimum=650
    rem ==    c. Prepare the Windows partition ====== 
    format quick fs=ntfs label="Windows"
    assign letter="W"
    rem == 3. Recovery tools partition ==============
    create partition primary
    format quick fs=ntfs label="Recovery"
    assign letter="R"
    set id=27
    list volume
    exit
    
  2. 使用 Windows PE 來啟動目的地電腦。Use Windows PE to boot the destination computer.

  3. 清理並分割磁片磁碟機。Clean and partition the drive. 在此範例中, F是 USB 快閃磁片磁碟機的代號。In this example, F is the letter of the USB flash drive.

    DiskPart /s F:\CreatePartitions-BIOS.txt
    
  4. 如果您使用 Windows 10 傳統型版本的自訂磁碟分割配置,請更新推播按鈕復原腳本,讓修復工具可以在需要時重新建立自訂磁碟分割配置。If you use a custom partition layout on Windows 10 for desktop editions, update the push-button recovery script so the recovery tools can recreate the custom partition layout when needed.

    重要 為了避免因為磁碟分割大小而發生裸機復原開機問題,建議製造商允許裸機復原功能的自動產生腳本,以建立用於復原 WIM 的磁碟分割。Important To avoid bare metal recovery boot issues due to partition size, it is recommended that manufacturers allow the bare metal recovery feature’s auto generation script to create the partition used for the recovery WIM. 如果製造商想要使用自訂的 DISKPART 腳本來建立資料分割,建議的最小分割區大小為990MB,而最小值為250MB 的可用空間。If manufacturer’s wish to use a custom DISKPART script for partition creation, the recommended minimum partition size is 990MB and a minimum of 250MB of free space.

後續步驟Next steps

使用部署腳本,將 Windows 映像套用到新建立的磁碟分割上。Use a deployment script to apply the Windows images on the newly created partitions. 如需詳細資訊,請參閱捕獲及套用 Windows、系統和修復磁碟分割For more information, see Capture and Apply Windows, System, and Recovery Partitions.

相關主題Related topics

範例指令碼Sample scripts

在以 BIOS/MBR 為基礎的硬碟上設定四個以上的磁碟分割Configure More than Four Partitions on a BIOS/MBR-Based Hard Disk

設定以 UEFI/GPT 為基礎的硬碟磁碟分割Configure UEFI/GPT-Based Hard Drive Partitions

BitLocker 磁碟機加密BitLocker Drive Encryption

設定磁片鏡像Configuring Disk Mirroring