Boot from one kernel to another kernel without reboot the system

Discussion in 'Kernel Questions' started by redwan007, Mar 25, 2008.

  1. redwan007

    redwan007 New Member

    Hi everyone,

    Im a beginner in kernel related stuffs. I got two kernel in my system. both kernel r working fine so far.

    But I would like switch from one working kernel to another kernel without rebooting my system. is there anybody here tell me how can I will able to do that?

    thanks

    Redwan
     
    Last edited: Mar 25, 2008
  2. topdog

    topdog Active Member

    There used to be a mechanism called kexec am not sure if it is still maintained with the current kernels just google for kexec
     
  3. redwan007

    redwan007 New Member

    hi,

    thanks for reply... I have tried that command but when the new kernel start to boot, it suddenly get stuck at some point and generating the following error

    No filesystem could mount root, tired: ext2 iso9660
    kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,0)

    do you have any idea about this?

    Redwan
     
  4. topdog

    topdog Active Member

    That is because you are not passing the correct root option to the kernel
     
  5. redwan007

    redwan007 New Member

    Thanks a lot topdog.. finnaly I got able to switch another kernel..I used below command


    kexec -l -t bzImage --command-line="ro root=/dev/VolGroup00/LogVol00" \
    --initrd="/boot/initrd-2.6.24.3-custom_test.img" /boot/vmlinuz-2.6.24.3-custom_test

    kexec -e

    looking forward to future co-operation

    regards

    Redwan
     

Share This Page