Hi, I have a problem with SMB configuration with libreelec.
I attach the two configurations that I used and neither worked. I would like to point out that the server has an IP of 192.168.1.200 and shares files and libraries with 2 other devices with Kodi
1-
/storage/.config/system.d/var-media-sambashare.mount
[Unit]
Description=cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//127.0.0.1/hdd
Where=/var/media/sambashare
Options=credentials=/storage/.config/.smbcredentials,rw
Type=cifs
[Install]
WantedBy=multi-user.target
2-
/storage/.config/system.d/var-media-sambashare.mount
[Unit]
Description=cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//192.168.1.200/hdd
Where=/var/media/sambashare
Options=credentials=/storage/.config/.smbcredentials,rw
Type=cifs
[Install]
WantedBy=multi-user.target
Both give back:
var-media-sambashare.mount - cifs mount script
Loaded: loaded (/storage/.config/system.d/var-media-s Active: failed (Result: exit-code) since Sat 2025-03- Where: /var/media/sambashare
What: //127.0.0.1/hdd
CPU: 12ms
Mar 01 12:30:10 KODI-TV systemd[1]: Mounting var-media-samMar 01 12:30:10 KODI-TV mount[1028]: mount error(111): couMar 01 12:30:10 KODI-TV systemd[1]: var-media-sambashare.mMar 01 12:30:10 KODI-TV systemd[1]: var-media-sambashare.mMar 01 12:30:10 KODI-TV systemd[1]: Failed to mount var-me
If I use the command
mount -t cifs //127.0.0.1/hdd /var/media/sambashare -o credentials=/storage/.config/.smbcredentials
everything works perfectly , but it doesn't connect automatically at boot