Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRPi3B+ USB flash devices I/O errors #2714
Closed
Comments
|
Anyway it was a hardware issue with the specific board. I've got another one and now it works just fine. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, there!
First of all, let me apologize if I've done something wrong while I was opening the issue.
Problem
I've got the Raspberry Pi 3 B+ on this Monday and since then I'm fighting the following issue without any success:
This issue happens every time I try to read/write to a USB flash drive and therefore it corrupts data and stops a copy process with input/output error on the USB flash drive.
The issue reproduces on all of my USB flash drives:
So, there's six (6) different USB flash drives with the same problem and, of course, all of these devices works perfectly fine on a RPi3B device that I borrowed from a friend and on desktop PCs running Windows 8.1 and 10.
The most confusing part for me is that my external USB 3.0 HDD works fine with just this little harmless messages in /var/log/kern.log that appear every 2 - 10 seconds:
My wired USB keyboard works fine too.
I suppose, if this is all about the hardware issue then the USB HDD and the keyboard should suffer from the same issue, but they're not.
Investigation
During my small research I've discovered the following.
Everything works fine on the following devices (for the same OS (firmware) on the same microsSD card):
The issue doesn't relates to:
I've tried three (3) different power supplies with 2.1A output current and 5V and an external powered USB hub (I'm going to plug the device directly to a desktop power supply's 5V line, but I believe there will be no difference).
I tried to cold-plug a flash drive while device was powered off. There was no difference.
Maximum observed temperature was 59 degrees of Celsius. At any moment I can switch from the flash drive to HDD it works fine, and if I switch back to a flash drive right after that, the issue appears again.
I've reproduced the issue using dd, pv, cp and rsync.
I tried to copy data from a flash drive to the external HDD, I tried to read and write to any of the flash drives. In the end I've decided to simply read from a flash drive to /dev/null using dd in order to reproduce the issue.
When dd reads the same device, I/O errors appears on different sectors (of course, I flush RAM cache before every attempt).
The issue appear on any port.
The issue reproduces when Ethernet cable plugged and unplugged. Wi-Fi was disabled all the time.
I've reproduced the issue on LibreELEC 4.9.80 and Raspbian Stretch with kernels 4.14.34, 4.14.50, 4.14.70, 4.14.71 and 4.14.74.
Workarounds I've already tried, yet not successfully:
The question
The main thing I want to understand: is the issue related to software or to the hardware part of the RPi3B+?
If it's a software issue/bug, therefore it can be fixed by some adjustments, downgrades, workarounds or in future releases (of kernel?).
But if it's a hardware bug, then I should try to return the device to the local distributor.
So for now I'm in a little despair and obviously failed in fixing this issue by myself, so I'm looking forward for your help!
Thanks in advance!
Technical details
Kernel
lsusb -t
USB flash drive is the last one (Port 2: Dev 5, If 0)
lsusb -v
dmesg