Shutdown & USB · Windows 11
Fix a PC that takes minutes on 'Shutting down' only when a USB drive is attached
Without the USB drive, your PC shuts down in seconds. With it plugged in, 'Shutting down' sits for minutes. The drive is part of the shutdown whether you use it or not — writes to finish, an app holding it, or the drive itself slow to respond. Clear those, and shutdown is fast either way.
What you need
- The exact USB drive that triggers it. Test with the drive that causes the stall.
- A few shutdowns for testing. Each test is one full shutdown and start.
- Nothing precious only on that drive. Copy anything irreplaceable off it before the driver-level steps.
Read the problem before you touch it
- Understand what shutdown waits for. Before the power goes off, Windows closes every open file and finishes every pending write on every attached drive. A large copy you thought had finished, a backup or sync program working on the drive, or a drive that answers slowly can stretch that closing work from seconds to minutes — but only while that drive is attached, which is exactly your pattern. Microsoft's eject guidance in Safely remove hardware in Windows exists for the same reason: a drive is finished only when Windows says it is.
- Time both cases once. Shut down once with the drive attached and once without, timing the 'Shutting down' screen. A consistent difference confirms the drive is the variable, and gives you a number to beat as you work through the steps.
The simple fixes, in order
- Eject the drive before shutting down, for one test. Click the Safely Remove Hardware icon in the system tray, eject the drive, wait for the safe-to-remove message, unplug it, then shut down. If shutdown is fast, the stall is unfinished drive work — the steps below find whose work it is.
- Close the apps that use the drive before shutdown. Backup, sync, photo, and media-library apps often keep a drive busy in the background. Quit them from the system tray before shutting down for one test. If shutdown speeds up, set that app not to run its jobs near shutdown, or let it finish before you power off.
- Let copies truly finish. After a big copy to the drive, wait a minute before shutting down even when the progress bar is gone — Windows can still be flushing data to a slow drive. The eject message is the reliable signal that the drive is idle.
The advanced route
- Check the drive for errors. Connect the drive, open File Explorer, right-click the drive, and use Properties > Tools > Error checking to scan it. A drive with file-system errors can make every close-out slow while Windows works around the damage; let the check repair what it finds, then retest shutdown.
- Update the USB and storage drivers. In Device Manager, update the USB controllers and the drive's driver, or install the current chipset drivers from the PC maker's support page. Microsoft's driver route is in Update drivers through Device Manager in Windows. A controller that handles device removal badly stalls exactly at shutdown, when every device is being closed.
- Test a clean boot with the drive attached. If shutdown still stalls with nothing visibly using the drive, start Windows with third-party services off using How to perform a clean boot in Windows, attach the drive, and shut down. A fast clean-boot shutdown names a background service as the drive's keeper; re-enable services in groups to find it.
End state
- Shutdown with the drive attached takes about as long as shutdown without it.
- Ejecting the drive reports it safe to remove promptly, not after a long wait.
- No app or service is found holding the drive at shutdown.
When it goes wrong
- Eject says the drive is in use for a long time. Something really is using it: close File Explorer windows showing the drive, pause sync and backup apps, and try eject again. Do not pull the drive during a write — that is how files on it get damaged.
- Only one specific drive stalls shutdown. The drive itself is the suspect: check its errors (above), try it on another port, and if it is slow everywhere, replace it — a failing drive answers slowly long before it fails outright.
- The stall happens at restart too, during updates. Leave the drive unplugged while updates install and restart; update restarts are the worst moment for a slow device to be holding up the close-out.
Related fixes
-
Fix a printer whose first page takes minutes while later pages are fast
When the first page takes minutes and the rest print at full speed, the delay happens before printing starts: a sleeping printer waking up, a slow connection to it, or a spooler starting cold. Wake the printer, fix the connection, then the driver — the fast later pages tell you the print engine itself is fine.
-
Fix a sign-in that takes minutes to reach a usable desktop
A sign-in that sits for minutes before the desktop becomes usable is usually a queue: too many startup apps, a slow profile load, or a struggling drive. Time each stage first, trim the startup list next, and check the drive before blaming the account.
-
Fix a PC that cannot eject a USB drive because it is always 'in use'
Windows refuses to eject a USB drive while any program, window, or background service is touching a file on it — and something almost always is, from a forgotten Explorer window to the search indexer. Close the real holder, and if the message outlives everything you can see, sign out or restart rather than pulling the drive and risking the file that was open.
-
Fix a USB drive that shows as read-only or write-protected
A USB drive that refuses every write is usually carrying a read-only attribute, a physical lock switch, or a file system error — and sometimes it is failing. Copy anything you need off it first, then clear the attribute and check the file system.
Sources
- Microsoft Support, Safely remove hardware in Windows — ejecting a USB drive cleanly so no write is left unfinished.
- Microsoft Support, Update drivers through Device Manager in Windows — updating USB and storage drivers in Device Manager.
- Microsoft Support, How to perform a clean boot in Windows — starting Windows with third-party services off to isolate a background program.