2

I have a Samsung 870 EVO 1TB SSD that seems to disppear at random times when installing or attempting to use my OS.

It has happened on multiple different distros, but not on Windows. All SMART tests come back with great results.

I know there is a bug related to some Samsung SSDs that was supposedly fixed. I'm not sure if there are other bug reports, but here's the one I found: https://bugzilla.kernel.org/show_bug.cgi?id=203475

If the answer to the question in the title is "no", is there a way to apply this fix before I've even had the chance to install a distro to disk?

I'm really only guessing that this might be the problem since it works perfectly fine in a Windows environment, and there aren't any worrisome SMART results.

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Kerpop
  • 21
  • 2
  • That bug is a few months old. Are you sure you don't already have a kernel with the fix applied? What kernel version do you have (`uname -r`)? – terdon Nov 16 '21 at 13:50
  • ... or `uname -v` (because many kernels only show their ABI with `uname -r`, not the stable version they’re based on). – Stephen Kitt Nov 17 '21 at 07:33

1 Answers1

6

The main patch fixing the NCQ trim issue landed in 5.15, and has been backported to stable kernels 5.14.11 and 5.13.19. So distributions with at least those kernels include the fix: Ubuntu 21.10, Fedora 34 and 35, and any derivatives. However I’m not sure whether their current installers include the fix, or if it’s only available as a post-installation update.

Even if your kernel doesn’t have the necessary patch, you can avoid the problem by booting with the noncqtrim kernel parameter; how to do that depends on the distribution you choose and its installer, see the distribution’s installation documentation for details.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164