You are not logged in.

#1 2016-11-13 14:59:33

kozimodo
Member
Registered: 2015-10-04
Posts: 34

[SOLVED] TRIM and ECC/EDC on SSDs

Hi,

I recently revived my ancient Aspire One, replacing the HD with an SSD (Super Talent ZT4).  It does not appear to support TRIM but it does have something called ECC/EDC.  Does this mean I do not need to set up a cron job to occasionally TRIM my SSD?

Thanks!

Last edited by kozimodo (2016-11-13 17:59:23)

Offline

#2 2016-11-13 16:23:57

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] TRIM and ECC/EDC on SSDs

kozimodo wrote:

It does not appear to support TRIM

How exactly are you ascertaining this?

I would use:

sudo hdparm -I /dev/sda | grep TRIM

And look for something like:

        *    Data Set Management TRIM supported (limit 1 block)

https://en.wikipedia.org/wiki/TRIM#ATA

If your device does not support TRIM then a periodic cron job should not be used.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2016-11-13 16:42:23

kozimodo
Member
Registered: 2015-10-04
Posts: 34

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Yes, I ran that and nothing showed up.  The datasheet shows ECC/EDC "patented wear leveling technology" but says nothing about TRIM support.

Offline

#4 2016-11-13 16:54:36

kozimodo
Member
Registered: 2015-10-04
Posts: 34

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Ah, the ECC/EDC is separate from the wear leveling but there is no elaboration on just what this wear leveling technology is.

Offline

#5 2016-11-13 16:56:21

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Wear leveling != TRIM

IMO, you should not attempt to use TRIM on that device.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#6 2016-11-13 21:07:43

MsMattie
Member
Registered: 2015-09-29
Posts: 88

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Related to this, on slightly older technology Crucial m500 SSDs I have merely been using:

$ sudo fstrim -v /

I run it every few days, or so. I haven't set any automatic trim up on it. Is this sufficient?

Last edited by MsMattie (2016-11-13 21:09:07)


...
Linux in the backwoods of the Rocky Mountains...

Offline

#7 2016-11-13 21:16:32

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] TRIM and ECC/EDC on SSDs

MsMattie wrote:

Is this sufficient?

Yes, it is.

As a matter of preference, I would use this:

sudo fstrim -a

You can set up a systemd .timer to run this automatically every week very simply in BunsenLabs:

sudo cp /usr/share/doc/util-linux/examples/fstrim.service /etc/systemd/system
sudo cp /usr/share/doc/util-linux/examples/fstrim.timer /etc/systemd/system
sudo systemctl enable fstrim.timer

cool


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#8 2016-11-13 21:33:32

MsMattie
Member
Registered: 2015-09-29
Posts: 88

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Thanks.

I've googled about and can't find anything on -a

But I'm guessing it means "all" so it trims all the partitions on an SSD - hopefully all the ext4 partitions and the one ntfs partition I have on these SSDs. Rather than just the volume I am in at the the $ prompt. Is this a correct guess?


...
Linux in the backwoods of the Rocky Mountains...

Offline

#9 2016-11-13 21:37:22

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] TRIM and ECC/EDC on SSDs

MsMattie wrote:

I've googled about and can't find anything on -a

In this case, the system man(ual) pages are the reference documentation:

man fstrim

http://man7.org/linux/man-pages/man8/fstrim.8.html

Check the "-a" option wink

EDIT: also:

fstrim --help

If you're in a hurry big_smile

Last edited by Head_on_a_Stick (2016-11-13 21:39:27)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#10 2016-11-13 21:59:42

MsMattie
Member
Registered: 2015-09-29
Posts: 88

Re: [SOLVED] TRIM and ECC/EDC on SSDs

Perfect...

thanks.


...
Linux in the backwoods of the Rocky Mountains...

Offline

Board footer

Powered by FluxBB