create partition msr size=16 Use code with caution.
Note the disk number (e.g., Disk 0, Disk 1) assigned to your target installation drive. 2. Select the Drive
Before diving into commands, understand the why . The standard Windows installer GUI has limitations:
This guide covers how to use Diskpart to prepare your drive during a clean Windows 10 installation. Prerequisites A Windows 10 installation USB drive.
Type clean and press . This command removes all existing partition and volume information from the drive. 5. Convert to GPT or MBR (Optional but Recommended) diskpart windows 10 install
during a Windows 10 installation, you can access the command-line utility by pressing Shift + F10 at the initial setup screen
Once the drive is cleaned and converted, close the command-line utility to return to the graphic user interface. Type the exit command and press : exit Use code with caution.
Insert your USB drive, restart your PC, and boot from it. You may need to press F12 , ESC , Del , or F2 (depending on your motherboard) to select the USB drive as the boot device.
Leo had tried everything. His Windows 10 PC was blue-screening every hour, riddled with corrupted drivers, and hiding three different recovery partitions from old updates. He needed a total reset—not the "keep your files" kind, but the scorched earth kind. create partition msr size=16 Use code with caution
Two advanced but important considerations for a fresh installation are SSD partition alignment and securely wiping a drive. Modern SSDs benefit significantly from correct alignment, which ensures that every read/write request aligns perfectly with the drive's internal page structure. This reduces unnecessary operations and extends the lifespan of the drive. When you use the clean command and let Windows install normally, it automatically aligns partitions correctly. However, if you are creating partitions manually, you can ensure perfect alignment by using the align=1024 parameter with the create partition primary command, which sets the partition offset to a 1MB boundary, guaranteeing 4K alignment.
The drive shows up incorrectly or fails to partition automatically.
Diskpart is a "destructive" tool. Using the clean command completely wipes the selected drive, removing all partitions and data. There is no "Undo" button. Please back up any important data before proceeding.
: Type exit and close the prompt to return to the installation window. Advanced: Creating a Manual Partition Layout Select the Drive Before diving into commands, understand
If your system requires Legacy MBR, you can type convert mbr instead, but for most modern PCs, GPT is the standard.
If you prefer to manually control your partition layout rather than letting Windows create default sizes, you can build the necessary system partitions via Diskpart. A standard Windows 10 UEFI system requires a GUID Partition Table (GPT) layout with specific hidden partitions:
But when he reached , he didn't choose Upgrade . He chose Custom: Install Windows only (advanced).