Originally Posted by Nearseer
I bought my first SSD (sadly an 840EVO
) in 2014 September.
After a fresh Mint install I followed the instructions from here:
I disabled the default weekly TRIM ("cron job"),
and added the TRIM command to /etc/rc.local.
I have no problem with this method at all.
Now in my system(Dell E5400) under Linux Mint 17.1 the TRIM command cause I/O malfunction on 840EVO with the new firmware.
It doesn't matter that the system triggers TRIM with the default weekly "cron job" or manually I triggered it.
(my native language is not English, so my spelling may be bad sometimes, sorry)
I was no aware that Mint or Ubuntu had a cron job for trim. I always add discard to fstab any way for frinds, works on swap and ext4 at least.
Also that guide seems to emphasis on removing fstrim from the cron jobs.
I personally dont see a point in having it in rc.local either on boot as it suggests.
Tough I run gentoo and all the guides I read suggest using discard in fstab since that allows the kernel to pass trim commands as needed. I ahve used discard since the second generation SSD's like the OCZ vertex on by own linux and frinds linux systems, OCZ Vertex, Intel 320, Crucial M4, 840, 840 EVO, MX100 to name some of them.
So I would just disable that fstrim cron jobb, in my case with gentoo I wont have that running out of the box any way since its basicly linux from scratch and then I just add discard to fstab on any swap or ext4 partitions on the SSD.
This is my servers fstab config for the ssd. discard for swap and ext4 and notime, notime disables the time stamp updates on the filsystem when ever a file is accessed, read that is not written.
/dev/sda1 /boot ext4 noauto,discard,noatime 1 1
/dev/sda3 / ext4 noatime,discard 0 0
/dev/sda2 none swap sw,discard 0 0
Any way I dont like that guide you linked, not seen one like it before. discard in fstab seems to be the preferred method and I cant see the downside of the kernel issuing trim commands when its actually needed.
But any way its alarming that the new firmware caused that problem but any way I would not use trim that way on a linux system. But its good to know that ubuntu and mint uses a cron job by default so one might need to disable that and just add discard to /et/fstab instead and thats how I prefer it.