Mobile hard disk drive: unexpected USB disconnect, and transient data errors, on Linux #17532
Replies: 4 comments 3 replies
-
Certain USB to SATA bridges show flaky behavior when used with UAS on Linux. This is a known issue for years. Connection drops and write errors are the usual indicators. The workaround is to use usb-storage mode for such a controller. I've added |
Beta Was this translation helpful? Give feedback.
-
It also notes
whatever, just my 2 ¢. |
Beta Was this translation helpful? Give feedback.
-
In addition (if I recall correctly)In FreeBSD host cases where no error was detectable by ZFS:
In FreeBSD host cases where an error was detectable by ZFS:
– I would habitually shut down FreeBSD (or force a stop of the computer, if a graceful shut down was impossible). |
Beta Was this translation helpful? Give feedback.
-
Additional notes from the time, clearance of the twenty-seven data errors: 2025-07-08 07-32 zpool clear Transcend, then I saved the VirtualBox guest.txt In particular:
That, with Kubuntu, was extraordinary. I feel certain that I never saw re-silvering, like that, with any FreeBSD use of ZFS on a mobile hard disk drive on USB. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Kubuntu 25.04.
On a mobile drive that was previously used with FreeBSD-CURRENT, in an OpenZFS-encrypted dataset, I have data for various VirtualBox guests.
If I'm not mistaken:
– a relatively intensive operation.
Tuesday 2025-07-08:
Jul 08 07:25:24 mowa219-gjp4 kernel: usb 4-5: USB disconnect, device number 3
I'm certain that neither the drive nor its cable was touched at the time. The drive was laid across (not pressing on) the keyboard of an HP ZBook 17 G2, docked to my right, whilst I used an external keyboard, mouse, and display to the left of the dock.
Question
Is anything tunable in Debian/Ubuntu, or OpenZFS, to reduce the likelihood of the kernel detecting/reporting a USB disconnect in a situation such as this?
Partial notes from the time of the incident
2025-07-08 07-25-24 pool Transcend device disconnected.txt
Observations
From accepted https://superuser.com/a/969710/84988:
The hardware here is fairly good quality.
With FreeBSD: I did occasionally (rarely) have difficulty with some VirtualBox guests that stored data in this pool. To the best of my recollection, none of the incidents involved data errors.
In this Linux case: the data errors were surprising, but not permanent. Easily cleared.
Beta Was this translation helpful? Give feedback.
All reactions