从 OS X 10.10.4 开始,第三方 SSD 也能正常开 Trim 了

2015-07-20 00:30:14 +08:00
 jamesfjx
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
3210 次点击
所在节点    macOS
18 条回复
q84629462
2015-07-20 02:54:10 +08:00
我刚刚没有备份数据就直接使用命令开启了,现在想起一身冷汗
feikaras
2015-07-20 03:47:20 +08:00
@q84629462 苹果写这个明显是免责的意思,并不代表不稳定。
Citrus
2015-07-20 06:23:24 +08:00
发帖前请善用搜索。。。
/t/202433
事实上还有很多类似的。。。
Epsil0n9
2015-07-20 06:30:56 +08:00
想知道macbook自带的ssd默认开过trim吗?
squid157
2015-07-20 07:57:57 +08:00
10.10.4的beta里面没有这个,这个是在el Capitan出现的。不知道正式的10.10.4是不是有它。
nevermlnd
2015-07-20 08:07:19 +08:00
@q84629462 同问2015rmbp 10.10.2默认是开启的吗?
@feikaras
@Citrus
@squid157
holulu
2015-07-20 09:24:04 +08:00
@squid157 正在用 10.10.4 正式版,可以开的。就因为这个才入了饭盒来玩的。
66beta
2015-07-20 09:47:03 +08:00
只关心第三方SSD什么时候可以休眠?
br00k
2015-07-20 11:01:37 +08:00
@66beta 什么时候不能休眠了?
Citrus
2015-07-20 11:10:15 +08:00
@squid157 你搞错了,10.11没有这个,这是10.10.4出现的。。。
66beta
2015-07-20 11:17:41 +08:00
@br00k 我搞错了,是我把SSD放在光驱位了,所以不能 :)
squid157
2015-07-20 13:11:19 +08:00
squid157
2015-07-20 13:12:36 +08:00
@nevermlnd 自家的肯定都带TRIM
feikaras
2015-07-20 13:23:18 +08:00
@Citrus 10.10.4的正式版才有,beta没有。10.11的dp1开始有。总之10.11 dp1比10.10.4早
Citrus
2015-07-20 15:00:10 +08:00
@feikaras 那可能是我记错了。。。我看到消息的时候已经10.11 dp2 了,所以没注意 dp1 的时候有没有,抱歉。。。
lincanbin
2015-07-20 16:08:56 +08:00
伟大!要改变世界。
jamesfjx
2015-07-20 23:58:40 +08:00
@66beta 你指的是Power Nap?
66beta
2015-07-21 08:54:51 +08:00
@jamesfjx 我把SSD放在光驱位了,所以不能休眠

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/206837

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX