ext4 automount issue

  • Hello.

    I'm running Libreelec on a RockPi4 with two external HDDs formatted as ext4. Only one of the drives auto-mounts at boot and the other will auto-mount if I plug it in again.

    Before remounting the second drive.

    blkid : http://ix.io/2ce2

    mount : http://ix.io/2ceb

    dmesg : http://ix.io/2cec

    After remounting

    blkid : http://ix.io/2ce3

    mount : http://ix.io/2ced

    dmesg : http://ix.io/2cee

    The drives auto-mount fine if I use a usb hub and also work fine in Debian without the usb hub. I'd like to get it working without the usb hub if possible.

    Any help is appreciated.

  • Are the HDD's externally powered or just plugged into the USB ports?

    I'm guessing the latter, as there are power issues in the output of dmesg. If the USB hub is powered, then this would explain why it works with the hub attached.

    I'm not familiar with the RockPi4 but if it's like the RPi4 then there is only so much current available for the USB's, it could also be a poor PSU but unlikely.

  • If I'm reading it correctly: There is certainly a power issue somewhere look at dmesg from:

    Code
    [    0.340293] phy phy-ff770000.syscon:[email protected]: Looking up phy-supply from device tree
    [    0.340390] vcc5v0_host: could not add device link phy-ff770000.syscon:[email protected] err -2
    [    0.340684] phy phy-ff770000.syscon:[email protected]: Looking up phy-supply from device tree
    [    0.340696] phy phy-ff770000.syscon:[email protected]: Looking up phy-supply property in node /syscon@ff770000/usb2-phy@e450/otg-port failed
    [    0.340910] phy phy-ff770000.syscon:[email protected]: Looking up vbus-supply from device tree

    Try changing the USB connections for the drives. Also alternate the first drive. As the HUB works (No idea why) try in different USB ports USB2 and USB3.

    If the Debian OS is running on the same HW, with the same config then it could be a RK LE error.

  • Try changing the USB connections for the drives. Also alternate the first drive. As the HUB works (No idea why) try in different USB ports USB2 and USB3.

    I plugged both drives into the USB2 ports and it mounts both fine. It also seems as if it's the same USB3 port that fails when the're both plugged into USB3.

    What kernel is Debian using? .. we're on mainline 5.4/5.5 now and I suspect they're still using the RK 4.4 kernel.

    Sorry I don't know how to find the kernal info but this is the install wiki Rockpi4/Debian - Radxa Wiki