Hi all,
a lot of users currently switching from SATA hard disc drives to SATA Solid State Disc Drives.
So I also bought a Crucial M4 64GB SSD and installed OpenElec on it (Eden-built: OpenELEC-Ultra.x86_64-devel-20120302013700-r9963). As Skin I'm using the Back Row Skin which fits perfect to my Home-Cinema.
Now the question for me is how to activate TRIM on the SSD.
I searched the forum and found different answers and different settings.
Could someone help me in summarizing the stuff to get a general workflow for all OpenElec users?
In the Xtreamer Ultra BIOS I have switched the SATA support from "IDE" to "AHCI".
What I know so far:
1. The OpenElec kernel (in Dharma/Eden builts) is supporting TRIM/DISCARD, but it's not activated by default. The reason is not known to me.
2. I have to add TRIM/DISCARD commands/parameters somehow in a configfile, maybe autostart.sh.
autostart.sh is located in /storage/.config/autostart.sh. This should be equal to create a autostart.sh file in "\\OPENELEC\Configfiles" (in the windows explorer)
3. I found following autostart.sh commands so far:
#! /bin/sh
(sleep 30; mount -o remount,discard /storage )&
It was also mentioned to avoid the usage of the discard option and to use fstrim instead:
#! /bin/sh
(sleep 30; \ fstrim /storage \ )&
4. In another thread I found tunefs commands instead of the above autostart commands:
sudo tune2fs -o discard /dev/sdb1
sudo tune2fs -o discard /dev/sdb2
Now I have a lot of information but no exact way to activate TRIM.
Any ideas HOW activating TRIM on SSDs step by step?
Best regards,
Nitropenda