Ahoj, může mi někdo poradit ? Nějak to nemůžu dát dokupy :-(
Kód:
[Unit]
Description=test cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//10.0.0.150/video/record
Where=/storage/.kodi/userdata/NAS
Options=username=xxxx,password=xxxx,vers=2.1
Type=cifs
[Install]
WantedBy=multi-user.target
Kód:
Raspi:~ # systemctl enable storage-.kodi-userdata-NAS.mount
Created symlink /storage/.config/system.d/multi-user.target.wants/storage-.kodi-userdata-NAS.mount → /storage/.config/system.d/storage-.kodi-userdata-NAS.mount.
Raspi:~ # systemctl start storage-.kodi-userdata-NAS.mount
Job for storage-.kodi-userdata-NAS.mount failed.
See "systemctl status storage-.kodi-userdata-NAS.mount" and "journalctl -xe" for details.
storage-.kodi-userdata-NAS.mount - test cifs mount script
Loaded: loaded (/storage/.config/system.d/storage-.kodi-userdata-NAS.mount; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-02-03 16:52:52 CET; 1min 43s ago
Where: /storage/.kodi/userdata/NAS
What: //10.0.0.150/video/record
Process: 12125 ExecMount=/usr/bin/mount //10.0.0.150/video/record /storage/.kodi/userd
ata/NAS -t cifs -o username=xxxx,password=xxxx,vers=2.1 (code=exited, statu
s=255)
Feb 03 16:52:52 Raspi systemd[1]: Mounting test cifs mount script...
Feb 03 16:52:52 Raspi systemd[1]: storage-.kodi-userdata-NAS.mount: Mount process exited
, code=exited status=255
Feb 03 16:52:52 Raspi systemd[1]: Failed to mount test cifs mount script.
Feb 03 16:52:52 Raspi systemd[1]: storage-.kodi-userdata-NAS.mount: Unit entered failed
state.