grub 内核启动参数(kernel command-line parameters)
  48HTyjGrRLH9 2023年11月02日 67 0


参数解释

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内核引导参数简介




【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  2oXoBYjmdHYq   2023年12月05日   39   0   0 sedsedMySQLMySQL
  VhtxyaVzvLBv   2023年11月25日   27   0   0 sedsedSQLicoSQLico
  2WRn6vNCdNjo   2023年12月12日   52   0   0 hgredishgredis
48HTyjGrRLH9