grub 内核启动参数(kernel command-line parameters)
2013-03-10 16:31
465 查看
参数解释
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 mode3: 文本界面,不启动图形界面(在文本界面中 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内核引导参数简介
相关文章推荐
- Linux Kernel command line 内核输入参数/proc/cmdline
- Embedded Linux kernel的启动参数command line的传递方式
- Linux Kernel Boot Parameters(Linux内核启动参数)
- <ZT>ParseCommandLine 有关命令行启动参数的一些技巧
- /proc/cmdline保存内核启动参数以及不可修改
- kernel command line 参数详解
- linux内核可以接受的参数 | Linux kernel启动参数 | 通过grub给内核传递参数
- grub 的安装与使用&&利用grub修改内核启动参数
- linux内核可以接受的参数 | Linux kernel启动参数 | 通过grub给内核传递参数
- 从proc/cmdline中提取信息内核启动参数
- Linux kernel command line 参数详解
- 在linux上给grub添加内核启动参数
- 用CommandLine可以传入程序启动的参数
- kernel command line 参数详解
- C语言函数之可变参数原理:va_start、va_arg及va_end !!!!!!和printascii在kernel启动前的应用
- debian编译内核时err: line 65 dpkg-gencontrol command not found
- debian编译内核时err: line 65 dpkg-gencontrol command not found
- NC5 开发环境 中间件启动不了(Exception occurred executing command line.)
- Linux内核启动参数
- CCommandLineInfo详解-启动不创建新文档