Re: booting another kernel from console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



linux lover wrote:

hello,
            i have 2 kernels compiled on my pc one is
default and another is i downloaded and compiled. i
want to know how can i boot from default kernel to new
one compiled kernel? i know how to do it in grub.conf
just i am finding any direct boot option is avail on
console after compiling new kernel.
regards,
linux_lover

Just copy your new bzImage into /boot but give it an informative name. For example if your default kernel is vmlinuz-2.x.y, then name your new kernel vmlinuz-2.w.z (cp bzImage /boot/vmlinuz-2.w.z)

Then you can create a new entry in grub.conf like the following:
title linux (2.w.z)
       root (hd0,0)
       kernel /vmlinuz-2.w.z root=/dev/hdc3 (or where ever your root is)

Don't delete your default kernel entry until you know the new kernel boots okay ;)

- Bill



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux