grub 内核启动参数(kernel command-line parameters)

来源:互联网 发布:网络ping值测试 编辑:程序博客网 时间:2024/05/17 09:17

参数解释

kernel /boot/vmlinuz-2.6.32-279.el6.x86_64 ro root=UUID=866f85ce-0e10-424b-a329-19f3bebeacb8 nomodeset rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=128M LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet

ro: Mount the root device read-only on boot
root=UUID=866f85ce-0e10-424b-a329-19f3bebeacb8: Specify the root filesystem to boot from(/sbin/init 所在分区)
nomodeset: Disable Kernel Mode Setting(点击打开链接)
rd_NO_LUKS
KEYBOARDTYPE=pc
KEYTABLE=us
rd_NO_MD
crashkernel=128M: Reserve a portion of physical memory for kexec to use
LANG=zh_CN.UTF-8
rd_NO_LVM
rd_NO_DM
rhgb: redhat graphical boot - This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.
quiet: hides the majority of boot messages before rhgb starts. These are supposed to make the common user more comfortable. They get alarmed about seeing the kernel and initializing messages, so they hide them for their comfort.


启动时指定 run level

1(or single): single user mode
3: 文本界面,不启动图形界面(在文本界面中 startx 即可启动图形界面)
5: 图形界面

/etc/inittab

# Default runlevel. The runlevels used are:#   0 - halt (Do NOT set initdefault to this)#   1 - Single user mode#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)#   3 - Full multiuser mode#   4 - unused#   5 - X11#   6 - reboot (Do NOT set initdefault to this)# id:5:initdefault:

参考资料

Google: "grub kernel boot parameters", "kernel command-line parameters"

Kernel Boot Command-LineParameter Reference

10 boot time parameters you should know about the Linux kernel

The Linux BootPrompt-HowTo, http://www.tldp.org/HOWTO/BootPrompt-HOWTO.html

Kernel boot command-line parameter reference: Chapter 9 - Linux Kernel in a Nutshell

http://wiki.ubuntu.org.cn/UbuntuHelp:BootOptions

Linux内核引导参数简介



原创粉丝点击