On the Orico M.2 NVME SSD enclosure which claims to support UASP, trim
did not work on a fresh Ubuntu 24.04 install until a rule was added to
/etc/udev/rules.d. The lsblk --discard sda output also listed a DISK-MAX
of 0 for all partitions. After the rule (below) added (with proper
vendor and product ids from lsusb), the DISK-MAX was 4G and fstrim
succeeded. See Allen's 2020 answer on
https://askubuntu.com/questions/262154/trim-and-ssd-with-
usb-3-0-enclosure-does-not-work-uasp-not-supported

ACTION=="add|change", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="9210",
SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1336541

Title:
  No TRIM via USB

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1336541/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to