Mac OS Lion 10.7.2 SSD TRIM Enable
Posted 2011. 10. 24. 10:30라이언 10.7.2 버전에서 SSD 트림 설정.
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.original
2. 트림 패치 실행
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\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. 캐쉬 초기화
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
4. 재시동
a) 트림 비활성화
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) 복구
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삼성 S470 256GB SSD 에서 이상없이 동작함.
'Mac life' 카테고리의 다른 글
MacOS X FTP Server (0) | 2012.02.20 |
---|---|
Lion 방문자 로그인 비활성화 (0) | 2011.10.28 |
parallels windows7 설정 (0) | 2011.10.20 |
MacOSX Mac Address 변경 (0) | 2011.10.20 |
맥북프로 Lion 에서 볼륨조절이 안될 때 (0) | 2011.10.18 |
- Filed under : Mac life