Hallo zusammen!
Es geht um das automatische trimmen meiner Samsung-SSD. Ja, ich habe schon mal gelesen, dass dies bei denen gemacht werden soll. Aber irgendwie habe ich das bisher immer manuell mit
sudo fstrim -v /
angestoßen. Jetzt bin ich doch noch mal durch das Thema http://forum.ubuntuusers.de/topic/kubuntu-erkennt-ssd-als-hdd/ und dem Vorschlag dort von axel ein Script anzulegen auf meine Frage gekommen. Und auch dadurch, das in meinem >fstrim< etwas anderes steht. Führen beide Scripte zum gleichen Ziel?
1
cat /etc/cron.weekly/fstrim
Du kannst Dir auch ein kurzes Script schreiben:
Starte den Editor:
1
kate ~/trim.sh
Füge komplett ein:
1 2 3 4 5 6 7 #!/bin/sh echo sudo fstrim -v / sudo fstrim -v /home # wenn auf separater Partition exit 0Speichern, Editor beenden.
Ausführbar machen:
1
chmod +x ~/trim.shAufruf:
1
~/trim.sh
Das Script hier:
~$ cat /etc/cron.weekly/fstrim #!/bin/sh # call fstrim-all to trim all mounted file systems which support it set -e # This only runs on Intel and Samsung SSDs by default, as some SSDs with faulty # firmware may encounter data loss problems when running fstrim under high I/O # load (e. g. https://launchpad.net/bugs/1259829). You can append the # --no-model-check option here to disable the vendor check and run fstrim on # all SSD drives. exec fstrim-all
Die Scripte sehen zumindest komplett unterschiedlich aus. Das Script hier, ist das was schon drin stand und noch steht.
Danke!
Gruß Andi