Hello,
are there any recommended settings to minimize SD wear?
Thanks!!
Hello,
are there any recommended settings to minimize SD wear?
Thanks!!
Best piece of advice from my experience is to minimise the amount of writes to the SD cards by using external drives where possible.
boot f
Hello,
are there any recommended settings to minimize SD wear?
Thanks!!
set up boot from USB. On recent pi4 boards it's as easy as setting the boot order and using the creator tool.
All my Pi 4 boots from SSD, much faster than any sd-card.
I turn off logging and use shared MySQL database on a server, haven't really had problems with SDs and some of them have been in there for 2 or 3 years constantly on. Eventually they will die, and I have backups and spares. I just use base Kodi and pvr.hts and youtube, so not a lot of writes going on.
<advancedsettings version="1.0">
<!-- https://kodi.wiki/view/Log_file/Advanced -->
<!--
-1 = no logging
0 normal logging
1 debug logging
-->
<loglevel hide="true">-1</loglevel>
</advancedsettings>
Another option is network booting, I don't know if anyone actually uses it, I have not tested it. I suppose you could use a hybrid option with SD boot and NFS-mounted storage. It's only noted as supported on select devices, Pi4 supports PXE booting but this wiki entry doesn't mention how to configure it, but guessing the DHCP server needs to push a tftp host to the client to configure it. I am fairly sure this presumes ethernet only as well -- which is why I haven't tried it or the hybrid option.
https://wiki.libreelec.tv/configuration/network-boot
Disabling logging and shared MySQL db has been working fine for me. It would be nice if I could offload the PVR channel data and textures data too.
Disabling logging and shared MySQL db has been working fine for me. It would be nice if I could offload the PVR channel data and textures data too.
Hi,
For PVR and EPG database you can try something like this (add to advancedsettings.xml). Will create the specified database in the "/tmp" (ramdisk) folder.
<epgdatabase>
<type>sqlite3</type>
<host>/tmp</host>
</epgdatabase>
<tvdatabase>
<type>sqlite3</type>
<host>/tmp</host>
</tvdatabase>
More info here: https://kodi.wiki/view/Advanceds…ibrary_settings
Another suggestion: you could symlink /storage/.kodi/temp to /tmp - but then kodi.log is notpersistent. I use that without any problems. When you need the crashlogs, you could save them before shutdown with the script shutdown.sh within /storage/.config
Like this:
# backup possible crashlogs within /tmp
CRASHLOGS="/storage/backup/crashlogs"
[ ! -d "$CRASHLOGS" ] && mkdir -p "$CRASHLOGS"
mv -f /tmp/kodi_crashlog_[0-9]*.log "$CRASHLOGS" 2> /dev/null
# delete crashlogs older than 30 days
find "$CRASHLOGS" -type f -name "kodi_crashlog_[0-9]*.log" -mtime +30 -delete