Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Undo ESD USB and Recover Files: Full Guide

· 6 min read · Home Tech

In this article
  1. What Is ESD-USB and Why Does It Hide Your Files?
  2. How to Undo ESD-USB: Step-by-Step
  3. Recovering Files After Undoing ESD-USB
  4. Common Problems and Mistakes
  5. ESD-USB vs. Regular USB Formatting
  6. Safety Tips and Precautions
  7. Frequently Asked Questions

If you accidentally turned a USB drive into an ESD-USB recovery drive and lost access to your files, you can undo it by wiping the partition structure and restoring the drive to normal storage—this also makes the old files recoverable with data recovery software. The process involves using Diskpart or a third-party tool to remove the hidden ESD-USB partitions, then scanning the drive to recover files that were on it before the conversion.

What Is ESD-USB and Why Does It Hide Your Files?

ESD-USB is a term used by Microsoft's Media Creation Tool when it creates a Windows installation USB drive. The tool formats the drive with a special partition layout: a small FAT32 partition (often labeled "ESD-USB") that contains the Windows setup files, and sometimes an additional NTFS partition for larger install.wim files. The rest of the drive is left unallocated or hidden, so your old files are no longer visible in File Explorer—but they are usually still physically present on the drive until overwritten.

People often create an ESD-USB drive by mistake when they select the wrong USB stick in the Media Creation Tool, or when they reuse an old drive that had important data. The tool does not warn that it will erase the drive; it simply proceeds with formatting, which can feel like data loss even though the data may be recoverable.

How to Undo ESD-USB: Step-by-Step

Undoing the ESD-USB layout means deleting all partitions on the drive and creating a single normal partition. This is done with Windows' built-in Diskpart tool or with a third-party partition manager. Here are the steps using Diskpart (Windows 10/11):

  1. Back up any files you still need from the ESD-USB partition (the Windows setup files) to another drive, just in case.
  2. Open Command Prompt as Administrator (search "cmd", right-click, "Run as administrator").
  3. Type diskpart and press Enter.
  4. Type list disk and press Enter. Note the disk number of your USB drive (usually Disk 1 or Disk 2, but verify by size).
  5. Type select disk X (replace X with your disk number) and press Enter.
  6. Type clean and press Enter. This removes all partition tables and makes the drive completely unallocated.
  7. Type create partition primary and press Enter.
  8. Type format fs=ntfs quick (or fat32 if you need compatibility with older devices) and press Enter.
  9. Type assign to give the drive a letter, then type exit.

After this, the drive will appear as a normal empty drive in File Explorer. You can now use it for storage again.

Recovering Files After Undoing ESD-USB

If you ran the clean command, the partition table is gone, but the actual file data is still on the drive until new data overwrites it. To recover your old files, you need data recovery software that can scan the raw drive for remnants of the old file system. Popular options include Recuva (free), TestDisk (open-source), and commercial tools like EaseUS Data Recovery Wizard or Stellar Data Recovery.

Important: Do not write any new data to the USB drive after cleaning it if you want to recover files. The more you use the drive, the higher the chance that old files get overwritten. Ideally, create a disk image of the drive first using tools like Win32 Disk Imager or FTK Imager, then run recovery software on the image to avoid further damage.

Recovery success depends on how much of the drive was overwritten during the ESD-USB creation. The Media Creation Tool writes several gigabytes of Windows installation files, which can overwrite a significant portion of the drive. Files that were in the area overwritten by the Windows setup files are likely unrecoverable. Files that were in the unallocated space (which is often a large portion) have a good chance of recovery.

Common Problems and Mistakes

Many users make the mistake of formatting the drive again after noticing data loss, which further reduces recovery chances. Another common issue is selecting the wrong disk in Diskpart—always double-check the disk number to avoid wiping your internal hard drive. Also, the Media Creation Tool sometimes creates a drive with multiple partitions; the clean command removes all of them, which is exactly what you want, but some users mistakenly delete only the visible partition and leave the hidden ones, resulting in a drive that still doesn't show full capacity.

If Diskpart says "clean" failed, the drive may be write-protected or have a hardware issue. Check if the USB stick has a physical write-protect switch, or try a different USB port. In rare cases, the drive's controller may have locked the media; using the manufacturer's low-level format tool can help, but that will destroy all data.

ESD-USB vs. Regular USB Formatting

Regular formatting (right-click > Format) creates a single partition and file system, making all space available. ESD-USB is a special layout that is not intended for everyday storage. The key difference is that ESD-USB uses a partition scheme that hides most of the drive, so even after formatting the visible partition, the drive may still show less capacity than expected. Undoing ESD-USB requires deleting all partitions, not just formatting the visible one.

Another difference is that ESD-USB drives are bootable for Windows installation, while a normally formatted drive is not. If you need a bootable Windows USB again, you can recreate it later, but you should first recover any important files.

Safety Tips and Precautions

Before doing anything, disconnect the USB drive and make a note of its capacity and label. If you are unsure about Diskpart commands, use a GUI tool like Rufus (which has a "list USB drives" feature) or the Windows Disk Management console (diskmgmt.msc) to delete partitions visually. Always double-check that you are selecting the correct disk.

Never attempt to recover files on the same drive you are recovering from—use a different drive to save recovered files. Also, avoid using the USB drive for any other purpose until recovery is complete. If the drive is still recognized but shows as RAW or unallocated, do not format it; use recovery software first.

Frequently Asked Questions

Can I undo ESD-USB without losing the Windows installation files?

No. Undoing ESD-USB means deleting all partitions, including the one with Windows setup files. If you need those files, copy them to another drive before cleaning the USB.

Will my files be recoverable after I run "clean" in Diskpart?

Possibly. The clean command only removes the partition table, not the data. However, the Media Creation Tool already overwrote parts of the drive with Windows installation files, so files in those areas are lost. Files in unallocated space may be recoverable with data recovery software.

How long does data recovery take?

It depends on the drive size and the scanning method. A full scan of a 32GB USB drive can take 30 minutes to a few hours. Using a disk image first can speed up the process if you have enough space on another drive.

Can I use free recovery software?

Yes, free tools like Recuva and TestDisk can often recover files from ESD-USB drives. However, they may not recover everything, especially if the files were overwritten. Paid tools often have more advanced algorithms and better success rates, but try free ones first.

What if the USB drive is not detected after cleaning?

If the drive is not recognized, try plugging it into a different USB port or another computer. If it still isn't detected, the drive may be physically damaged. In that case, professional data recovery services may be needed, which can be expensive.