If you see error 0x80042405 0xA001B while using the Windows 10 Media Creation Tool, the fix is to free up space on the drive you are installing to, format it, or use a different USB drive. This error typically means the tool cannot write the installation files to the target drive, often because it is too small, already partitioned, or has a corrupted file system.
What This Error Means
The Media Creation Tool is Microsoft’s utility for creating a bootable USB drive or downloading a Windows 10 ISO file. Error 0x80042405 0xA001B appears during the USB creation phase, not during Windows installation. The first part, 0x80042405, is a generic error code that often maps to “insufficient resources” or “disk write failure.” The second part, 0xA001B, is a more specific internal code that the tool uses to indicate it could not properly partition or format the selected USB drive.
In practice, this combination almost always points to one of these issues:
- The USB drive is too small (less than 8 GB).
- The USB drive has an existing partition layout that the tool cannot overwrite.
- The drive is write-protected or has a failing controller.
- Windows is blocking the write because of antivirus or storage policies.
- The USB port is delivering insufficient power, especially on older front-panel ports.
Before You Start: Check the Basics
Do not skip these quick checks, as they resolve a surprising number of cases:
- Use a USB drive that is at least 8 GB. The tool needs about 4-5 GB for the Windows 10 installation files, but it also needs room for temporary files and the partition structure. A 16 GB drive is a safer choice.
- Insert the drive directly into a rear USB port on a desktop, or a USB 2.0 port if you have one. Some USB 3.0 ports have compatibility quirks with the Media Creation Tool.
- Close all other programs, especially file explorers, antivirus scanners, and disk management tools.
- Make sure the drive is not mounted as a virtual disk (like a BitLocker To Go drive).
Fix 1: Clean the USB Drive Using Diskpart
The most reliable fix is to wipe the drive completely and let the tool start fresh. Windows’ built-in diskpart tool can remove all partitions and hidden volumes that the Media Creation Tool cannot see.
- Back up any files on the USB drive (this will erase everything).
- Press Win + X and select Windows PowerShell (Admin) or Command Prompt (Admin).
- Type
diskpartand press Enter. - Type
list diskand press Enter. Note the disk number of your USB drive (usually Disk 1, 2, etc.). Be careful not to select your main hard drive. - Type
select disk X(replace X with the correct number) and press Enter. - Type
cleanand press Enter. This removes all partitions and signatures. - Type
exitand press Enter.
After cleaning, close the command window and run the Media Creation Tool again. It should now see the drive as unallocated space and format it correctly.
Fix 2: Format the Drive in File Explorer First
If you prefer not to use diskpart, a simple format often works. The Media Creation Tool expects a drive with a single FAT32 or NTFS partition. If the drive has multiple partitions or an unrecognized file system, it may throw the error.
- Open File Explorer, right-click the USB drive, and select Format.
- Choose FAT32 if the drive is 32 GB or smaller, or NTFS if it is larger. The tool will reformat it anyway, but this gives it a clean starting point.
- Set the allocation unit size to Default and check Quick Format.
- Click Start and wait for it to finish.
If the format fails with a “Windows was unable to complete the format” message, the drive may be write-protected. Some USB drives have a physical lock switch on the side; check that it is set to the unlocked position.
Fix 3: Use a Different USB Drive or Port
Sometimes the drive itself is the problem. Flash memory can degrade over time, and the Media Creation Tool is very sensitive to write errors. If you have another USB drive, try it. If you only have one, try a different USB port, especially a USB 2.0 port if available. Also avoid using a USB hub or extension cable, as those can cause power drops.
If you are using a USB 3.0 drive on a USB 3.0 port and it fails, try a USB 2.0 port. The tool sometimes has issues with the faster interface on certain hardware combinations.
Fix 4: Run the Tool as Administrator and Disable Antivirus
Antivirus software, especially third-party suites, can interfere with the Media Creation Tool’s ability to write to the drive. Temporarily disable your antivirus real-time protection (not just the firewall) and run the tool as administrator:
- Right-click the Media Creation Tool executable and select Run as administrator.
- If you have third-party antivirus, right-click its tray icon and choose to disable protection for 10-15 minutes.
- Try creating the USB drive again.
Do not leave your antivirus disabled longer than necessary, and re-enable it as soon as the tool finishes.
Fix 5: Use the ISO Download as an Alternative
If the USB creation still fails, you can bypass the tool entirely. Download the Windows 10 ISO file from Microsoft’s website, then use a free utility like Rufus to create the bootable USB. This is a reliable workaround that many users find easier.
- Go to Microsoft’s Windows 10 download page and select Download the ISO now.
- Choose the edition and language, then download the ISO file.
- Download and run Rufus (a portable tool).
- Select your USB drive, choose the ISO file, and click Start.
- Rufus will handle partitioning and formatting automatically.
This method avoids the Media Creation Tool’s internal logic entirely, so the 0x80042405 0xA001B error does not occur.
Frequently Asked Questions
Q: Will this error damage my USB drive?
No. The error is a software failure, not a hardware failure. The drive should still work normally for storing files, though if the error persists after cleaning and formatting, the drive might be failing.
Q: Can I use a USB drive that already has Windows installation files on it?
Yes, but you must format or clean it first. The Media Creation Tool will overwrite existing files, but it sometimes fails if the drive has a non-standard partition layout. Use diskpart clean to remove all partitions.
Q: Does the USB drive need to be empty?
Not necessarily, but it is strongly recommended. The tool will format the drive, erasing everything. If you have important files, back them up first.
Q: Why does the error happen with a 32 GB drive but not a 16 GB one?
Some large drives come with a pre-installed partition or a hidden recovery partition. The Media Creation Tool may not be able to handle these. Cleaning the drive with diskpart usually fixes it.
Q: Is there a way to fix this without losing data on the USB drive?
No. The Media Creation Tool requires a clean, formatted drive. You must back up any data before proceeding.
Q: Can I use an external hard drive instead of a USB flash drive?
Yes, but the same rules apply. The drive must be at least 8 GB, and you must be willing to erase all data on it. The tool will reformat it, so back up first.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Facebook Keeps Crashing on iOS 16? Fixes That Work
- Send Apple Pay in a Group Chat: iPhone & iPad
- Fix Cortana Not Working in Windows 11
- Fix iPhone Speaker Crackling: Step-by-Step
- Antimicrobial USB Drives: Claims and Limits
- How to Enable Developer Mode on Discord