Enable TRIM Support for USB Drives

Hi everyone,

I just switched from CasaOS to ZimaOS and realised, that two of my USB SSDs were reporting “Full” despite not even being half full. Turns out this was due to TRIM garbage collection not working.

I had the same issue on CasaOS, but it was easy to fix there by enabling TRIM and making it run regularly.

Sadly I can’t get this to work on ZimaOS. It appears too use the wrong driver for the USB Discs (USB Storage instead of uas) and I haven’t found a way to fix it yet.

Please help? :wink:

Sadly no reply yet and no solution. I did stumble on another issue though…deleted files stay in “trash” and that adds up quickly. I haven’t found a way to set the automatic deletion of the “trash” folder to something more reasonable yet.

Thanks for the update, and I’m sorry there’s still no reply or solution yet.

About the Trash issue: may I ask which version you’re currently using?
At the moment, our trash retention policy is 30 days. This is mainly designed with data safety in mind, to help prevent accidental permanent deletion. We currently consider 30 days to be a reasonable default.

If that retention period feels too long for your use case, another option is to create a scheduled script to automatically clean the trash more frequently.

Hi there and thanks for replying.

I am currently on 1.6 beta 2. My issue with “Trash” is, that the Zima NAS is essentially my Backup Server. I store stuff like Proxmox Backups and have a retention of 3 Backups. 3 Backups is about 600GB, meaning that every time a Backup gets deleted, that’s 200GB in Trash and that very quickly fills the 1tb Drive I use for the Proxmox Backups. The other Drives are used for Immich Backup, Home Assistant Backup etc. and don’t see that much Data so far.

I know I could create a cronjob in the Terminal, but I believe ZimaOS is supposed to be more “UI Driven” and should have UI Options for things like the size of the “trashcan”