Yosemite 10.10.4 加入了一个新命令trimforce,可以强行打开第三方ssd的trim功能,只需一步:
$ sudo trimforce enable
只有较新的ssd才能顺利开启,尝试前一定要备份数据!备份数据!备份数据!
附上man trimforce
TRIMFORCE(8) BSD System Manager's Manual TRIMFORCE(8)
NAME
trimforce -- enable TRIM commands on third-party drives
SYNOPSIS
trimforce verb
DESCRIPTION
trimforce enables sending TRIM commands to third-party drives attached to an AHCI controller. By default, TRIM commands are not sent to third-party drives.
Use extreme caution when enabling TRIM, as some drives may not correctly handle the commands. trimforce must be run by the system administrator.
VERBS
enable
Start sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.
disable
Stop sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.
help
Display brief usage syntax.
ERRORS
trimforce will exit with status 0 if successful, or with an appropriate error if it cannot parse input, allocate memory, or is unauthorized to perform its
work.
HISTORY
The trimforce utility first appeared in OS X 10.10.4.
OS X 27 April 2015 OS X
$ sudo trimforce enable
只有较新的ssd才能顺利开启,尝试前一定要备份数据!备份数据!备份数据!
附上man trimforce
TRIMFORCE(8) BSD System Manager's Manual TRIMFORCE(8)
NAME
trimforce -- enable TRIM commands on third-party drives
SYNOPSIS
trimforce verb
DESCRIPTION
trimforce enables sending TRIM commands to third-party drives attached to an AHCI controller. By default, TRIM commands are not sent to third-party drives.
Use extreme caution when enabling TRIM, as some drives may not correctly handle the commands. trimforce must be run by the system administrator.
VERBS
enable
Start sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.
disable
Stop sending TRIM commands to AHCI-attached third-party drives. Requires a reboot to take effect.
help
Display brief usage syntax.
ERRORS
trimforce will exit with status 0 if successful, or with an appropriate error if it cannot parse input, allocate memory, or is unauthorized to perform its
work.
HISTORY
The trimforce utility first appeared in OS X 10.10.4.
OS X 27 April 2015 OS X