fsck after normal shutdown

  • Hi,

    I am running libreelec 9.2.7 on a raspberry pi 4. It is installed on a USB-harddisk.

    I initiate a shutdown via kodi, the system shuts down, the harddisk/usb switches off

    and after some seconds I pull out the power-socket. That works just fine. But

    sometimes when booting the filesystem is corrupt and needs a fsck. The system waits

    2 minutes.

    Why does that happen? How can I shutdown/poweroff without needing to fsck?

    For me it looks like the usb-power is switched off before the filesystem is unmounted.

    Is there any race-condition?