RPI4 - Problems with USB3 HDD - Crash after a few hours

  • Hello,

    I am still setting up my Raspberry 4 with LibreELEC 9.2.1

    Every few hours my system is crashing. This only happens with a connected USB3 HDD. With a connected USB2 HDD everything works fine.

    I have tested with my RPi 4 (2GB) and my RPi 4 (4GB). Both are the same result.

    dmesg generates the following output:

    If i than try to read Data from the Drive i get

    Code
    [18066.706030] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
    [18066.724117] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=0x00
    [18066.724128] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 3a 38 57 80 00 00 08 00
    [18066.724135] print_req_error: I/O error, dev sda, sector 976770944

    Sometimes (but not always) i can reboot with the command:

    Code
    reboot -f

    I have found following tips that did not solve this problem:

    - Use another power adaptor. This problem is also when i use a powered USB2.0 hub.

    - From ( STICKY: If you have a Raspberry Pi 4 and are getting bad speeds transferring data to/from USB3.0 SSDs, read this - Raspberry Pi Forums)

    Add to cmdline.txt:

    Code
    usb-storage.quirks=XXXX:XXXX:u 

    Add to config.txt

    Code
    force_turbo=1
    over_voltage=2

    But this problem still exists.

    What can i do to solve this?

    The HDD works on my PI3 without problems. Or is the HDD about to die?

    Regards

    Bismosa

  • I'd leave out the overclocking and start without it to get some sort of 'baseline' which "should" work.

    And maybe your USB3.0 controller is a bit too quirky.

  • It's hard to tell anything without full dmesg. Could be undervoltage (that'd be logged in dmesg), could be the USB HDD adapter (model/vendor would be in dmesg) or something else.

    so long,

    Hias

  • Thanks for dmesg, couldn't spot anything unusual except for the warnings you posted.

    Can you check if the VIA USB firmware is up to date (in LibreELEC Settings->Update)?

    It could be that your drive is acting up or dying, hard to tell though - haven't seen your specific issues yet and 2 WD drives (3.5" MyBook and 2.5" MyPassport) are working fine here on RPi4/USB3.

    so long,

    Hias

  • Hello,

    many thanks!
    There are Updates available i will test them:

    Bootloader EEPROM from 2019-07-15 to 2019-09-10

    VIA USB3 from 00013701 to 000137ad

    I think i have found my problem. I have a script running to monitor the system. There is this query included:

    Code
    hdparm -C /dev/sda

    if i disable this, everything works for hours without problems.

    It seems there is a bug with this query.

    Many thanks for the help!

    Regards

    Bismosa