public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* set up new kernel with grub
@ 2007-04-04 16:36 Michael
  2007-04-04 15:53 ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2007-04-04 16:36 UTC (permalink / raw)
  To: linux-kernel

Hi,

I compiled a new kernel: 2.6.20.3, and hope to test it without removing 
my old kernel.

Here is what I did by following 
http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1204148,00.html :

I built the kernel in a local directory, say "mydir", with kernel 
"bzImage-2.6.20.3" and map file "System.map".

>su          (#become a root)

>cp mydir/bzImage-2.6.20.3 /boot/bzImage-2.6.20.3
>cp mydir/System.map /boot/System.map-2.6.20.3

>cd /boot
>ln -s /boot/bzImage-2.6.20.3 /boot/bzImage
>ln -s /boot/System.map-2.6.20.3 /boot/System.map

>vi grub/menu.lst

add a new entry as
**************************************
title Red Hat Linux (2.6.20.3)
    root (hd0, 0)
    kernel /boot/bzImage ro root=LABEL=/
    initrd /boot/initrd-2.6.20.3.img
**************************************

>create an initial ram disk image by
mkinitrd -k /boot/bzImage -i /boot/initrd-2.6.20.3

It reports wrong usage of "mkinitrd", and no initrd-2.6.20.3.img is 
created.

Any idea about what's wrong with the "mkinitrd" command ?


Thanks.

Mike


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-06 13:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.BNamKVxrrt25RRODKJNDbnxNoSs@ifi.uio.no>
2007-04-04 23:34 ` set up new kernel with grub Robert Hancock
2007-04-04 16:36 Michael
2007-04-04 15:53 ` linux-os (Dick Johnson)
2007-04-05 17:28   ` Michael
2007-04-06  3:15     ` WANG Cong
2007-04-06 14:23       ` Michael
2007-04-06 13:34         ` WANG Cong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox