You don't need to boot into Windows to use Diskpart. You can trigger it directly from the installation media. Boot your PC using a Windows 10 USB or DVD.
If your drive has old partitions or the wrong file system, follow these steps to reset it completely. diskpart windows 10 install
Type list disk to see all connected storage. You don't need to boot into Windows to use Diskpart
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. If your drive has old partitions or the
Most modern Windows 10 installs require GPT. Type convert gpt . Create a primary partition: Type create partition primary . Format the drive: Type format fs=ntfs quick . Finish up: Type exit and close the Command Prompt.
Type select disk X (Replace X with the number of your intended drive, usually Disk 0).
On the "Install Now" screen (or where you select your language), press . A black Command Prompt window will open. Type diskpart and press Enter . Step-by-Step: Preparing a Disk for Installation