If your USB drive will not format, shows up as read-only or with the wrong size, try these steps in order. They all erase the contents of the USB drive.
1. Format it with DiskPart
First, try wiping and formatting it manually: how to format a USB drive with DiskPart.
2. Quick zero-fill with Rufus
- Open Rufus and select the failing USB drive.
- Press Ctrl + Alt + Z. Rufus will write zeros across the whole drive, skipping blocks that are already zero, so it is relatively quick.
- When it finishes, unplug the drive, plug it back in and run a quick format.
3. Full zero-fill with Rufus
- If that does not work, press Alt + Z in Rufus. This time it writes zeros to every block, without exception.
- It takes much longer: be patient and do not unplug it.
- When it finishes, unplug, plug back in and format.
4. If it still does not work
The USB drive may be physically damaged, or its controller may have locked itself into read-only mode to protect the data. In that case the most practical option is to replace it. Be wary of very cheap drives from unknown brands: they often claim more capacity than they really have and fail early.