At 18:12 11/08/00 +0200, Arturs Korneevs wrote:

>I installed RH6.2. I created RAID1 on /boot (md0).
>Qwestion: Is it posiible recompile kernel ?

If your system boots from your current kernel in /boot, and you will be
placing your new kernel in /boot, then yes, it is possible to recompile the
kernel (just on the general principle that if it is working now it must be
the case that it can be made to work). In general you would want to do the
following things:

0. Read the Kernel-HOWTO.

1. Use "make menuconfig" in text mode or "make xconfig" if you're running
X, to configure your kernel properly. Do whatever you want with your kernel
configuration but when you change stuff be sure to read the help text (and
don't get rid of RAID support). Don't run "make mrproper" unless you're
reasonably sure that you have junk files which are interfering with your
build process. The "make mrproper" command will delete your old kernel
config (AFAIK the initial configuration provided with the Redhat
kernel-source package is the same as the configuration of the pre-compiled
i386 kernel, so it is a good starting point).

2. Build a new kernel & with a command analogous to "make clean dep bzImage
modules modules_install"

3. Copy your new kernel into /boot under a different name than your old
kernel (if it's a different version number than the old one, copy your new
System.map file as well).

4. Use mkinitrd to create a new initial ramdisk (needed usually when
booting with RAID or SCSI support that's compiled as a module), read the
man page if in doubt.

5. Set up a new lilo configuration entry (call it something like "new" or
"test") which boots your new kernel using your new modules & initrd.

6. Try to reboot and bring up the new kernel, if you have trouble just boot
with the old kernel and experiment (or post to the list again).

If you do have further trouble try to be a bit more detailed about your
configuration. It is not entirely clear to me from your message whether
/boot is itself the mountpoint for a RAID-1 device or whether you have
created a RAID-1 root filesystem with /boot either in it or as a mountpoint
for another device. Also, my message above assumes that you have gcc (egcs)
and make and the other bits of software which are needed to re-compile the
kernel. If not then step 1 above will fail at some point.

--

Omni Ignotum Pro Magnifico



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to