【转载】安装苹果的参数

来源:互联网 发布:比较有品位的软件 编辑:程序博客网 时间:2024/04/26 13:32

装黑苹果机开机时,有时候需要自己输入一些参数,来正常启动Mac,比如改显示模式,安全模式等,现将常用参数介绍一下,亦可当作备忘:

-v <-----冗长模式,很多人都知道这个模式,就是启动时显示文字式的详细启动资讯。

-x &lt;-----安全模式,载入最少的kext。

-s &lt;----- 单一使用者模式, 这个模式只能使用指令. 可以用这个模式以指令去修復系统。

-f &lt;----- 使系统重新载入所有kext及dump一个「启动设定快取」出来,快取位于/System/Library/Extensions.mkext (可手动清除这个档案,下次启动时,系统会自动再建立!)

"Graphics Mode" &lt;----使用甚么解像度进入系统!

例1: "Graphics Mode"="1024x768x32"

(Width x Height x Color Depth)

例2: "Graphics Mode"="640x480x32@60"

(Width x Height x Depth @ Refresh Rate)

rd= &lt;-----令系统载入Mac所在的分割区位置。

例: rd=disk0s2 (这是指Mac安装在第1隻HD第2个分割区!)

例: rd=*/PCI0@0/CHN0@0/@0:1 (启动PCI Raid card,格式rd=*)

Platform= &lt;------设定使用甚么平台进入系统。

可使用以下平台:

platform=ACPI &lt;------(支持ACPI)

platform=X86PC &lt;------(不支持ACPI)

platform=ACPI|86PC &lt;----(尝试支持ACPI,如果真係支持唔到就唔支持)

?memory = &lt;------显示系统记忆体资讯。

?video = &lt;-------显示电脑的显示卡最高支持甚么解像度。

ACPI 参数

acpi=off &lt;------不启动ACPI。

acpi=ht &lt;-----以ACPI boot table启动。

acpi=force &lt;------强制启动ACPI。 (通常也不会用到这个参数!)

acpi=strict &lt;-------限制ACPI。

acpi_sci={edge,level,high,low} &lt;-----设定ACPI SCI中断。

例: acpi_sci=edge

acpi=noirq &lt;-------不设定ACPI使用的IRQ。

核心参数:

-l = &lt;----使用L2 Cache。

cpus= &lt;-----使用CPU多少个核心。

例: cpus=1 或 cpus=2

idlehalt= &lt;------ 0为关闭,1为启动,省电模式,系统閒置一段时间会停止电源。

cpuidle= &lt;------ 0为关闭,1为启动,CPU省电模式,CPU閒置一段时间后会停止电源。

-legacy &lt;------ 若电脑只支持32bit,此参数可令64Bit Mac OS以32bit模式启动。

debug=0x100 &lt;------ 除错时适用,如遇上不明问题,无法启动系统,可试试这个参数,这个参数或许能提供有用的资讯协助除错。

maxmem=***x &lt;------系统使用最大的记忆体数量。

例: maxmem=4096

 

下面这是BootThink的帮助, 内容差不多,这里就保留原滋原味了。

The boot: prompt waits for you to type advanced startup options.
If you don't type anything, the computer continues starting up normally. It
uses the kernel and configuration files on the startup device, which it also
uses as the root device. Advanced startup options use the following syntax:
    [device]&lt;kernel> [arguments]
Example arguments include
device: rd=<BSD device name>       (e.g. rd=disk0s2)
         rd=*<IODeviceTree path>    (e.g. rd=*/PCI0@0/CHN0@0/@0:1)
kernel: kernel name                (e.g. "mach_kernel" - must be in "/" )
flags: -v (verbose)    -s (single user mode),
        -x (safe mode)  -F (ignore boot configuration file)
"Graphics Mode"="WIDTHxHEIGHTxDEPTH" (e.g. "1024x768x32")
    For VESA 3.0 graphics, you may append a refresh rate
    after an "@" character (e.g. "1280x1024x32@75")
kernel flags                       (e.g. debug=0x144)
io=0xffffffff                      (defined in IOKit/IOKitDebug.h)

Example: mach_kernel rd=disk0s1 -v "Graphics Mode"="4096x4096x32@85"

If the computer won't start up properly, you may be able to start it up using
safe mode.  Type -x to start up in safe mode, which ignores all cached
driver files.

Special booter commands:
  ?memory    Displays information about the computer's memory.
  ?video     Displays VESA video modes supported by the computer's BIOS.

Additional useful command-line options:
  config=<file>             Use an alternate Boot.plist file.
  platform=ACPI|X86PC       Use either ACPI or non-ACPI platform support.

Options useful in the com.apple.Boot.plist file:
  "Boot Graphics"=Yes|No    Use graphics mode or text mode when starting.
  "Quiet Boot"=Yes|No       Use quiet boot mode (no messages or prompt).
  Timeout=8                 Number of seconds to pause at the boot: prompt

0 0