usb 3.0 和SSD不支持UASP?

分享于 

2分钟阅读

ubuntu

  繁體

问题

检查trim支持:


user@server:~$ sudo hdparm -I /dev/sdc | grep -i TRIM


 * Data Set Management TRIM supported (limit 8 blocks)


 * Deterministic read data after TRIM



磁盘已挂载,有以下选项:


/dev/sdc1 on /media/MICRON type ext4 (rw,nosuid,nodev,uhelper=udisks)



但是,当我手动运行trim命令时,我得到一个错误:


user@server:~$ sudo fstrim -v /media/MICRON/


fstrim: /media/MICRON/: FITRIM ioctl failed: Operation not permitted



以下是一些USB详细信息:


[ 1039.248050] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd


[ 1039.265597] scsi8 : usb-storage 4-1:1.0


[ 1041.547879] scsi 8:0:0:0: Direct-Access C400-MTF DDAC128MAM 0509 PQ: 0 ANSI: 5


[ 1041.549134] sd 8:0:0:0: Attached scsi generic sg2 type 0


[ 1041.550511] sd 8:0:0:0: [sdc] 250069680 512-byte logical blocks: (128 GB/119 GiB)


[ 1041.550778] sd 8:0:0:0: [sdc] Write Protect is off


[ 1041.550785] sd 8:0:0:0: [sdc] Mode Sense: 23 00 00 00


[ 1041.552520] sd 8:0:0:0: [sdc] No Caching mode page present


[ 1041.552528] sd 8:0:0:0: [sdc] Assuming drive cache: write through


[ 1041.554029] sd 8:0:0:0: [sdc] No Caching mode page present


[ 1041.554035] sd 8:0:0:0: [sdc] Assuming drive cache: write through


[ 1041.678373] sdc: sdc1


[ 1041.679982] sd 8:0:0:0: [sdc] No Caching mode page present


[ 1041.679991] sd 8:0:0:0: [sdc] Assuming drive cache: write through


[ 1041.679997] sd 8:0:0:0: [sdc] Attached SCSI disk



使用UASP (USB连接SCSI协议)的大容量存储设备是否支持TRIM?


答案1

TRIM 是由驱动控制器控制的。

USB3 外部控制器不支持TRIM。



SUP  USB  TRIM