Your IP address, your path.
SMB with Libreelec 8.2 and TimeCapsule not working
-
Fenderman -
November 3, 2017 at 3:56 PM -
Thread is Unresolved
-
-
weird that the IP adress and path are different from each other.
-
Hello,
I'm trying to use my Time Capsule but impossible.
I am on Librelec Milhouse #0429.
I tried everything.
This first method but not working so I don't know if I'm doing well : I created a file storage.timecapsule.mount with the code and put the file in /storage/.configfiles/system.d/ and /storage/.configfiles/sysctl.d but nothing after reboot.
Code
Display More[Unit] Description=TimeCapsule Mount Script Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=//192.168.1.128/Data Where=/storage/timecapsule Options=username=MyUsername,password=MyPassword,sec=ntlm,vers=1.0 Type=cifs [Install] WantedBy=multi-user.target
QuoteSave that ^ as /storage/.config/system.d/storage.timecapsule.mount then "systemctl enable /storage/.config/system.d/storage.timecapsule.mount" and reboot, and the local mount to the device should be available to add as a new source in Kodi. It appears to be stable for me over a period of several hours. If 'mount' works the issue appears to be in smbclient or how Kodi interacts with smbclient.
This second method, but not working too : I created the file autostart.sh and put it in storage/.configfiles. I reboot but nothing.
QuoteIs there someone could me explain step by step how to do it because I don't understand why it's not working for me..
Thanks a lot !
-
Pleaseeeeeee
-
- Official Post
If you want to mount to /storage/timecapsule the systemd mount file MUST be named storage-timecapsule.mount, the hyphen/dash in the filename is important. You said you created "storage.timecapsule.mount" .. which won't work.
-
Chewitt,
Thank you for your answer. I renamed storage.timecapsule.mount with storage-timecapsule.mount on my 2 files in /storage/.configfiles/system.d/ and /storage/.configfiles/sysctl.d But still nothing...
-
- Official Post
There is no reason to create a .mount file in /storage/.config/sysctl.d
-
- Official Post
It's also /storage/.config/system.d not /storage/.configfiles/system.d
-
I dit it
I reboot Kodi but I have still the same Error : Impossible to connect
When I reboot Kodi, do I have to do a special operation ?
Thank you
-
- Official Post
You have to reboot the whole OS not just restart Kodi. What does "systemctl status storage-timecapsule.mount" show?
-
I reboot the whole OS.
systemctl status storage-timecapsule.mount :
Code
Display More● storage-timecapsule.mount - TimeCapsule Mount Script Loaded: loaded (/storage/.config/system.d/storage-timecapsule.mount; disabled ; vendor preset: disabled) Active: inactive (dead) Where: /storage/timecapsule What: //192.168.1.128/DATA ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ standard input
So I just did this : systemctl enable /storage/.config/system.d/storage-timecapsule.mount
I have this :
-
I just created a smb folder in storage/.kodi with a file user.conf and this code inside :
Now i have this when I do : systemctl status storage-timecapsule.mount
Code
Display More● storage-timecapsule.mount - TimeCapsule Mount Script Loaded: loaded (/storage/.config/system.d/storage-timecapsule.mount; enabled; vendor preset: disabled) Active: active (mounted) since Fri 2018-05-25 15:45:28 CEST; 1min 17s ago Where: /storage/timecapsule What: //192.168.1.128/DATA Process: 407 ExecMount=/usr/bin/mount //192.168.1.128/DATA /storage/timecapsul e -t cifs -o username=Myusername,password=Mypassword,sec=ntlm,vers=1.0 (code=exite d, status=0/SUCCESS) CGroup: /system.slice/storage-timecapsule.mount Mar 05 23:16:41 LibreELEC systemd[1]: Mounting TimeCapsule Mount Script... May 25 15:45:28 LibreELEC systemd[1]: Mounted TimeCapsule Mount Script. ~ ~ ~ ~ ~ ~ ~ ~ ~ standard input
And I think that works ! Thanks a lot ! A lot !
-
- Official Post
OS mounts using systemd have nothing to do with Kodi SMB client configuration in user.conf .. which isn't used at all when accessing the now-local folder at /storage/timecapsule (only when Kodi accesses an SMB share over the network). The same configuration can be done from the GUI btw, if you set max/min to SMB1 and select the "legacy security" option.
I suspect you just forgot to enable the mount before, which has now been done.
-
Code
Display More[Unit] Description=TimeCapsule Mount Script Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=//172.16.40.100/TIMECAPSULE Where=/storage/timecapsule Options=username=kodi,password=kodi,sec=ntlm,vers=1.0 Type=cifs [Install] WantedBy=multi-user.target
Save that ^ as /storage/.config/system.d/storage.timecapsule.mount then "systemctl enable /storage/.config/system.d/storage.timecapsule.mount" and reboot, and the local mount to the device should be available to add as a new source in Kodi. It appears to be stable for me over a period of several hours. If 'mount' works the issue appears to be in smbclient or how Kodi interacts with smbclient.
Fenderman You will need to rescrape content to the library as all paths to content will change, but at least it works. It is technically possible to update the DB paths but that requires some sqlite SQL skills and I never bothered to learn those. I'm sure there's a howto somewhere.
Thank you so Much for this solution!
It's really working, the only problem is that theres a typo on your walkthought. Please consider editing it, so people wont get stuck the same way i did.
Heres the error:
"Save that ^ as /storage/.config/system.d/storage.timecapsule.mount"
This should be
"Save that ^ as /storage/.config/system.d/storage-timecapsule.mount"
And again, thank you for the solution, thats really clever
-