badwood316

  对SSD没有研究,同事提出苹果对非官方的SSD不开启TRIM,上网度了一把,对TRIM不明觉厉。

一、TRIM是怎么回事:http://bbs.feng.com/read-htm-tid-1870887.html

二、打开非官方SSD的TRIM:http://bbs.feng.com/read-htm-tid-8997023.html

  其方法很简单,依葫芦画瓢即可。

sudo nvram boot-args="kext-dev-mode=1"
重启

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.bak

sudo perl -pi -e \'s|\x00\x41\x50\x50\x4c\x45\x20\x53\x53\x44\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

sudo touch /System/Library/Extensions

sudo kextcache -prelinked-kernel /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache -K /System/Library/Kernels/kernel /System/Library/Extensions

重启

 

分类:

技术点:

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2021-12-03
  • 2022-01-25
  • 2022-01-04
  • 2022-12-23
  • 2022-02-04
  • 2021-11-19
猜你喜欢
  • 2022-02-10
  • 2021-06-03
  • 2021-12-20
  • 2021-12-20
  • 2022-01-05
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案