• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to find kernel parameters used while booting

by admin

The options and arguments supplied while booting RHEL/CentOS kernel can be viewed in the file /proc/cmdline.

# cat /proc/cmdline 
ro root=/dev/mapper/vg_os-lv_os rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=131M@0M rd_LVM_LV=vg_os/lv_os  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet

Comparing with the default boot parameters

You can compare the /etc/grub.conf file with the /proc/cmdline file to see if the same options are used while booting the kernel. The /etc/cmdline is very useful to find if the kernel has been booted using any different parameters/arguments than that defined in the /etc/grun.conf file

# cat /etc/grub.conf 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_os-lv_os
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux 6 (2.6.32-504.el6.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg_os-lv_os rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_os/lv_os  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
	initrd /initramfs-2.6.32-504.el6.x86_64.img

Filed Under: Linux

Some more articles you might also be interested in …

  1. fscrypt Command Examples in Linux
  2. powerstat: command not found
  3. Getting “parsing errors” When Running ‘yum repolist’
  4. firewall-cmd: command not found
  5. date Command Examples in Linux
  6. How to Execute Scripts/Commands using /etc/rc.d/rc.local in CentOS/RHEL 7
  7. Troubleshooting slow network communication or Connection Timeouts in Linux
  8. lolcat Command Examples in Linux
  9. CentOS / RHEL 6 : How to configure kdump
  10. light Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright