RPi 4B, USB Drive share lost upon reboot

  • Hi everybody

    Sorry if this was asked before, but couln't find anything related on the forum.

    I just installed LE 10.0.4 on a RPi 4B on a SD Card.

    I have a USB drive connected to the RPi that is shared through SMB.

    Everything work great, except that upon reboot/restart the external USB drive is no longer shared via SMB, even though the "Auto share external drives" is ON in the libreelec services panel.

    If I disconnect the USB drive and connect it again the share is then visible on the network.

    Is this an ongoing issue with libreelec on RPi4? or am I missing something?

    I have an Rpi 3 with LE and this was not an issue.

    Thanks a lot

  • It shows the drive being detected.. can you do "journalctl | paste" and share the URL as this will show more about systemd (which runs the service units that do sharing).

  • Code
    Feb 02 12:29:51 rpi4 systemd[1]: Starting Samba Configuration...
    [...]
    Feb 02 12:29:51 rpi4 systemd[1]: Starting Udevil mount service...[...]
    Feb 02 12:29:52 rpi4 systemd[1]: Finished Samba Configuration.Feb 02 12:29:52 rpi4 systemd[1]: Finished Udevil mount service.

    Can be a race between Samba Configuration and Udevil Mount + autoshare.

    What if you create (with path):

    Code: /storage/.config/system.d/[email protected]/depend.conf
    [Unit]
    After=samba-config.service
  • Thanks, mglae

    I created the file with the two lines as you suggested:

    Code: /storage/.config/system.d/[email protected]/depend.conf
    [Unit]
    After=samba-config.service

    Here is a new log:

    http://ix.io/4lHD

    Not sure what all of this does, but I guess it delays the mount share until samba is up.

    So far seems to be working, although I just rebooted a couple of times.