I have two external USB 3.0 SSD drives from Samsung (one is Model T1, other T3).
I would like to trim them with my Ubuntu 16.04.1 LTS.
While doing that I receive a error message. Here an example:
sudo fstrim -v /media/techo/Samsung_T3
fstrim: /media/techno/Samsung_T3: the discard operation is not supported
But the device support the TRIM Command:
techno@server:~$ sudo hdparm -I /dev/sdb |grep -i TRIM
* Data Set Management TRIM supported (limit 8 blocks)
thx. What do I wrong?
luckyrings
fstrimvia USB is not supported as discussed extensively here: https://ubuntuforums.org/showthread.php?t=2315800 – WinEunuuchs2Unix Dec 14 '16 at 17:49UNMAPwhich is considered equal toTRIMcommand. Does anybody have any info about if Seagate or other manufacturers support such a thing and if so, which software I can use under Linux? I'm prefer runningfstrimover havingdiscardmount option. – Mikko Rantalainen Dec 17 '18 at 05:13discardmount option andfstrimboth need kernel support for "discard operation" which is only supported for USB-SATA bridges that support SCSIUNMAPcommand and map that to SATADISCARD. Technically it should be possible to speak over USB-UAS-SCSI-SAT-SATA and directly sendDISCARDas ATA command but Linux kernel does not support that. If you don't need LVM or LUKS, you may be able to usewiper.sh(part ofhdparm) script that uses raw ATA commands. – Mikko Rantalainen Jan 01 '19 at 21:42