The error message “A device attached to the system is not functioning” (system error code ERROR_GEN_FAILURE or 0x8007001F) occurs in Windows 11 when an external peripheral—such as an iPhone, Android smartphone, external hard drive, or USB flash drive—abruptly ceases communication with the host operating system during data transfer, formatting, or device initialisation. While the hardware remains physically plugged into the USB port, Windows loses the I/O transfer handle. Resolving this issue involves adjusting smartphone media transfer protocols, reinstalling USB Host Controller drivers, running disk surface repairs, and auditing power management settings.
Why Windows Throws Error 0x8007001F
During a high-throughput file transfer, the Windows USB subsystem expects continuous packet acknowledgments from the connected peripheral. If the device’s internal controller resets, if mobile media transcoding fails, or if a USB port experiences voltage fluctuations, Windows drops the connection and reports that the attached device is no longer functioning.
Common scenarios producing this error include:
- iPhone Photo / Video Transfers: Transferring 4K HEVC videos or ProRAW photos from an iPhone to Windows when the iOS automated format conversion feature crashes.
- USB Port Power Suspension: Windows USB Selective Suspend powering down the port controller during prolonged transfers. For related volume formatting errors, see our tutorial on fixing Windows was unable to complete the format in Windows 11.
- Corrupted Storage Sectors: External hard drives encountering unreadable physical sectors that halt the read/write pipeline. (Check our guide on fixing the parameter is incorrect error in Windows 11).
- Outdated USB Host Controller Drivers: Incompatible xHCI controller drivers failing under heavy USB 3.0/3.2 bandwidth loads.
| Transfer Scenario | Technical Root Cause | Primary Resolution |
|---|---|---|
| iPhone to Windows PC | iOS on-the-fly HEIC/HEVC transcoding crash | Change iOS Photos setting to “Keep Originals” |
| External USB Drive / SSD | USB Selective Suspend drops connection | Disable USB selective suspend in Power Plan |
| Command-line / Scripting | Corrupted driver stack or uninitialised I/O | Reinstall USB Root Hub in Device Manager |
| Flash Drive Formatting | Bad sectors or corrupted partition table | Run DiskPart clean and reconstruct partition |
Step 1: Fix iPhone Photo and Video Transfer Errors (Keep Originals)
By far the most common reason users encounter this error is importing large photos or videos from an iPhone. By default, iOS automatically converts HEIC/HEVC files to JPEG/H.264 during transfer. If a file fails to convert on the fly, the connection crashes.
- Disconnect the iPhone from your Windows 11 PC.
- On the iPhone, open the Settings app.
- Scroll down and tap Photos (or Apps > Photos on iOS 18).
- Scroll to the very bottom to find the section labelled Transfer to Mac or PC.
- Change the selection from Automatic to Keep Originals.
- Reconnect your iPhone via USB, unlock the screen, tap Trust This Computer, and resume transferring your media.
Step 2: Disable USB Selective Suspend in Power Options
Windows power management can erroneously place USB ports into low-power suspension during large file copies, severing the active data stream.
- Press Windows Key + R, type
powercfg.cpl, and press Enter. - Next to your active power plan, click Change plan settings.
- Click Change advanced power settings.
- Expand the USB settings category, then expand USB selective suspend setting.
- Change both On battery and Plugged in to Disabled.
- Click Apply, then click OK.
Step 3: Reinstall USB Host Controllers and Root Hubs
Corrupted USB driver registries can trigger communication timeouts across all connected devices.
- Right-click the Start button and select Device Manager.
- Scroll down and expand Universal Serial Bus controllers.
- Right-click USB Root Hub (USB 3.0) and select Uninstall device. (If multiple hubs are present, uninstall each one).
- Right-click your eXtensible Host Controller (xHCI) and select Uninstall device.
- Restart your computer. Upon reboot, Windows 11 will automatically scan hardware buses and reinstall clean USB controllers.
Step 4: Scan and Repair External Drive File Systems via CHKDSK
If the error occurs while accessing an external hard drive, SD card, or USB stick, damaged partition clusters may be causing I/O lockups.
- Press Windows Key + X and choose Terminal (Admin).
- Execute Check Disk against the drive letter of your external storage (replace
E:with your actual drive letter):
chkdsk E: /f /r /x
The command will dismount the volume, scan for bad sectors, and recover unreadable cluster chains.
Step 5: Run DISM and System File Checker
If system-level device drivers are damaged within the Windows installation image, servicing the component store restores file system integrity.
- In Terminal (Admin), execute:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Once the repair commands complete, restart your PC and reconnect your peripheral device.