32
submitted 1 week ago by Majestic@lemmy.ml to c/linux@lemmy.ml

Title. I need a USB 3 to SATA adapter to use a spare 2.5" SSD with a machine that doesn't have any spare SATA ports and no place to put it at this point.

I've read that most of these adapters have issues with supporting TRIM on Linux. I need one that supports TRIM.

So any recommendations for something that will survive reboots which I'm planning to use for semi-permanent game storage?

An enclosure style is fine.

(Note: I too can search Amazon. When looking into the reviews from Linux users most of the adapters that claim to work with Linux have people clarifying TRIM doesn't work.)

top 15 comments
sorted by: hot top controversial new old
[-] CameronDev@programming.dev 7 points 1 week ago

If you share your approximate location, there might be someone in your area with a harddrive enclousure that they shucked the drive from.

If your in Australia, I can send you a bunch of Western digital harddrive enclosures for free if you pay shipping.

[-] Majestic@lemmy.ml 3 points 1 week ago

Thanks for the kind offer.

Funnily enough I have a WD HDD enclosure that I shucked a drive from not too long ago. I do recall someone mentioning the circuit boards on those being functional as a USB to SATA bridge but I suppose I presumed they need mains power and didn't want the extra mess. That and I guess I wanted to keep the one I had pristine in case I need to RMA after putting it back together again as I've heard people have real mixed experience with RMAing shucked drives and with prices the way they are well I'd rather not take chances given I've only the one.

[-] Evil_Shrubbery@thelemmy.club 1 points 1 week ago

How would you unpristined it, what did you have in mind?

[-] Majestic@lemmy.ml 1 points 1 week ago

Dust, fingerprints, etc.

Allegedly they may check these things under black lights at the factory for any evidence of opening to attempt to deny warranty. With drive prices having doubled since I bought it and all capacity bought out they'd be extra eager to find any excuse to attempt to deny. Magnuson–Moss warranty act should prevent them from doing that but I don't have a high power law firm on retainer to sue and intimidate western digital into compliance if they tell me to pound dirt.

[-] brickfrog@lemmy.dbzer0.com 5 points 1 week ago* (last edited 1 week ago)

Your post title and post body are asking for two different things :P Tons of SATA to USB adapters and drive enclosures work well on Linux, that part isn't too difficult.

But what you probably want is one that has both UASP support and TRIM support for best SSD support. Here's the tricky part, even if the adapter or drive enclosure has TRIM support that doesn't mean it was auto enabled in the Linux system it was plugged into. Often times Linux can't tell if an adapter or drive enclosure has TRIM support so the safe thing to do is to not enable it by default. That means you can see the drive supports TRIM, hdparm says the drive supports TRIM, yet when you run fstrim it still complains that TRIM isn't supported.

Take a look at

https://wiki.archlinux.org/title/Solid_state_drive#External_SSD_with_TRIM_support

and https://glump.net/howto/desktop/enable-trim-on-an-external-ssd-on-linux

If you already have an external adapter or enclosure that claims TRIM support but it isn't working in Linux maybe try to enable TRIM and see how it goes?

For what it's worth I do have a drive enclosure, with ASMedia ASM1351 chipset, that claims TRIM and UASP support but by default fstrim still won't run TRIM on any drives inside it. If I get some free time maybe I'll see if I can get Debian to enable TRIM on the device just for testing but it could be a bit.

EDIT: Confirmed the instructions in archlinux seem to work and I was able to temporarily enable TRIM on my external drive enclosure to successfully run fstrim on an SSD inside it. I only did a quick test, setting provisioning_mode to "unmap" so it'll lose TRIM configuration once I disconnect the drive or restart the system. You'll probably want to go the extra step and set up udev rules to keep it enabled.

Tested on Debian with a Startech S251BMU313 (USB 3.1 enclosure for 2.5" SATA drives with ASMedia ASM1351 chipset). In theory the archlinux instructions should work with any external USB adapter or enclosure with TRIM support.

Also note the instructions are a bit confusing, I did notice that running sg_readcap immediately resets the configuration in provisioning_mode so in my case I had to avoid re-running sg_readcap after enabling "unmap".

EDIT2: Forgot one important tidbit :P for whatever reason the actual echo "unmap" command in archlinux would not work for me, I think you may need to have root permissions to actually do that? Instead I ran this with my non-root admin user:

echo unmap | sudo tee /sys/block/sdX/device/scsi_disk/*/provisioning_mode

Replace sdX with the drive device you're working with. I'm not entirely sure why the above command works for me in Debian, and not the archlinux version, but figured I'd document it here just in case.

[-] flowque@lemmy.ml 5 points 1 week ago

This from Amazon works for me: https://a.co/d/09FcGlfr SABRENT SATA to USB Cable - USB 3.0 to 2.5” SATA

I've used it with a few Samsung SSDs with Linux Mint, OSX , even works with Xbox.

[-] fratermus@piefed.social 1 points 1 week ago

That's the one I use, too. Works fine.

[-] RedWeasel@lemmy.world 2 points 1 week ago

The feature you are going to want to look for is USB Attached SCSI (UAS) or USB Attached SCSI Protocol (UASP) support.

[-] fozid@feddit.uk 2 points 1 week ago* (last edited 1 week ago)

I have 4 startech usb3 to SATA cables connected to a powered atolla usb3 hub, running on Debian. Had no problems at all with them over the last 12 months. My setup is is using lvm and raid1 with 2tb ssd's.

[-] dr_jekell@lemmy.world 2 points 1 week ago

I have had more than decent success with Orico devices.

Here is one that suits your needs:

https://oricotechs.com/products/orico-2-5-inch-type-c-6gbps-aluminum-sata-hdd-ssd-enclosure

[-] lost_faith@lemmy.ca 1 points 1 week ago

I have 2x orico enclosures, at usb 3.0(not C, I haven't used that one yet, it has a 2tb m.2) holding a 2tb and an 8 tb SATA platters, and according to the orico site several of their enclosures explicitly state they support TRIM, my 2 don't explicitly say they support TRIM but I can see the smart status on them

[-] BrianTheeBiscuiteer@lemmy.world 1 points 1 week ago

Sounds like it would be actively used so I wouldn't go without a powered adapter or hub. I struggled for months with an external adapter that would work 90% of the time but suddenly unmount at the worst times.

[-] MonkderVierte@lemmy.zip 1 points 1 week ago* (last edited 1 week ago)

Sata SSD support TRIM? They are already m.2-on-a-adapter-in-a-enclosure. Just take the SSD out and get a m.2 external case.

[-] ScoffingLizard@lemmy.dbzer0.com 1 points 1 week ago

Maybe search for internal drive enclosure. I got one for old data ssd and it works fine. It's just a case with a USB cable. You put drive in the case. I bought it a while back so will not bother sending link.

[-] AbidingOhmsLaw@lemmy.ml 1 points 1 week ago* (last edited 1 week ago)

Ditto, I've one that will power a full size sata hdd (external power supply), use it for backups to magnetic, never had an issue. Got it years ago from a defunct computer shop, so no link but I Willi post the model later and put a ssd in and check TRIM.

Edit: the enclosure I have is a ORICO 3588US3 if you use it with a ssd you don't need the external power supply, I put a ssd in it and 'sudo hdparm -I /dev/sdb' reports 'Data Set Management TRIM supported'

this post was submitted on 26 Mar 2026
32 points (100.0% liked)

Linux

64414 readers
223 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS