m (1 revision(s)) |
|||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
{| | {{Admon/note | Command line can be obtained with the command <code>cat /proc/cmdline</code>'''}} | ||
2. Reboot the machine. It boots into a new kernel without going through the BIOS: | 2. Reboot the machine. It boots into a new kernel without going through the BIOS: |
Latest revision as of 17:14, 25 May 2010
Kernel and kexec
Kexec is a fastboot mechanism that allows booting a Linux kernel from the context of an already running kernel without going through BIOS. BIOS can be very time consuming especially on big servers with many peripheral connections. This saves time for the developers who boot a machine numerous times.
How to Use Kexec (i386, x86_64, ppc64)
1. Preload the kernel you want to boot into. Following is a sample command line, with \
as a line-break for printing purposes; this should appear as one line:
kexec -l /boot/vmlinuz-2.6.15-1.1955_FC5smp \ --initrd=/boot/initrd-2.6.15-1.1955_FC5smp \ --command-line="ro root=/dev/VolGroup00/LogVol100 rhgb"
2. Reboot the machine. It boots into a new kernel without going through the BIOS:
reboot