Hacker News new | past | comments | ask | show | jobs | submit login

What about external SSDs over USB? How do you trim those?



There are trim-equivalent commands in the ATA, SCSI, and NVMe command sets. So the OS can issue the SCSI command to the USB device that's using UASP, and the bridge chip inside the external SSD can translate that to the ATA or NVMe counterpart before passing it on to the SSD controller behind the bridge. Not all external SSDs or bridge chips actually support trim passthrough, but these days it's standard functionality.


I wonder how to do it on macOS then. I have several external SSDs and none of them can be trimmed.


https://kb.plugable.com/data-storage/trim-an-ssd-in-macos

Apparently macOS doesn't expose the ability for userspace to manually issue trim commands to block devices (or at least doesn't ship a suitable tool to do so), so the best available workaround is to tell the filesystem layer that it should do automatic trimming even on external drives.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: