Professional Web Applications Themes

Kernel panic while upgrading from 2.4.20-6 to 2.4.22 - Linux Setup, Configuration & Administration

Hi, I am getting kernel panic, when i try to upgrade my kernel from 2.4.20-6 to 2.4.22. This is on a Compaq desktop, and the 2.4.20-6 is what i got as kernel from Redhat 9.0 CDs. I use GRUB loader, and there is no other OS in the system. Following are the steps i took, based on the /usr/src/linux-2.4.20-6/README file. Downloaded the linux-2.4.22.tar.gz file into /usr/src, and untarred, which created /usr/src/linux-2.4.22. # cd /usr/src/linux-2.4.22 # make config # make dep # make bzImage # make modules # make modules_install # make install No error came in any of these steps, ...

  1. #1

    Default Kernel panic while upgrading from 2.4.20-6 to 2.4.22

    Hi,

    I am getting kernel panic, when i try to upgrade my
    kernel from 2.4.20-6 to 2.4.22.

    This is on a Compaq desktop, and the 2.4.20-6 is what
    i got as kernel from Redhat 9.0 CDs. I use GRUB
    loader, and there is no other OS in the system.

    Following are the steps i took, based on the
    /usr/src/linux-2.4.20-6/README file.

    Downloaded the linux-2.4.22.tar.gz file into /usr/src,
    and untarred, which created /usr/src/linux-2.4.22.

    # cd /usr/src/linux-2.4.22
    # make config
    # make dep
    # make bzImage
    # make modules
    # make modules_install
    # make install

    No error came in any of these steps, and i could see
    additional entries added for GRUB, and the boot image
    appropriately copied into /boot

    After these, when i reboot, i could see the additional
    entry for 2.4.22 shown in GRUB menu. When i select
    that and enter, following are some of the final
    messages i get, saying kernel panic.

    ds: no socket drivers loaded!
    VFS: Cannot open root device "LABEL=/" or 00:00
    Please append a correct "root=" boot option
    Kernel panic: VFS: Unable to mount root fs on 00:00

    Not sure if i am missing some step, or missing to read
    some already written doent.

    Your help will be appreciated.

    Thanks,
    Elwin.
    Elwin Guest

  2. #2

    Default Re: Kernel panic while upgrading from 2.4.20-6 to 2.4.22

    Elwin Eliazer wrote: 

    That is a known problem with redhat. Edit /etc/fstab and change
    the root "/" partition back to the correct device instead of
    using the LABEL= scheme that redhat uses. Use the correct
    filesystem though (ext2, ext3, reiserfs, etc...). Also be sure
    the root partition's filesystem support is compiled into the
    kernel not as a module.

    /dev/hdaX / ext2 defaults 1 1

    Then try it like this.

    make mrproper
    make menuconfig
    make dep
    make clean
    make bzImage
    make modules
    make modules_install
    make install

    --
    Confucius: He who play in root, eventually kill tree.
    Registered with The Linux Counter. http://counter.li.org/
    Slackware 9.1.0 Kernel 2.4.23 SMP i686 (GCC) 3.3.2
    Uptime: 6 days, 14:26, 2 users, load average: 1.49, 1.25, 1.29
    David Guest

  3. #3

    Default Re: Kernel panic while upgrading from 2.4.20-6 to 2.4.22

    [ Followup-To: set & bogus (for me) ng removed ]

    In comp.os.linux.misc David <net> wrote: [/ref]

    make clean
     [/ref]

    I always copy bzImage/System.map manually.
    [..]
     [/ref]
     

    AFAIK, this is a problem if you are missing devfs or whatever is
    needed to mount via labels.

    The answer should be here:

    /usr/src/linux-*/Doentation/filesystems/devfs/README
     

    Or simply create an initial initrd containing the proper modules.
    Hint:
    man mkinitrd.

    --
    Michael Heiming

    Remove +SIGNS and www. if you expect an answer, sorry for
    inconvenience, but I get tons of SPAM
    Michael Guest

  4. #4

    Default Re: Kernel panic while upgrading from 2.4.20-6 to 2.4.22

    com (Elwin Eliazer) writes:

    ]Hi,

    ]I am getting kernel panic, when i try to upgrade my
    ]kernel from 2.4.20-6 to 2.4.22.

    ]This is on a Compaq desktop, and the 2.4.20-6 is what
    ]i got as kernel from Redhat 9.0 CDs. I use GRUB
    ]loader, and there is no other OS in the system.

    ]Following are the steps i took, based on the
    ]/usr/src/linux-2.4.20-6/README file.

    ]Downloaded the linux-2.4.22.tar.gz file into /usr/src,
    ]and untarred, which created /usr/src/linux-2.4.22.

    ]# cd /usr/src/linux-2.4.22
    ]# make config
    ]# make dep
    ]# make bzImage
    ]# make modules
    ]# make modules_install
    ]# make install

    The error message says that you have no root (/) partition and you need
    one. Since I do not use grub, I cannot tell you how to tell grub what
    your / partition is, but you should look at the grub configuration files
    to see what is different between your 2.4.20 and 2.4.22 entries (I
    assume you did not erase the 2.4.20 when you installed 2.4.22)

    ]No error came in any of these steps, and i could see
    ]additional entries added for GRUB, and the boot image
    ]appropriately copied into /boot

    ]After these, when i reboot, i could see the additional
    ]entry for 2.4.22 shown in GRUB menu. When i select
    ]that and enter, following are some of the final
    ]messages i get, saying kernel panic.

    ]ds: no socket drivers loaded!
    ]VFS: Cannot open root device "LABEL=/" or 00:00
    ]Please append a correct "root=" boot option
    ]Kernel panic: VFS: Unable to mount root fs on 00:00

    This says you do not have a / partition. You need one.



    Bill Guest

  5. #5

    Default Re: Kernel panic while upgrading from 2.4.20-6 to 2.4.22

    Hi all:

    Removing LABEL in /etc/fstab based on the comments by David, and
    following the steps mentioned (including the make clean), got it
    working. However i have a few problems if i boot from 2.4.22. It says
    not enough loopback devices, or something like that, when i try
    rebuilding the kernel. I booted in 2.4.20-6 and again followed the
    same steps to build the 2.4.22 kernel, this time adding loopback
    devices support. Once the build is completed and 2.4.22 images are
    installed, still i am not able to rebuild if i boot in 2.4.22. But i
    am able to build in 2.4.20-6. I will characterize this problem more
    clearly and post a separate email. If there is something obvious to
    you that i am missing here, please let me know.

    For now, thanks for all your help and time. I appreciate it very much.
    I am not usually a GUI fan, but, somehow i started liking 'make
    menuconfig' over 'make config'. Thanks for pointing that as well.

    cheers,
    Elwin.


    physics.ubc.ca (Bill Unruh) wrote in message news:<bsg68f$ke3$physics.ubc.ca>... 
    Elwin Guest

Similar Threads

  1. Kernel panic
    By milan in forum Linux / Unix Administration
    Replies: 4
    Last Post: May 24th, 05:01 PM
  2. Kernel panic: No init found. Try passing init = option to kernel
    By Liviu in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: October 31st, 03:56 PM
  3. Replies: 2
    Last Post: September 12th, 04:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139