Web Hosting Talk







View Full Version : kernel update


Lmax
11-12-2002, 07:50 PM
I'm using lilo to boot my server.
is it possible to give a command to boot the next time to linux.bak, instead of the normal linux.
I want to test a kernel, and if it goes to kernel panic i just give a reboot and then it has to boot to the normal linux again. Is this possible???
Thanks

CipherVendor
11-12-2002, 08:47 PM
man lilo

Lmax
11-12-2002, 08:55 PM
I understand there is a man for it. What i want is a 1 time boot with the new kernel. If it doesn't come online again i reboot it with my reboot switch and it has to use the old profile again. As far as i can see this isn't specified in the lilo man.

sasha
11-12-2002, 09:15 PM
Command is as follows.

Call data center, and get someone to hold down CTRL key to get LILO prompt, and then ask them to switch to good kernel.

CipherVendor
11-12-2002, 10:45 PM
lilo -R details

Will reboot to new kernel. If it doesn't come up correctly reboot the machine and it will come back up on the old kernel.

sasha
11-12-2002, 11:55 PM
cool, did not know that one

Lmax
11-13-2002, 06:13 AM
Originally posted by CipherVendor
lilo -R details

Will reboot to new kernel. If it doesn't come up correctly reboot the machine and it will come back up on the old kernel.

Thanks, that's what i was looking for :)

Lmax
07-18-2003, 08:30 PM
Is this option also available with grub
For example, i installed a new kernel, but it goes into kernel panic, how do i boot again in the old kernel after a power reset.
I couldn't find the -R option for grub.

choon
07-19-2003, 05:33 AM
Originally posted by CipherVendor
lilo -R details

Will reboot to new kernel. If it doesn't come up correctly reboot the machine and it will come back up on the old kernel.

Thanks :)

Anyway, what is the exact command if I am going to boot the second one which label 2.4.21?
cat /etc/lilo.conf
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.20-18.9
label=2.4.20-18.9
read-only
initrd=/boot/initrd-2.4.20-18.9.img
append="root=LABEL=/"

image=/boot/vmlinuz-2.4.21
label=2.4.21
read-only
initrd=/boot/initrd-2.4.21.img
append="root=LABEL=/"

image=/boot/vmlinuz
label=linux
read-only
root=/dev/hda5

image=/boot/vmlinuz-2.4.20-8
label=linux.old
read-only
root=/dev/hda5

image=/boot/vmlinuz-2.4.20-18.9
label=linux-up
root=/dev/hda5
read-only
initrd=/boot/initrd-2.4.20-18.9.img
Is it the following?
lilo -R -D 2.4.21

I am also interested to know the grub option similiar to -R in lilo... anyone know?

Thanks.

Kindest regards,
Choon