Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[SF8008] Small issue with fstrim on my internal SSD - It doesn't work

fstrim has now been added as an automatically run script in /etc/cron.weekly as fstrim and will be in the next image.
This mean that the system will run this script every Sunday at midnight on devices that support trim.

System executable scripts like this do not appear in Menu/Cron timers.
@twol - I'm on dev 6.8.006.002 and still don't see any entry in /etc/cron.weekly

I have actually implemented my own cron job to run at 04.33 weekly. I have a PowerTimer that runs between 04:20 and 04:35 daily to refresh EPG and run ABM.
 
@twol - I'm on dev 6.8.006.002 and still don't see any entry in /etc/cron.weekly

I have actually implemented my own cron job to run at 04.33 weekly. I have a PowerTimer that runs between 04:20 and 04:35 daily to refresh EPG and run ABM.
@Joe90 - see attachment (dev 6.8.006.002) - taken a few minutes ago - did you flash or software update?
sent you a PM
 

Attachments

  • Screenshot from 2026-03-19 15-38-54.webp
    Screenshot from 2026-03-19 15-38-54.webp
    28.3 KB · Views: 6
@Joe90 - see attachment (dev 6.8.006.002) - taken a few minutes ago - did you flash or software update?
sent you a PM
I did a software update. I saw a notification of a PM, but nothing there when I clicked on it. I may have accidentally deleted it!
 
Resent PM.
Another reason I hate software update
 
Resent PM.
Another reason I hate software update
Nothing showing in PM (forum is stating "you have no recent Direct Messages").

I think most folks will use update rather than flash/restore, so if it's a requirement in this instance, it might be best to flag it in the release info. I can easily use flash/restore on my Vu+ as it's connected by ethernet, but it's a pain on my WiFi-only devices which won't restore plugins (using a separate plugins restore run) until after the network settings are activated on first boot after the initial flash.
 
Nothing showing in PM (forum is stating "you have no recent Direct Messages").

I think most folks will use update rather than flash/restore, so if it's a requirement in this instance, it might be best to flag it in the release info. I can easily use flash/restore on my Vu+ as it's connected by ethernet, but it's a pain on my WiFi-only devices which won't restore plugins (using a separate plugins restore run) until after the network settings are activated on first boot after the initial flash.
Da! My bad wrong joe90—> joe_90
 
@twol - I'm on dev 6.8.006.002 and still don't see any entry in /etc/cron.weekly

I have actually implemented my own cron job to run at 04.33 weekly. I have a PowerTimer that runs between 04:20 and 04:35 daily to refresh EPG and run ABM.
It is in the package. Try: opkg install fstrim-cron-vix

No idea why it is missing, it is a depends of openvix-base.
 
It is in the package. Try: opkg install fstrim-cron-vix

No idea why it is missing, it is a depends of openvix-base.
Once I flash/restored the weekly job was there. Obviously not picked up on an update. I've DM'd you.
 
fstrim has now been added as an automatically run script in /etc/cron.weekly as fstrim and will be in the next image.
This mean that the system will run this script every Sunday at midnight on devices that support trim.

System executable scripts like this do not appear in Menu/Cron timers.
Hello @twol ,

thank you for this. How I can change the run time ? My box is at deep standby at that time Sundays. Thank you.
 
Hello @twol ,

thank you for this. How I can change the run time ? My box is at deep standby at that time Sundays. Thank you.
Move fstrim out of /etc/cron.weekly to another location and set up a cron with cron manager to point at that file. And make sure it has 755 permissions.
 
  • The fstrim script is in /etc/cron.weekly.
  • Move it to /usr/bin.
  • Give it 755 permissions.
  • Open Cron Manager Setup: menu > timers > cron > green.
  • Run how often? ... Weekly.
  • Time to execute ... set time
  • Command type ... custom
  • Command to run ... fstrim
 
@Huevos - just a clarification on the fstrim script. Do you know why it is named the same as the fstrim executable? Would it not be clearer if it was named fstrim.sh or fstrim-weekly.sh? I understand that it has been "inherited" from the OpenATV environment, so it's probably exactly the same there.

On that point, should the Cron Manager "command to run" in your post be specified as /usr/bin/fstrim? Otherwise the built-in fstrim command would be run.
 
  • The fstrim script is in /etc/cron.weekly.
  • Move it to /usr/bin.
  • Give it 755 permissions.
  • Open Cron Manager Setup: menu > timers > cron > green.
  • Run how often? ... Weekly.
  • Time to execute ... set time
  • Command type ... custom
  • Command to run ... fstrim
Okay, done. tested it by setting the time to 15:25, but at least there is nothing on the debug log. Should there be something ? Or am I doing something wrong ?
 
Okay, done. tested it by setting the time to 15:25, but at least there is nothing on the debug log. Should there be something ? Or am I doing something wrong ?
@Orlandox - check my post #94. You might need to specify the full path to the script - /usr/bin/fstrim
 
@Huevos - just a clarification on the fstrim script. Do you know why it is named the same as the fstrim executable? Would it not be clearer if it was named fstrim.sh or fstrim-weekly.sh? I understand that it has been "inherited" from the OpenATV environment, so it's probably exactly the same there.

On that point, should the Cron Manager "command to run" in your post be specified as /usr/bin/fstrim? Otherwise the built-in fstrim command would be run.
Most cron programs will not run scripts with extensions.
 

OpenViX Feeds Status

Back
Top