On Wed, Jul 04, 2001 at 00:07 +1000, Andrew George wrote:
> On Tue, 3 Jul 2001 23:58, Wolfgang Bornath wrote:
> >
> > I know that, but what I mean is
> >
> > existing kernel = vmlinuz.1
> > existing modules = /lib/modules/2.4.3-20mdk
> >
> > Now I customize the kernel and will have:
> >
> > new kernel = vmlinuz.2
> > existing modules = /lib/modules/2.4.3-20mdk.old
> > new modules = /lib/modules/2.4.3-20mdk
> >
> > When I boot the new kernel it's ok. But what happens when I boot
> > vmlinuz.1? It will look for the modules and take the modules from
> > /lib/modules/2.4.3-20mdk.
> > This will result in some nice error messages b/c this set of modules is
> > installed for vmlinuz.2
> >
> > wobo
> 
> Oh that...err, I usually go into the make file and change the minor version 
> so the new modules are not going to be installed into a directory called 
> 2.4.3-20mdk 

OK, now here is what I did:

Existing configuration:

kernel: vmlinuz-2.4.3-20mdk
modules: /lib/modules/2.4.3-20mdk

I went to /usr/src/linux and in Makefile I changed the extension to
-21mdk

make mrproper, make xconfig, make dep, make clean, make modules, make
modules_install, make install

After that my lilo.conf showed a third entry: 243-21 which pointed to the
new kernel. I wish I had given this lilo.conf a closer look!

I rebooted and on the menu I chose '243-21'. Total desaster. The first
part booted and I had a very small penguin picture in the upper left
corner. Next thing it told me "Cannot open initial console" then it
doesn't find ANY script of the /etc/rc.d tree. At 'starting syslogd' it
hanged.

I made the 3-finger-salute and after shutdown it rebooted and I chose
'linux' from the boot-menu b/c I thought: Oh well, I did something wrong
with the new kernel, so just boot the old one and let's try again. Wrong
thought! It kept bringing up the new kernel with the error.

I booted with CD1 and went into rescue mode. Then I looked at
/mnt/disk/etc/lilo.conf and found that 'linux' also starts the new
kernel!

After I changed lilo.conf I wanted to execute /sbin/lilo but it
complained not being able to find the /boot directory which is
understandable 'cause it's on /mnt/disk/.

In the end I booted the CD1, went through the initial questions and then
went straight to section 'Installing bootloader'. I cleaned out the
243-21 things and let the installation program install a new bootloader.

I rebooted and my old kernel came up as I am used to see it. Pheeew! Day
was saved!

What did I do wrong?

wobo
-- 
GPG-Fingerprint: FE5A 0891 7027 8D1B 4E3F  73C1 AD9B D732 A698 82EE
For Public Key mailto [EMAIL PROTECTED] with Subject: GPG-Request
-------------------------------------------------------------------
ISDN4LINUX-FAQ -- Deutsch: http://www.wolf-b.de/i4l/i4lfaq-de.html

Reply via email to