Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 21843  / 1 Year ago, thu, march 23, 2023, 2:30:41

I have a SanDisk SSD P4 32GB and I use ext4. Ubuntu 14.04.



I read that I should execute the trim command from time to time, however, this command doesn't work on my machine:



# LANGUAGE=en_US:en fstrim /
fstrim: /: FITRIM ioctl failed: Operation not supported


I already have discard mount option, but my other computer with OpenSUSE took 30 minutes when asked to fstrim for the first time, suggesting discard option did not function since installation 6 months ago. I intend to trim my Ubuntu machine too to see whether discard worked.



I googled for 30 minutes. All "answers" either say you should upgrade to ext4 or you should use root and OP says "Oh it then works thanks.". I already did both.


More From » ext4

 Answers
5

Is trim actually supported by your SSD ? Type



sudo hdparm -I /dev/sda | grep TRIM


(assuming sda is your drive).



Is there a line saying that TRIM is supported ?


[#23640] Friday, March 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
egantfis

Total Points: 406
Total Questions: 108
Total Answers: 108

Location: Austria
Member since Thu, Jan 7, 2021
3 Years ago
;