Replicating the #3216 OpenELEC issue, I think it would be nice to have a warning when some partition is running close to full disk space.
Low disk space warning
-
el_Salmon -
December 17, 2018 at 10:33 AM -
Thread is Unresolved
-
-
- Official Post
You can achieve something similar with some script at the autostart.sh - ofc that is not user friendly.
The settings addon is sadly in bad shape overall and even such small things are pretty difficult to include. For LE10 we plan to redo the complete addon and there such function should be possible.
-
- Official Post
The low disk space warning should be something independent. While the thumbnails folder/cache is increasing as the media libraries get filled, the system can run out of disk space. You shouldn't have to look into the Settings Add-on for that.
-
- Official Post
yea ofc i thought more about a general warning implemented at the settings addon (current one can't do it anyway)
btw this is also something that would make A LOT sense at Kodi - but likely they don't care because "the os needs to handle it"
-
- Official Post
Some people run their RPi (or other htpc) on 24/7, so reboots may not happen often.
A script doing a check and subsequent message popup via a cron would help, I think.
-
- Official Post
Thats rather easy, not sure if a one fits all solution might be possible.
-
- Official Post
It's a nice idea and certainly would be useful. However, I can see a number of issues. There are plenty of disk warning scripts around like This one. (Will need to be tweaked for busybox) but all use "mail" as a notification platform. As this is not available on LE another method will be needed.
Also will it just monitor the root partition or all attached disks? If all, you would have to set a different threshold value for each disk as a 2GB SD at 90% is different to a 4TB HDD.
A message could be sent to Kodi via json (Works on Ubuntu - not too sure about LE - it uses curl) but not a lot of use if the screen is off.
So unless a sensible method of communicating the disk warning to the user is found, it's not going to be a lot of use,
However, if it's just a single disk and a warning is sent to Kodi then it should be possible.
-
- Official Post
Warnings on all disks mounted would be a bonus, but I'd go for the system disk first (although you can already hear the moaning from users that we need to include the other disk(s) as well)
-
- Official Post
All you need is some df -h some grep and a single command to let Kodi send an warning.
I have a look, no promises.
-
- Official Post
-
- Official Post
QuoteTime to buy a bigger disk
Having to buy a bigger disk every hour is gonna be costly.
Disk/SD card is low on free space is perhaps more to the point.