If Windows 11 shows "device in use", use this path:
- Close anything that might still be using the USB device.
- Close File Explorer windows open to that drive.
- Close sync, backup, antivirus, or other background apps that may be scanning or accessing it.
- Try ejecting it from the system tray.
- In the taskbar system tray, right-click Safely Remove Hardware and Eject Media.
- If it is not visible, select Show hidden icons first.
- Select Eject <device>.
- Wait for Safe To Remove Hardware before unplugging it.
- If the icon is missing, turn it on.
- Right-click the taskbar and select Taskbar settings.
- Open Other system tray icons.
- Turn Safely Remove Hardware and Eject Media On.
- If the device still will not eject, unplug and reconnect it only after Windows reports it is safe, or restart the PC and try again.
- In Device Manager, if the device shows Code 47, Windows has prepared it for safe removal but it has not been removed yet. The recommended resolution is to unplug the device and plug it in again, or restart the computer.
- If Windows does not recognize the USB device correctly, check Device Manager for an error code.
- Select Start, type device manager, and open Device Manager.
- Find the USB device with a yellow exclamation mark.
- Right-click it, select Properties, and check Device status for the error code.
Important: to avoid data loss, always wait for the Safe To Remove Hardware notification before disconnecting a USB flash drive or external hard drive.