I have a Raspberry Pi 4 with 4GB of Ram
Linux raspberrypi 5.4.79-v7l+
Since 2020 I'm using my Raspberry as a small home server and it worked great with deConz smart-home and unifi and more.
But since the beginning, I have had these horrible USB external devices Droppings and I tried nearly everything I could find on the internet.
The Raspberry Pi is running on a USB SSD.
I plugged in a second 1GB SSD as storage.
I plugged in a third HDD with a 3TB USB.
The Pi crashes and keeps dropping the HDDs because of power issues.
- I installed an external usb3 Hub with an external power supply.
- I plugged a 4,5Ah Power supply into the Pi and another 4,5Ah Power supply into the USB Hub and plugged the 3HDDs into the hub.
- One of the HDDs is dropping all the time with the dmesg notification saying:
But the problem doesn't appear when I plug the HDD directly into the pi, it's only with the hub.
- I plugged the Raspberry Boot SSD into the USB2 Port of the Raspberry Pi.
- I plugged the 1TB USB3 SSD into the USB3 Port of the Pi.
- I mounted the HDD and waited some days.
- Without using it, without accessing the storage or anything, it's mounted in a directory and not more.
The 1TB Storage dropped the connection with DMESG:
Buffer I/O error on dev sdb1, logical block 36, async page read
And after the connection loss, it connects again with a new storage mount point.
/dev/sdb is now /dev/sdc
When I mount /dev/sdc, after some days I get the same error and then it's mounted as /dev/sdd, and so on.
I thought the HDD is maybe corrupted, after all these losses, but there are no errors on the HDD or the external case.
Smart Control result of the SSD: sudo smartctl -a /dev/sdc
When I use the 2 external storage USB devices on my laptop or an Intel NUC this behavior never happens.
I already bought 2 new cases and a new USB Hub, no changes.
It's driving me crazy. Is there anything I can do to find the reason for these drops?
I already used Y-cables with 2 USB power plugs.
I used an SD card instead of the main boot SSD and plugged the external HDDs into the Pi.
I updated the latest Raspberry Pi kernel and "bios" (firmware)
Somebody told me that the hub may be injecting power into the Raspberry Pi port and the Pi crashes, but this was the reason why I tried it with USB 2 and usb3 and without the HUB