Code 28 in Device Manager means Windows has stopped the device because its drivers are not installed. For USB drives, this usually appears as a yellow warning triangle on the device with the message “The drivers for this device are not installed. (Code 28).” The fix is to reinstall or update the USB mass storage driver, and in most cases a simple driver re-scan or a USB controller reset resolves it within minutes.
What Code 28 Actually Means
Device Manager assigns error codes to hardware that fails to start or initialize properly. Code 28 specifically indicates that the driver for the device is missing, corrupted, or incompatible with the current version of Windows. For USB drives (flash drives, external hard drives, card readers), the relevant driver is usually the generic “USB Mass Storage Device” driver, which is built into Windows. If that driver fails to load, the drive cannot be accessed even though the USB port itself may be working fine.
It is important to distinguish Code 28 from other USB-related errors. Code 43 (“Windows has stopped this device because it has reported problems”) points to a hardware or firmware fault. Code 10 (“This device cannot start”) often indicates a power or resource conflict. Code 28 is uniquely about the driver software, so the solution almost always involves reinstalling or updating that driver.
Why USB Drives Get Code 28
Several common situations trigger Code 28 on a USB drive:
- Driver corruption after a Windows update – A system update may overwrite or remove the generic USB driver, leaving the device without a working driver.
- Interrupted driver installation – Unplugging the drive too soon during the initial driver setup can leave a partial driver entry.
- Conflicting driver versions – Installing a vendor-specific driver (e.g., from the drive manufacturer) that is incompatible with the current Windows version can break the generic driver.
- Registry remnants from a previous device – If the drive was previously installed on the same port with different hardware, stale registry entries can confuse the driver matching process.
- USB port or hub issues – A failing port can prevent the driver from loading, even though the drive itself is healthy.
Note that Code 28 is not a sign that the USB drive is physically dead. In most cases, the drive’s data is intact and recoverable once the driver issue is fixed.
Step-by-Step Fix for Code 28 on USB Drives
Follow these steps in order. Stop after each step and check if the error is gone before moving on.
- Unplug the USB drive and plug it into a different USB port (preferably a rear port on a desktop, or a direct port on a laptop, not a hub). Sometimes the port’s power delivery or data lines are the issue.
- Open Device Manager (press Win + X and select “Device Manager”). Expand “Disk drives” and also check “Universal Serial Bus controllers”. Look for the yellow triangle.
- Right-click the device with Code 28 and select “Uninstall device”. In the confirmation dialog, check the box “Delete the driver software for this device” if it appears. This removes the corrupted driver entry.
- Restart your computer (not just shutdown and power on, but a full restart). Windows will re-detect the USB drive and reinstall the generic driver automatically.
- If the error persists, go to Device Manager, click the “Action” menu, and select “Scan for hardware changes”. This forces Windows to re-enumerate all USB devices.
- If still not fixed, right-click the device, choose “Update driver”, then “Search automatically for drivers”. This will check Windows Update for a better driver.
- As a last resort, use the “Have Disk” method: right-click the device, choose “Update driver”, then “Browse my computer for drivers”, then “Let me pick from a list of available drivers on my computer”. Select “USB Mass Storage Device” from the list (if present) and click Next.
If none of these steps work, try the drive on another computer. If it works there, the issue is with your Windows installation, not the drive. If it shows the same error on another computer, the drive’s controller may be failing, and data recovery may require professional help.
Resetting the USB Controller (When the Driver Fix Fails)
Sometimes Code 28 is not about the drive’s driver but about the USB host controller’s driver. The host controller is the hardware in your computer that manages all USB ports. If its driver is stuck, every device on that controller may fail with various errors, including Code 28.
To reset the USB controller:
- Open Device Manager and expand “Universal Serial Bus controllers”.
- Right-click each entry that contains “Host Controller” (e.g., “Intel(R) USB 3.0 eXtensible Host Controller”) and select “Uninstall device”. Do not delete the driver software.
- Restart your computer. Windows will automatically reinstall the host controller drivers.
- Plug in the USB drive and check Device Manager.
This reset clears any stuck states in the USB stack. It is a safe procedure that does not affect your data.
How to Prevent Code 28 on USB Drives
Prevention is mostly about avoiding driver corruption:
- Always use “Safely Remove Hardware” before unplugging a USB drive. This ensures the driver is properly released and no writes are pending.
- Keep Windows updated. Microsoft regularly ships fixes for USB drivers via Windows Update.
- Avoid third-party driver updater tools. They often install incorrect or outdated drivers that conflict with the built-in ones.
- Do not force-unplug during driver installation. Wait a few seconds after plugging in a new drive until Windows shows the “ready to use” notification.
- Use a powered USB hub for high-power devices like external hard drives. Insufficient power can cause intermittent driver failures.
When Code 28 Means the Drive Is Failing
While Code 28 is usually a software issue, in rare cases it can indicate that the drive’s firmware or controller is failing. If you have tried all the steps above and the error persists on multiple computers, the drive may be nearing the end of its life. Symptoms that point to hardware failure include:
- The drive makes clicking or whirring sounds.
- The drive is not detected in BIOS/UEFI even when booted from another OS.
- The drive gets extremely hot to the touch.
- Other USB devices work fine on the same ports.
In such cases, stop using the drive immediately. If the data is important, contact a professional data recovery service. Do not attempt to open the drive or apply DIY fixes, as that can make recovery impossible.
Frequently Asked Questions
Will fixing Code 28 erase my data?
No. The steps above only reinstall drivers and reset the USB controller. They do not touch the file system or the data on the drive. Your files remain intact. However, if the drive has a hardware fault, repeated plugging/unplugging could worsen it, so back up data as soon as you can access the drive.
Why does my USB drive show Code 28 only on one computer?
This indicates the problem is with that computer’s USB driver configuration, not the drive. The drive works fine on other computers because they have a healthy USB driver stack. Follow the driver reinstall steps on the problematic computer.
Can I use a third-party driver to fix Code 28?
It is not recommended. USB mass storage devices use a generic Microsoft driver that is already in Windows. Third-party drivers are rarely needed and can cause more conflicts. Only use a driver from the drive manufacturer if they explicitly provide one for your exact model and Windows version.
What if the USB drive is not listed in Device Manager at all?
If the drive does not appear even with “Show hidden devices” enabled, the USB port may not be providing power or the drive’s controller is not responding. Try a different port, a different cable, and another computer. If it still does not appear, the drive may be physically dead.
Is Code 28 the same as “USB Device Not Recognized”?
No. “USB Device Not Recognized” is a generic Windows message that can appear with several different Device Manager error codes, including Code 28, 43, or 10. Code 28 specifically means the driver is missing or invalid. The “Not Recognized” message is just the system’s way of saying the device failed to initialize.
Does this fix work for USB card readers and external SSDs?
Yes. The steps apply to any USB mass storage device, including flash drives, external hard drives, SSDs, and card readers. The underlying driver is the same “USB Mass Storage Device” class driver.
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
- Why Use Both HTTPS and VPN? Key Reasons
- WhatsApp Dark Mode: How to Turn It On or Off on iPhone
- How to Build a Profit & Loss Statement in Excel
- Why Linux Browser Demos Feel Slow or Behave Differently
- Stop Chrome Notifications & Other Annoyances
- Recover Deleted Facebook Messages on Mac