On Friday 04 October 2002 14:30, Jake Colman wrote: > I built a newer kernel version and want to add it to the grub menu. I must > have done something wrong but cannot figure it out. > > I copied the new bzImage file to the /boot directory. I edited my > /boot/grub/grub.conf file as follows: > > default=0 > timeout=10 > splashimage=(hd0,0)/grub/splash.xpm.gz > title Red Hat Linux (2.4.7-10) > root (hd0,0) > kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6 > initrd /initrd-2.4.7-10.img > title Red Hat Linux (2.4.19) > root (hd0,0) > kernel /bzImage ro root=/dev/hda6 > initrd /initrd-2.4.7-10.img > > The entry for 2.4.7-10 is what was in the file. I copied that entry to the > entry for 2.4.19 and simply changed the name of the boot image. Is this > correct? Does the 'root' have to be changed also?
Yes and no in that order. You have to make an initrd-2.4.19.img file also. The command should be something like: > mkinitrd initrd-2.4.19.img 2.4.19 ^^^^^^ (This last number should be equal to the number in /lib/modules/ corresponding to your own compiled kernel.) Edit the grub.conf file to include initrd-2.4.19.img instead of initrd-2.4.7.img. Then copy the /usr/srd/linux-2.4.19/System.map file /boot/System.map-2.4.19. You should be ready. You can of course > mv /boot/bzImage /boot/vmlinuz-2.4.19 and put vmlinuz-2.4.19 instead of bzImage in the grub.conf file. I prefer to do that since I quite often have more than one kernel compiled by myself. If you start to use your new kernel all the time, do > ln -sf /usr/src/linux-2.4.19 /usr/src/linux-2.4 (This is all based on memory, since I don't have my linux machine at the moment.) -- Øystein Olsen, [EMAIL PROTECTED], http://folk.uio.no/oeysteio Institute of Theoretical Astrophysics, http://www.astro.uio.no University of Oslo, Norway -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list