Help - Search - Members - Calendar
Full Version: New Kernel Install
Linuxhelp > Support > Technical Support
azimmer
I have RedHat8 installed, running 2.4.18-14 kernel. For various reasons I need 2.4.22. I have compiled the kernel as described in the guide but it won't load. (The 2.4.18 kernel boots OK.) On boot (after about two screenloads of init messages) the 2.4.22 kernel version reports panic and prints:

CODE
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct boot option


My lilo.conf contains the following:
CODE
prompt
timeout=50
default=DOS
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.18-14
    label=linux.old
    initrd=/boot/initrd-2.4.18-14.img
    read-only
    append="hdc=ide-scsi root=LABEL=/"

image=/boot/vmlinuz-2.4.22
    label=linux
#    initrd=/boot/initrd-2.4.18-14.img
    read-only
    append="hdc=ide-scsi root=LABEL=/"

other=/dev/hda1
    optional
    label=DOS


I suspect that there should be a way to create a /boot/initrd-2.4.22.img but I have no clue how.

Any help or pointers would be most appreciated. Thanks,

Andrew
hughesjr
instead of root=LABEL=/ in lilo.conf, change it to:

root=/dev/hda3

(substitute the proper partition where your root partition is located).

the run /sbin/lilo.
Joey
I have a feeling it's looking for the initrd image for the new kernel.
hughesjr
You would use mkinitrd to make a new initrd image for the new kernel ... see these references:

http://www.linuxquestions.org/questions/sh...?threadid=56017

http://www.spinics.net/lists/rh-inst/msg28262.html

http://www.mail-archive.com/clug-talk@calg...a/msg05849.html

Basically, the command is(from the /boot directory as root):

mkinitrd new_image_name.img kernel_name

if you use ext3 (or a scsi driver, or XFS, JFS, FAT, etc) then you have to preload those modules (or compile them into the kernel directly) ... then use the switch:

--with=ext3

----------------------------------
NAME
mkinitrd - creates initial ramdisk images for preloading modules

SYNOPSIS
mkinitrd [--version] [-v] [-f]
[--preload=module] [--omit-scsi-modules]
[--omit-raid-modules] [--omit-lvm-modules]
[--with=module] [--image-version]
[--fstab=fstab] [--nocompress]
[--builtin=module] [--nopivot]
image kernel-version

---------------------------------
see man mkinitrd on your RedHat 9 system for more information.
azimmer
Thanks to you all, it got solved in the meantime. I compiled the IDE drivers into the kernel and thus the image is not needed anymore.

For the initrd stuff, see the solution in the RedHat kernel HOW-TO.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.