The drive is visible but setup refuses it over a partition style error. DiskPart, opened without leaving setup, clears the old table and converts the disk to GPT in under a minute — after you read the warning.
Sometimes the drive does appear in Windows Setup, but installation refuses to start: "Windows cannot be installed to this disk. The selected disk has an MBR partition table", or a GPT style error, or leftover partitions from a previous life. The fix is DiskPart, opened from inside setup itself — and it comes with the sharpest warning on this page: the key command erases the entire disk. Read the warning first, then follow the steps.
clean command in this guide removes every partition and all data on the selected disk. There is no undo. If the disk holds anything you need, stop here, back it up from another system first, and only return when the disk is genuinely disposable.diskpart and press Enter, then list diskselect disk 0 — replace 0 with your disk's number, and re-read the warning above before continuingcleanconvert gptexit, then exit againThis route fixes partition style clashes (MBR disk on a UEFI install, the reverse on a legacy install where you would use convert mbr instead), damaged partition tables, and stubborn leftover recovery partitions that block setup. It does not fix a drive that is missing entirely — that is the RST driver or BIOS problem from the main guide — and it does not repair a physically failing drive that reports 0 MB or throws write errors. Clean will happily wipe a dying disk and setup will still fail; the failure signs are covered in their own page in this series.
clean from muscle memory — and every year it wipes the wrong disk on someone's machine. The ten seconds spent matching the disk number to its capacity in list disk is the cheapest insurance in all of PC repair.Watch the video for the full missing drive walkthrough, including what to try before DiskPart becomes necessary.
▶️ Watch Full VideoYes — clean removes all partitions and every file on the selected disk, and it cannot be undone from setup. Only use it on a disk you have backed up or do not need. Always confirm the disk in list disk by its capacity first; your boot USB appears in the same list and must not be selected.
For any modern UEFI PC installing Windows 10 or 11, convert gpt — UEFI setup requires a GPT system disk. Convert mbr is only for very old legacy BIOS machines. If setup complained the disk has an MBR partition table on a UEFI system, GPT is the fix; the mirror-image error on a legacy system calls for MBR.
Then the partition table was not the real problem. A disk that shows 0 MB, vanishes during setup, or produces write errors like 0x80300024 is usually failing hardware or a controller mode issue. Recheck the storage mode in BIOS and test the drive's health before blaming setup.