Posts by tanguy

    Hello,
    I'm new, i've got LibreElec installed on SD card (Intel NUC). I 've got an internal 2,5'' HDD that i can see.
    The hdd is automounted on /media/sda-ata-<randomlabel>
    I want it to be mounted on /media/hdd, that i succeed to do manually via ssh console. To do it permanently i 've tried to modify /etc/fstab but the file is read only file for good reason i suppose ...

    I wokrarounded the problem using autostart.sh , despite the fact i'm not completle statify whith that solution, samba shares are already established and a directory "sda-ata-<randomstring>" display in shares and is no longer a valid share... Is there a way to restart samba ? I 've tried sytemctl restart samba.service ... without success...

    Can anyone help me ?
    [hr]
    I'm replying to myself, finally i've put in autostart.sh :
    (
    umount /dev/sda
    mkdir /media/hdd
    rm -rf /media/sda-ata-*
    mount /dev/sda /media/hdd
    systemctl restart nmbd
    )&

    It's working ...
    Even if i'm not completly satified with that solution ...

    If someone can give me a better one.