Use this if the drive has messy partitions or you want a fresh start. list disk (Shows all connected drives) select disk X (Replace X with your drive number, usually 0) clean (Wipes the partition table) 2. Convert to GPT (For UEFI/Modern BIOS)
Explain the difference between for your specific PC.
Happy computing
To prepare the drive to hold the operating system, type create partition primary and press . Optional: You can specify the size, but create partition primary uses the entire drive.
If you see an error saying the disk is of the GPT partition style but your BIOS is set to Legacy (or vice versa), Diskpart is the only way to fix it without third-party software. Use the convert gpt or convert mbr commands after the clean step to match your BIOS settings. diskpart windows 10 install
The standard graphical user interface (GUI) in Windows 10 setup is sufficient for basic installations. However, Diskpart becomes essential in several specific scenarios:
Mark the partition as active (only required for older MBR/BIOS systems): active Use code with caution. Step 6: Exit Diskpart and Continue Installation Use this if the drive has messy partitions
Modern PCs using UEFI firmware require the partition style. Older PCs using Legacy BIOS require MBR . If the Windows installer gives you a partition style error, convert the disk now. For Modern UEFI Systems (Recommended) If your PC uses UEFI mode, convert the disk to GPT: convert gpt Use code with caution. For Older Legacy BIOS Systems
select disk 0 clean convert gpt (or mbr) exit Happy computing To prepare the drive to hold
Diskpart is a powerful utility for managing disks and partitions during a Windows 10 installation. By following the steps and examples in this guide, you can create, delete, and modify partitions on your hard drive. Remember to use caution when working with Diskpart, as incorrect operations can lead to data loss or system instability.