TRIM Enabler for Lion
OK. Now that Lion’s out, people want their SSD TRIM support back. I have one thing to say:
DO NOT USE TRIM ENABLER (VERSION 1.1 OR 1.2) TO ENABLE TRIM ON LION.
After a little inspection of this application, I found that instead of patching the file, it replaces an entire kernel extension. This means that when you use TRIM Enabler with Lion, it replaces a critical kernel extension, with lots of dependencies, with an older one (from Snow Leopard 10.6.8). This is bad. Very bad. While TRIM does become enabled, the kernel extension you now have has the potential to cause a ton of problems. That means anything from kernel panics, to disk I/O delays…and the dreaded spinning beach ball.
After confronting the developer, Oskar Groth (who I refuse to link to), via his blog’s commenting system, I was told that I was simply trolling and spreading fear (even though I offered the alternative I share here). Apparently, the next version of TRIM Enabler will correctly patch the file, instead of replacing it, but that hasn’t happened yet.
So, here’s the proper way to enable TRIM support. Run these commands in Terminal:
1. Backup the file we’re patching
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original
2. Patch the file to enable TRIM support
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
3. Clear the system kernel extension cache
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
4. Now Reboot!
a) If in the future you want to disable TRIM support
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
b) If something goes horribly wrong, restore the backup
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
All this patch does is simply replace the string “APPLE SSD” in the file IOAHCIBlockStorage with zeros. This happens to bypass the restriction of only allowing Apple branded SSDs. The backup of the original file is saved in the same directory as the original file.
To check if it worked, open up About This Mac, click the “More Info…” button then the “System Report” button. In the list on the l
速度明显提升 SSD刷新固件支持Trim指令_信息与通信_工程科技_专业资料。虽然目前固态硬盘的价格较高,但毋庸置疑它的市场前景非常广阔。在这个进化过程中,SSD也在不...
Q: Trim 命令到底做了什么? A: 简而言之, 这个问题是因为操作系统和文件系统不能和 SSD 的主控进行删除文件 的交流造成的,如果有之前没清除干净的数据,所有...
如何让 SSD 进行 4K 对齐 第 3 页:如何识别 SATA 接口是否原生/少分区以 及小分区 第 4 页:如何确保打开 Trim 指令及总结返回分页浏览 1 如何让 SSD 运行...
加速2012,SSD极速世界——从无到有——Trim能否释放SSDRAID潜力?!_专业资料。如果你要问当前PC最大的性能瓶颈是什么.大多数资深玩家会告诉你是存储系统。若你要问...
trim技术需要OS和ssd同时支持才有效,ssd必须通过OS的命令才能执行trim的相关指令,以达到ssd的速度优化的目的。两者缺一不可,好在现在新出的ssd基本都支持trim,而win...
越用越慢?谈谈使用SSD的几个注意事项 1.使用环境:Windows 7和AHCI是必须的,当然还有SATA3 固态硬盘最重要的技术:Trim 为了解决硬盘降速的问题,微软联合各大SSD...
在这里,提示为“DisableDeleteNotify = 0”即Trim指令已启用;提示为“DisableDeleteNotify = 1”即为Trim指令未启用。 并不是操作系统提供Trim指令支持,所有SSD都能...
主要由“闪存”与“主控”组成的 SSD 并不是磁头至磁碟 的读写,SSD 要有“预留空间 OP”,会“写入放大 WA”,执行 TRIM 指令,时时进行“垃圾 回收”等复杂...
Trim 是一个非常重要的功能,它可以提高 SSD 的读写能力,减少延迟。这是 WIN7支持的 一项重要技术,需要通过升级来支持。 通过以上两个驱动就可以开启 TRIM 模式...
Ubuntu 14.04 默认支持 SSD TRIM 功能 Ubuntu 用户对明年四月的要发布的 Ubuntu 14.04 LTS 有一些额外的期待,就 是希望默认支持 SSD TRIM 功能。现在终于得偿...
热门文档