Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian SSD support

Need help with peripherals or devices?
Post Reply
Message
Author
Talbot9
Posts: 3
Joined: 2017-04-02 11:30

Debian SSD support

#1 Post by Talbot9 »

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/ ... ata-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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian SSD support

#2 Post by bw123 »

... 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!!
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian SSD support

#3 Post by Head_on_a_Stick »

http://forums.debian.net/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 ;)
deadbang

Talbot9
Posts: 3
Joined: 2017-04-02 11:30

Re: Debian SSD support

#4 Post by Talbot9 »

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.

dibl
Posts: 528
Joined: 2009-10-13 19:50
Location: Dayton, Ohio, USA

Re: Debian SSD support

#5 Post by dibl »

Debian sid / siduction KDE

Post Reply