Debian SSD support

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Debian SSD support

Postby Talbot9 » 2017-04-02 12:01

Hello everyone,

I decided that Windows 7 will be my last Windows OS and to install Debian Jessie on my Thinkpad.
To ensure a clean installation I will install Debian on a new SSD.

From many sources I read that SSD-support in Linux is not the best. Especially one said that there are problems with the NCQ-TRIM command.
Apparently data corruption will occur on some SSD devices, which was the reason to put many SSD onto a blacklist written in the kernel (for reference: https://github.com/torvalds/linux/blob/e64f638483a21105c7ce330d543fa1f1c35b5bc7/drivers/ata/libata-core.c starting at line 4109).

I figured out that NCQ-TRIM is an advanced version of the "normal" TRIM command.
My question now is, if normal TRIM works in Debian with the blacklisted devices?
I want to buy a Crucial MX300 which is not named in the blacklist but I read that it also wont support NCQ-TRIM.

Will it work if I create a cron for weekly or daily "normal" TRIM?
Or could it be that there is no real difference between NCQ-TRIM and TRIM and both wont work with a blacklisted SSD?


I hope that you could help me with this problem because real information about it is very rare.
Talbot9
 
Posts: 3
Joined: 2017-04-02 11:30

Re: Debian SSD support

Postby bw123 » 2017-04-02 13:56

... real information about it is very rare.


There are several good threads on here, some pretty long about trim, did you try a search of the forum?

I think your questions are contradictory, because you say that the drive you want to buy is not blacklisted for 'discard' use, but then ask if trim will work at all for a blacklisted device?

From what I've read, the manual fstrim works on all devices, while 'discard' option when mounting does have some issues, perhaps only on the early ssd drives?

There are different opinions on how to do a periodic trim, some prefer a cron job, while some use a systemd unit file I believe.

I use a sandisk plus, and mount it with 'discard' option on all partitions and it has performed well for about 6 months now.
I used this method to verify discard works on the drive
http://techgage.com/article/enabling_an ... r_linux/2/


p.s.
I decided that Windows 7 will be my last Windows OS


CONGRATULATIONS!!
jessie/KDE4.14.2 plasma netbook, 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
User avatar
bw123
 
Posts: 2378
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Debian SSD support

Postby Head_on_a_Stick » 2017-04-02 14:40

viewtopic.php?f=16&t=130965

The data corruption issues of which you speak were fixed a while ago and only applied to certain RAID configurations with the discard option applied:

http://www.spinics.net/lists/raid/msg49452.html

The method outlined in my linked HowTo does not require special filesystem options and so would have been "safe" in respect of that bug ;)
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6489
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian SSD support

Postby Talbot9 » 2017-04-02 16:52

I want to thank you both for your answers.

My next steps will be to learn a little bit more about TRIM and discard ...but to hear that fstrim should work is really reassuring.
Talbot9
 
Posts: 3
Joined: 2017-04-02 11:30

Re: Debian SSD support

Postby dibl » 2017-04-05 11:36

Debian sid / siduction KDE
dibl
 
Posts: 527
Joined: 2009-10-13 19:50
Location: Dayton, Ohio, USA


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable