lkml.org 
[lkml]   [2007]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subjectset up new kernel with grub
    Date
    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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-04 17:41    [W:0.023 / U:0.236 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site