DiskPart finishes this job when the right-click format cannot — it deletes the whole partition map and lets you draw a fresh one. It is also the tool that erases the wrong disk without asking twice. This page takes it one careful command at a time.
This is the method the video falls back on, and the method technicians reach for first: five short commands that never fail on a genuine drive. Its only danger is human — selecting the wrong disk number — so this page is built around the checks that make that mistake impossible. Read steps 1 to 4 even if you are in a hurry. Especially if you are in a hurry.
DiskPart is honest software with no safety net: it does exactly what you type, immediately. So prepare first. Unplug every other USB drive so only one candidate remains. Note the sizes of your internal disks (most PCs show a 256 GB, 512 GB or 1 TB system disk — nothing like 57 GB). And rescue the pen drive's files first, because step 5 deletes them all. Two minutes of discipline is what separates this fix from the most common DiskPart accident story on the internet.
Right-click the Start button and open Terminal (Admin) or Command Prompt (Admin), approve the prompt, then type diskpart and press Enter. The prompt changes to DISKPART>. Every command below is typed at that prompt, one line at a time, pressing Enter after each. All commands here are plain, standard DiskPart — copy them exactly as written.
Type list disk. DiskPart lists whole devices, and drive letters do not exist at this level — only disk numbers. Your pen drive is the entry whose total Size matches the drive's true capacity: a 64 GB drive appears as about 57 GB. The giveaway is the Free column: on a shrunk drive it shows the missing space (about 43 GB in the video's case), because DiskPart counts everything outside partitions as free. Your internal Windows disk, by contrast, shows Free near 0 B.
Type select disk 2 — using your number from the list, not the example's — then detail disk. Read what comes back: the model name should be your pen drive's, and the type should say USB. If anything on that screen describes your internal SSD instead, stop, re-run list disk, and choose again. This ten-second check is the entire difference between a one-minute fix and a data-recovery emergency.
Now the working sequence:
clean erases the selected disk the instant you press Enter — there is no Are-you-sure prompt and no undo. It removes every partition and leaves the disk blank. create partition primary then draws one partition across the whole drive, the format gives it a file system (exFAT suits a large pen drive — the format-choice page in this set explains when FAT32 or NTFS is better), and assign gives it a drive letter so Explorer shows it at once.
If clean reports the disk is write-protected, run attributes disk clear readonly and try once more. If it still refuses, or errors mention I/O failures, the problem is no longer partitions — a controller-level lock or dying flash behaves exactly like that, and it belongs to a different fix family (the pendrive format-failure guides). Do not keep forcing commands at a drive that is reporting hardware errors.
clean executes instantly with no confirmation. Verify with list disk and detail disk until the screen itself names your USB drive. Only then clean.Watch the commands typed and verified live, including the moment the full size comes back.
▶️ Watch Full VideoBecause the two tools report different things. List disk describes the whole physical device, which was always 57 GB. Explorer describes one partition on it. The missing capacity sits between the two views as unallocated space — exactly what clean and a fresh partition reclaim.
Only when you are deliberately building an MBR-style bootable drive. For restoring a normal data pen drive it is unnecessary — create the partition, format it, assign a letter, and the drive is ready.
Yes. Explorer sometimes caches the old layout for a mounted device. Eject and reinsert the drive, or check Disk Management — the new full-size partition will be there. The replug is the refresh.