Hello:
I have KaOS installed on a partition on a SSD, and Manjaro in another partition.
In Manjaro I created a service for when boot the computer, he trim SSD.
I copied the file to KAOS, and I do not run fstrim.
The file es:
/home/rafa/trim
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
/usr/lib/systemd/system/fstrim.service
[Unit]
Description=Trim free cells on the SSD
After=local-fs.target
[Service]
ExecStart=/home/rafa/trim
Type=oneshot
[Install]
WantedBy=multi-user.target
In /var/log/trim.log only appear the date and and does not run fstrim
systemctl status fstrim.service result:
fstrim.service - Trim free cells on the SSD
Loaded: loaded (/usr/lib/systemd/system/fstrim.service; enabled)
Active: failed (Result: exit-code) since sáb 2014-02-08 20:31:58 CET; 17s ago
Process: 3518 ExecStart=/home/rafa/trim (code=exited, status=127)
Main PID: 3518 (code=exited, status=127)
feb 08 20:31:58 warper trim[3518]: [59B blob data]
feb 08 20:31:58 warper systemd[1]: fstrim.service: main process exited, code=exited, status=127/n/a
feb 08 20:31:58 warper systemd[1]: Failed to start Trim free cells on the SSD.
feb 08 20:31:58 warper systemd[1]: Unit fstrim.service entered failed state.
As I said, in Manjaro runs smoothly. Any help?
Greetings
Edit: In file trim, I add the route to fstrim, /sbin/fstrim, and now it's work again