In short: Does anybody know why running Ubuntu 14.04.3 LTS on Samsung 850 Pro 512GB drive results in corrupted file system and random files disappearing?
Here is the long story: In 2013 I got System76 laptop and I paired it with Plextor M5M 256GB (PX-256M5M) SSD. For almost two years this system was rock solid. About 3 weeks ago I replaced the SSD with new Samsung 850 Pro 512GB (MZ-7KE512) and sense then I have been experiencing stability issues. At beginning was small crashes or screen corruptions, but week after week the problem become progressively worst. My investigation quickly identified a lot of corrupted files and some just missing. After I searched the Internet I found that there are at least two main issues:
- Samsung 8xx drives do not properly support queued TRIM command execution and have been blacklisted by the Linux kernel developers Link 1. But I'm not sure if that patched is back-ported to
3.16.0-53-generic #72~14.04.1-Ubuntu SMP Fri Nov 6 18:17:23 UTC 2015 x86_64 GNU/Linux kernel
. - Algolia worked with Samsung to identify a bug in Linux kernel related to use of Samsung 850 Pro 512GB in RAID0 configuration. Link 2 (I'm not using any RAID). Looks like Samsung provided a patch Link 3, but I'm having hard time determining if this patch is accepted by kernel developers. And if it ever going to make it into Ubuntu kernel.
For now, as workaround, I have disabled trim by removing execution flag from /etc/cron.weekly/fstrim
until I find better solution. At the same time Ubuntu explicitly white-lists Samsung drives in /sbin/fstrim-all
. Am I the only one with this issue?
relatime
option in my/etc/fstab
and I'm using default scheduled job at/etc/cron.weekly/fstrim
to trim the drive. Is there are other configuration settings that I need to verify? – Svetoslav Trochev Nov 26 '15 at 22:06