v18 Kodi $HOME/.kodi on an nfs share
#1
Hello,

I want to setup a kodi in a readonly file system on a NUC. The NUC sees a lot of power outages and is a reason i use a readonly file system. The NUC has been happily running MythTV for a few years with this setup.

I have a NAS which has UPS backup and i have setup an NFS share on it and mount on the NUC. The $HOME/.kodi files are mounted on this NFS share. Unfortunately, with this setup Kodi is not coming up correctly. Is NFS mounting of kodi config file not supported?

Thanks
Reply
#2
You cannot simply 'relocate' Kodi's entire system profile folder. That is not supported.
You can use path substitution with certain special folders (see our Wiki), but also not all add-ons have support for it.

Using a MySQL database will avoid a lot of problems that could happen on a powerless NUC with only local database files. The video database is regularly written to, so that is the biggest problem area when a power outage happens. Writing to config or xml files files usually happens less often.
Reply
#3
(2020-02-13, 09:56)Klojum Wrote: You cannot simply 'relocate' Kodi's entire system profile folder. That is not supported.
You can use path substitution with certain special folders (see our Wiki), but also not all add-ons have support for it.

Using a MySQL database will avoid a lot of problems that could happen on a powerless NUC with only local database files. The video database is regularly written to, so that is the biggest problem area when a power outage happens. Writing to config or xml files files usually happens less often.

I am using the mysql database. Unfortunately, the database doesn't work for Addons. The only Addons i am interested is Mythtv and plex.
Can i symlink the userdata and temp to a read-write NFS file system, and leave everything else on a readonly file system?
Reply
#4
(2020-02-13, 11:39)trumee Wrote: Can i symlink the userdata and temp to a read-write NFS file system, and leave everything else on a readonly file system?

I have never used MythTV or Plex. or used symlinks for Kodi, so the simple answer would be: "There is only one way to find that out". :-)
Reply
#5
...mythtv uses mysqld on its own.
Need help programming a Streamzap remote?
Reply
#6
I was successfully able to symlink .kodi to a NFS folder. I first created a tmpfs folder and then mounted the nfs server.
Code:

mount -t tmpfs tmpfs /tmp1
mkdir /tmp1/nuckodihome
chown me:users /tmp1/nuckodihome
mount.nfs myip:/mnt/nuckodihome /tmp1/nuckodihome
ln -s /tmp1/nuckodihome /home/me/.kodi
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi $HOME/.kodi on an nfs share0