2009년 10월 24일 토요일

Permissions & KEXT Caches

Mac OS X를 사용하면서 가장 문제점이 될 수 있는 것이 잘못된 권한이나 부적절한 kext cache 를 생성하는 것입니다.

항상 필요한 것은 아니지만, extensions을 수정/추가하거나 새로운 kexts가 추가되는 새로운 소프트웨어를 설치하였을때, 디스크유틸리티에서 권한복구를 하여주거나 kext caches를 새로이 만들어주는 것이 필요합니다.

물론, x86osx : Leopard driver 설치 방법 에서와 같이 kext helper를 이용하는 것이 편리한 방법이긴 하지만, 여기에서는 터미널을 이용하는 방법으로 다음과 같은 명령어를 주어 매뉴얼로 수행할 수도 있습니다.:


$ sudo chown -R 0:0 /System/Library/Extensions

$ sudo find /System/Library/Extensions -type f -exec chmod 644 {} \;

$ sudo find /System/Library/Extensions -type d -exec chmod 755 {} \;

$ sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions


다음은 "Extra"폴더를 권한복구하여 준다.:

$ sudo chown -R 0:0 /Extra

$ sudo find /Extra -type f -exec chmod 644 {} \;

$ sudo find /Extra -type d -exec chmod 755 {} \;

$ sudo kextcache -v 1 -a i386 -a x86_64 -m /Extra/Extensions.mkext /Extra/CustomExtensions


이제 시스템을 재부팅하면 된다.

만약, 다른 하드디스크나 파티션의 권한복구해 줘야 할 필요성이 있을때는 그 경로를 유념하여 사용하면 된다.

NOTE: /S/L/E 권한은 755 이고 그 안의 파일들은 644 임에 유념해야 한다.

IMPORTANT: Place any extensions that you would normally put in Extra/Extensions into Extra/CustomExtensions. This solves several bugs people have been experiencing while using Extra/Extensions in Snow Leopard with the Chameleon RC1 & PC EFI 10.1 bootloader. If you currently have extensions in Extra/Extensions simply move them to Extra/CustomExtensions before running the above commands or using the script below.

If you’ve tried using the manual method listed above to fix permissions but you are still having problems – or you just want to speed things up – I have written the following script which automates the process.

스크립터 다운로드: pfix v1.2

더블클릭하여 이 스크립터를 수행하거나 다음과 같은 커맨드를 이용하여 이 스크립터를 수행할 수 있다.

“sudo /path/to/pfix”

만약 “command not found” 혹은 “Permission denied” 라는 에러메시지가 나오면 다음과 같은 커맨드를 이용하여 스크립터 권한을 수정하여 주어야 한다.

“sudo chmod 755 /path/to/pfix”

Note: Place extensions that would normally run in Extra/Extensions into Extra/CustomExtensions for this script to work. (this solves some bugs people have been having with using Extra/Extensions in Snow Leopard).

IMPORTANT: This script is intended to be used for correcting permissions and building kext caches on Snow Leopard ONLY! Do not use this script to repair permissions on Leopard or Tiger! Also do not use on a real MAC [it is for hackintosh only].


댓글 없음:

댓글 쓰기