Hey everyone!
I'm fairly new to Ubuntu/Linux and currently turning an old Lenovo laptop into a headless home server. I've run into a weird USB issue that I'm hoping someone here can help me figure out.
My setup:
- OS: Ubuntu Server 24.04 LTS
- Kernel: 6.8.0-149-generic
- Hardware: Older Lenovo laptop
- USB controller: Intel xHCI
- Flash drive 1: Kingston DataTraveler 3.0, 64 GB, exFAT
- Flash drive 2: Generic ProductCode USB, 8 GB, exFAT
The weird issue
My Kingston DataTraveler works perfectly in one USB port but refuses to initialize in another.
At first, I thought the USB port was defective. However, when I inserted my other flash drive (ProductCode) into that exact same port, it worked perfectly!
Here's what I've confirmed through repeated testing:
| USB device | Port A | Port B |
|---|
| Kingston DataTraveler 3.0 | FAIL | WORKS |
| ProductCode USB | WORKS | WORKS |
When Kingston fails in Port A, Ubuntu doesn't even recognize it through lsusb or lsblk.
However, when I move Kingston to Port B, Ubuntu detects it normally, and I can mount, access, and safely eject it without problems.
Kernel errors
I checked dmesg and journalctl, and these errors repeatedly appear when Kingston is connected to the problematic port:
usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
usb usb1-port2: attempt power cycle
usb usb1-port2: unable to enumerate USB device
usb 1-2: Device not responding to setup address.
usb 1-2: device not accepting address 16, error -71
Interestingly, the same USB path (usb 1-2) successfully detects my ProductCode flash drive.
What I've already tried
- Tested Kingston in another port — works normally.
- Tested ProductCode in the problematic port — works normally.
- Checked historical USB kernel logs and confirmed repeated enumeration failures.
- Disabled and re-enabled the affected port through Linux sysfs.
- Verified the port was re-enabled successfully (
disable = 0). - Tested Kingston again after the port reset — same failure.
- Confirmed that Kingston can still mount and safely eject normally when connected to the alternate port.
I'm also running a custom web dashboard for USB detection, mounting authorization, and Safe Eject. However, the issue occurs before the device is successfully enumerated by Linux, so I don't believe the dashboard is causing it.
Why I actually want to fix this
I understand that the easiest solution is to just use the other USB port where Kingston works.
And yes, I could absolutely do that.
But I'd really prefer to understand and fix the underlying issue rather than simply work around it.
This laptop is going to serve as my long-term home server, where I plan to connect external SSDs, HDDs, and other storage devices for backups and file management.
My concern is: What if this same issue happens again with another storage device in the future, especially one I'm relying on for backups?
I don't want to end up in a situation where a perfectly functional storage device suddenly refuses to work on a particular USB port without understanding why.
I'd rather investigate it now while I'm still building the server than discover the same problem later when the setup becomes more important.
Questions for experienced Ubuntu/Linux users
- Has anyone experienced a USB flash drive working in one port but consistently failing in another, even though both ports work with other devices?
- Could this be related to xHCI, USB negotiation, power management, or signal integrity?
- Does Linux retain any USB controller state after failed enumeration or a previous safe-eject/power-off operation that might explain this behavior?
- Are there any specific commands, kernel logs, or diagnostic tools I should use to narrow down the root cause?
- Is there a safe way to troubleshoot or fix this without affecting other USB devices or disrupting the server?
I'm not looking to reinstall Ubuntu or randomly change USB settings. I'd prefer an evidence-based approach that identifies what's actually happening.
My goal is to make the USB connections as reliable as possible before I start depending on this machine for external storage and backups.
Any advice would be greatly appreciated, especially from anyone familiar with Ubuntu Server, Linux USB drivers, or xHCI controllers.
Thanks in advance!