Re: Some experience of linux on a Laptop

From: Helge Hafting (
Date: Mon Jun 25 2001 - 04:04:25 EST

John Nilsson wrote:
[everything else answered by others]

> 8: A way to change kernel without rebooting. I have no diskdrive or cddrive
> in my laptop so I often do drastic things when I install a new distribution.

Well, don't do drastic things then, if that cause problems!

My machines have both diskette and cdrom - but I _don't_ use them when
kernels. Why should you? Here is a procedure for painless kernel
It includes a reboot but that is not a problem:

1. Get the new kernel, i.e. compile it.
2. cp the bzImage to /boot (or wherever you want it.) DON'T overwrite
   the previous kernel image, you will want to keep it around.
3. If using lilo, modify /etc/lilo.conf to load the new kernel.
   Do this by _adding_ image=/boot/new_kernel_bzimage, not by changing
   existing lines. This keeps the old kernel around in case the new
   one have trouble.
4. run lilo
5. reboot.

The new kernel should come up. (If the old comes up you either
forgot (4), or you have the lilo.conf entries in a wrong order.
Int the latter case press shift furing boot and select the
correct kernel manually. You may correct lilo.conf later.

If the new kernel loads but crash, do reboot and use the above
mentioned shift-trick to select the old kernel. Then remove
the broken kernel from lilo.conf and re-run lilo.

As you see, no need for CD's or floppies when changing kernels,
even if the new kernel fails somehow.

Helge Hafting
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:11 EST