

It would have to detect that a SCSI disk is actually a SCSI-to-ATA translator that supports ATA passthrough and use the passthrough for DISCARDs instead of the native SCSI commands.
#Trim enabler 3.0 driver
The same passthrough could be used to issue TRIMs directly to the device, but the Linux driver does not currently do that. In fact, hdparm -I uses ATA passthrough to get information from the device. There is a standard command to do this, but some enclosures have a proprietary command instead. However, many enclosures implement a SCSI command to issue ATA commands directly to the device. In practice, the enclosures don't do this, and they indicate instead that the device does not support UNMAP. In principle, the translator in the USB enclosure could often translate UNMAP requests to the corresponding ATA TRIM, although there are probably tricky cases. As USB storage devices look like SCSI disks, Linux tries to use UNMAP or a couple of other possible SCSI commands. When Linux receives the command to trim a device, it looks up the correct command to be sent to the device. The operation called TRIM in ATA is called UNMAP in SCSI and DISCARD in the Linux kernel. The USB enclosure has to provide a translator between these command sets. The problem is that USB storage devices employ the SCSI command set, whereas the SSD drive implements the ATA command set.
#Trim enabler 3.0 software
This is a software issue, Linux does not seem to currently support TRIM through USB.
#Trim enabler 3.0 how to
How to find out if the mass storage device using the UASP (USB Attached SCSI Protocol) which should support TRIM? sd 8:0:0:0: Assuming drive cache: write through sd 8:0:0:0: No Caching mode page present

sd 8:0:0:0: Attached scsi generic sg2 type 0 Here some USB details: usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd I used this disk before as an internal disk and trim was working, please assist me thank you. * Data Set Management TRIM supported (limit 8 blocks)ĭisk was mounted with following options: /dev/sdc1 on /media/MICRON type ext4 (rw,nosuid,nodev,uhelper=udisks)īut when I run the trim command manually I get an error: sudo fstrim -v /media/MICRON/įstrim: /media/MICRON/: FITRIM ioctl failed: Operation not permitted Disk is working, but I want to use TRIM suppport which is not working as expected.Ĭheck for trim support: sudo hdparm -I /dev/sdc | grep -i TRIM Now I want use this disk as second disk in my laptop with Ubuntu 12.04. I have installed one SSD disk (Micron C400-MTFDDAC128MAM) in an external usb 3.0 enclosure.
