Hello,
I have a strange problem with LibreELEC 9.0.2 to mount a samba share on boot.
Code
# cat /storage/.config/system.d/storage-recordings.mount
[Unit]
Description=recordings
Wants=network-online.target
After=network-online.target
[Mount]
What=//192.168.165.2/Recording
Where=/storage/recordings
Options=vers=2.1,username=guest
Type=cifs
[Install]
WantedBy=multi-user.target
Display More
I have enabled this unit with
Code
# systemctl enable storage-recordings.mount
Created symlink /storage/.config/system.d/multi-user.target.wants/storage-recordings.mount → /storage/.config/system.d/storage-recordings.mount.
On reboot the network share is not mounted. So I've checked the status of the unit and see this:
Code
● storage-recordings.mount - recordings
Loaded: loaded (/storage/.config/system.d/storage-recordings.mount; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2015-01-01 01:00:26 CET; 5 years 2 months ago
Where: /storage/recordings
What: //192.168.165.2/Recording
Jan 01 01:00:21 thalia systemd[1]: Mounting recordings...
Jan 01 01:00:26 thalia systemd[1]: storage-recordings.mount: Mount process exited, code=exited status=255
Jan 01 01:00:26 thalia systemd[1]: storage-recordings.mount: Failed with result 'exit-code'.
Jan 01 01:00:26 thalia systemd[1]: Failed to mount recordings.
Then I've tried this manual with
Code
# systemctl restart storage-recordings.mount
# systemctl status storage-recordings.mount
● storage-recordings.mount - recordings
Loaded: loaded (/proc/self/mountinfo; enabled; vendor preset: disabled)
Active: active (mounted) since Mon 2020-03-02 20:22:42 CET; 1min 10s ago
Where: /storage/recordings
What: //192.168.165.2/Recording
Memory: 0B
CGroup: /system.slice/storage-recordings.mount
Mar 02 20:22:42 thalia systemd[1]: Mounting recordings...
Mar 02 20:22:42 thalia systemd[1]: Mounted recordings.
Display More
And this works. I've double checked the paths, the smb version and the dependencies. But nothing works.
Any hints are welcome.
Many thanks
sep