Contribute
Register

TRIM function How to if terminal cmd doesn't work ?

Status
Not open for further replies.
Joined
May 3, 2021
Messages
3
Motherboard
Asus P8H61-M LX3 Plus
CPU
i5 3570
Graphics
GT 710
Mac
  1. Mac Pro
Hi everyone,
i've found the the TRIM function on my ssd is disabled; i've tried multiple time the command "sudo trimforce enable", as i always do on real mac, but it seems that this don't work.
There is another way to enable it?
Thank you

(macOS Catalina 10.5.7 - SSD Kingston A400)
 
Are you using Clover or OpenCore as your bootloader?

When using Clover you can add the following patch to the Kext and Kernel Patches section of your config.plist to enable trim.

Screenshot 2022-09-02 at 19.38.39.png Select Enable Trim from drop down menu in Clover Configurator

Remember to unselect the Disable patch option, which is automatically enabled when this patch is selected in Clover Configurator.

Screenshot 2022-09-02 at 19.40.03.png Screenshot 2022-09-02 at 19.40.14.png


In OpenCore the process can be a little more complicated, in that you may need to set a time for the trim action to work, this can effect the time it takes to boot your system from a cold start.

The screenshot below contains the information provided by the OpenCore developers in their OC Configuration guide, which starts on page 35 in the Configuration.pdf for OC 0.8.3.

Screenshot 2022-09-02 at 19.46.49.png SetApfsTrimTimeout & ThirdPartyDrives options.

Enabling the ThirdPartyDrives option in your config.plist should enable the Trim option.

Setting a timeout figure in the SetApfsTrimTimeout entry will give OC more chance of fully completing the Trim command, this may make the boot time longer, depending on when you last ran the Trim command on your SSD.

Have a careful read of the information above and see what you make of it.

You can of course change the SetApfsTrimTimeout entry from say '4294967295' back to '-1', once you are sure the Trim command has been completed on your SSD. So it is only run as and when you choose to change the setting.

This of course assumes you are not running macOS Monterey, as the trim command stopped working in Monterey.
 
Are you using Clover or OpenCore as your bootloader?

When using Clover you can add the following patch to the Kext and Kernel Patches section of your config.plist to enable trim.

View attachment 554214 Select Enable Trim from drop down menu in Clover Configurator

Remember to unselect the Disable patch option, which is automatically enabled when this patch is selected in Clover Configurator.

View attachment 554215 View attachment 554216


In OpenCore the process can be a little more complicated, in that you may need to set a time for the trim action to work, this can effect the time it takes to boot your system from a cold start.

The screenshot below contains the information provided by the OpenCore developers in their OC Configuration guide, which starts on page 35 in the Configuration.pdf for OC 0.8.3.

View attachment 554217 SetApfsTrimTimeout & ThirdPartyDrives options.

Enabling the ThirdPartyDrives option in your config.plist should enable the Trim option.

Setting a timeout figure in the SetApfsTrimTimeout entry will give OC more chance of fully completing the Trim command, this may make the boot time longer, depending on when you last ran the Trim command on your SSD.

Have a careful read of the information above and see what you make of it.

You can of course change the SetApfsTrimTimeout entry from say '4294967295' back to '-1', once you are sure the Trim command has been completed on your SSD. So it is only run as and when you choose to change the setting.

This of course assumes you are not running macOS Monterey, as the trim command stopped working in Monterey.
Thank you for your answer,
I'm using Clover, I will try the way you suggested.
Thank you!
 
I use a Silicon Power SATA SSD and in Ventura I do not enable TRIM with the command "enable sudo trimforce". But it boots instantly and works fine. But if the ThirdPartyDrives TRIM option is enabled, but the boot is terribly long and then the interface and especially the video starts to slow down.
OpenCore 0.9.1
 
Last edited:
Status
Not open for further replies.
Back
Top