The essentials

Quick reference

One focused task per row. Jump to the related section for complete, working examples.

UseSyntaxExamples
Select the destination diskselect disk 3View examples
Verify disk identitydetail diskView examples
Erase existing layoutcleanView examples
Initialize MBRconvert mbrView examples
Create a system partitioncreate partition primary size=500View examples
Format the system partitionformat quick fs=ntfs label="System"View examples
Mark the system partition activeactiveView examples
Mount system in WinPEassign letter=SView examples
Create the Windows partitioncreate partition primaryView examples
Reserve 1500 MB for recoveryshrink desired=1500 minimum=1500View examples
Format Windows as NTFSformat quick fs=ntfs label="Windows"View examples
Mount Windows in WinPEassign letter=WView examples
Create recovery storagecreate partition primaryView examples
Set the MBR recovery typeset id=27View examples
Create an extended partitioncreate partition extendedView examples
Create a logical drivecreate partition logical size=20480View examples
List final partitionslist partitionView examples
List final volumeslist volumeView examples

BIOS/MBR layouts are for hardware booted in legacy BIOS compatibility mode. Modern UEFI deployments should use GPT instead. MBR limits usable partitions to four primary entries and Windows boot partitions to 2 TB, so plan the layout before erasing the disk. The complete deployment script is destructive, uses temporary Windows PE letters, and must be bound to a physically verified destination.

Step by step

Detailed examples

01

Use MBR only for an actual legacy BIOS requirement

Legacy BIOS boots Windows from an MBR disk and an active system partition. UEFI systems should normally use GPT. Confirm the machine is booted in the intended firmware mode and that the deployment requirement is not merely inherited. Match disk number to location path, model, serial, size, ID, and current layout before any destructive command.

Read-only firmware and target check
list disk
select disk 3
detail disk
list partition
rem Stop unless the approved device truly requires legacy BIOS and MBR.
Back to quick reference ↑
02

Erase and initialize the approved disk as MBR

Clean removes the existing layout and data access. Convert mbr then writes an empty MBR partition table. MBR supports at most four primary partition entries and Windows partitions up to 2 TB. If the system can boot UEFI, reconsider GPT before committing to those limits.

Initialize a legacy deployment disk
select disk 3
detail disk
clean
convert mbr
list disk
Back to quick reference ↑
03

Create and activate the BIOS system partition

The boot files reside on a primary NTFS system partition marked active. Active is meaningful for MBR/BIOS, not UEFI/GPT. Marking the wrong partition active can make the machine unbootable. The 500 MB example exceeds Microsoft's 100 MB minimum and leaves practical servicing room; deployment requirements may justify a different size.

Prepare the BIOS system partition
create partition primary size=500
format quick fs=ntfs label="System"
assign letter=S
active
Back to quick reference ↑
04

Place recovery after the Windows partition

Create Windows, reserve enough trailing capacity, format NTFS, and then create recovery. Microsoft recommends recovery immediately after Windows. The example reserves 1500 MB, exceeding the 990 MB custom-layout minimum; increase it for larger winre.wim files and servicing headroom. MBR recovery partitions use type 27.

Create Windows and recovery partitions
create partition primary
shrink desired=1500 minimum=1500
format quick fs=ntfs label="Windows"
assign letter=W
create partition primary
format quick fs=ntfs label="Recovery"
assign letter=R
set id=27
Back to quick reference ↑
05

Use an extended partition only when four entries are insufficient

An extended partition consumes one of the four MBR entries but can contain multiple logical drives. Do not add one blindly to the standard three-partition Windows layout; reserve the remaining table entry intentionally. Logical drives are a compatibility mechanism, not a reason to choose MBR for new hardware.

Lab-only extended and logical layout
select disk 3
list partition
rem Ensure one MBR table entry is intentionally reserved.
create partition extended
create partition logical size=20480
format quick fs=ntfs label="LegacyData"
assign letter=D
Back to quick reference ↑
06

Verify active state, types, and temporary letters

Before applying images, confirm order, size, active marker, recovery type, and filesystems. S, W, and R are temporary Windows PE letters; never use X because WinPE reserves it, and do not expect the letters to persist after reboot. After installation, verify boot and Windows RE, then ensure system and recovery partitions have no ordinary drive letters.

Complete destructive BIOS/MBR deployment script
rem WARNING: this script erases disk 3.
select disk 3
clean
convert mbr
create partition primary size=500
format quick fs=ntfs label="System"
assign letter=S
active
create partition primary
shrink desired=1500 minimum=1500
format quick fs=ntfs label="Windows"
assign letter=W
create partition primary
format quick fs=ntfs label="Recovery"
assign letter=R
set id=27
list partition
list volume
exit
Back to quick reference ↑

Sources and further reading

References

Authoritative documentation used to verify and expand this cheat sheet.

  1. MicrosoftBIOS/MBR-based hard drive partitionslearn.microsoft.com
  2. MicrosoftWindows Setup: MBR or GPT partition stylelearn.microsoft.com
  3. MicrosoftHard drives and partitionslearn.microsoft.com
  4. Microsoftactivelearn.microsoft.com

Help us improve

Found a typo or missing example?

Tell us what would make this cheat sheet clearer, more complete, or more useful.

Share feedback