分类: BSD
2011-03-14 15:56:58
切换 32位 or 64位 内核 – Mac OS X 10.6
Mac OS X很有意思,安装的时候已经同时装了32位内核和64位内核,但对于非server版的10.6来说,默认启动的是32位内核。Apple官方给出了如何快速切换内核的方法[1]:
1. 临时切换内核:
该方法只生效一次,下次启动又恢复成默认内核(方法2可以修改默认启动内核):
启动时:
1) 按住 '3' 和 '2',则本次启动进入32位内核;
2) 按住 '6' 和 '4' ,则本次启动进入64位内核。
2. 设置默认启动内核:
To select the 64-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture x86_64
To select the 32-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture i386
Note: This setting is stored in the /Library/Preferences/SystemConfiguration/com.apple.Boot.plist file and will take effect every time you start up from this disk. If you start up from a different disk, the setting on that disk, or the hardware default, will take effect.
Reference:
[1] Mac OS X v10.6: Starting up with the 32-bit or 64-bit kernel: