32

During test, I sometimes add/change boot parameters to /boot/grub/menu.lst (suse), or at the grub screen during boot.

How do I check what boot parameters have been used after the system is done booting?

Bruno Pereira
  • 8,916
  • 1
  • 16
  • 17
peonicles
  • 495
  • 1
  • 6
  • 10
  • check this http://www.cyberciti.biz/tips/10-boot-time-parameters-you-should-know-about-the-linux-kernel.html it may be helpfull – BlueBerry - Vignesh4303 Aug 06 '12 at 09:09
  • 3
    The "kernel command line" which contains those "boot parameters" should be in the system log, accessible with the `dmesg` command. A copy of the kernel command line is also in /proc/cmdline. – sawdust Aug 06 '12 at 09:43
  • @sawdust, cat /proc/cmdline did the trick. – peonicles Aug 06 '12 at 10:05

1 Answers1

51

The bootloader (grub in this case) will pass the boot parameters to the Linux kernel in a memory buffer called the kernel command line. The kernel command line, along with other console messages output during boot, should be in the system log, retrievable with the dmesg command.

A copy of the kernel command line is also in the file /proc/cmdline.

sawdust
  • 17,383
  • 2
  • 36
  • 47