Das ist alles ein wenig verwirrend für mich !
The "discard" options is not needed if your SSD has enough overprovisioning (spare space) or you leave (unpartitioned) free space on the SSD.
Ich habe meine SSD durchpartitioniert und keine extra Lücke gelassen.
Lt. der vorletzten Ausgabe der c`t berücksichtigen die Hersteller das bereits bei Ihren SSD`s.
Was ist nun richtig ?
Enable weekly trim.
http://blog.neutrino.es/2013/howto-prop ... d-dmcrypt/
sudo cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system
sudo systemctl enable fstrim.timer
(this was valid in debian testing 9/14/2015. remove this note if it's also valid in stable.)
Ich habe mit CRON keinerleic Erfahrung.
Wäre das die richtige Möglichkeit das wöchentlich Trimmen zu lassen und muss ich da noch etwas weiter angeben ?
Alternatively, and often not recommended: Set "discard" mount option in /etc/fstab for the ext4 filesystem, swap partition, Btrfs, etc. See mount(8).
Weiter unten wir ein Beispiel einer "fstab" angegeben, wo ein "ext4" mit der "discard" Option gemounted wird.
Ich hoffe hier nicht`s aus dem Zusammenhang gerissen zu haben, aber mir ist nicht klar wann ich was setzten sollte.
Für mich wäre erst einmal wie Lord_Carlos das geschrieben hat, der Eintrag in die "fstab" mit "discard".
Bei all dem bin ich mir aber nicht wirklich sicher was hier richtig und angebracht wäre.
Code: Alles auswählen
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
UUID=8ad5784e-e861-4c8d-bd39-f71866b92c14 / ext4 errors=remount-ro,noatime,discard 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=0007-1593 /boot/efi vfat noatime,defaults 0 1
# /home was on /dev/sdb5 during installation
UUID=81ca4f6b-7831-4a7f-a030-15fea8422f04 /home ext4 defaults 0 2
# swap was on /dev/sda1 during installation
UUID=9120f138-b4c7-42d8-900e-8daa6fa78c42 none swap sw,discard 0 0
Wobei "/home" bei mir auf einer normalen HDD liegt und nur die "/", "/boot/efi" und SWAP auf der SSD sich befinden.
Die "/boot/efi" ist allerdings in "vfat" formatiert. Hier würde ich "discard" nicht setzen wollen.
Passt das so was ich gemacht habe und was ist mit dem wöchentlichem Trimmen ?