Skip to content

storage mount fails most of the time with usbsdmux #416

@jan-kiszka

Description

@jan-kiszka

We are too fast with trying to mount a partition, it seems. I'm getting most of the time

# mtda-cli storage mount 1
'storage mount' failed!

for a partition on an usbsdmux-managed card. And that even when the mux is set to host already. mtda is unconditionally switching the muxer mode on mount, right? This seems to trigger some re-plugging of the card on the host, and udev is still running while mounting is already attempted.

Simply adding some sleep to the switch may mitigate, but I'm unsure if that issues is actually generic, not limited to usbsdmux. And it is also hard to define a reasonable waiting time (specifically given how slow the process is already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions