Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> New Kernel Install, Proper installation of a new kernel
azimmer
post Sep 26 2003, 03:11 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 26-September 03
Member No.: 1,529



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
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 26 2003, 08:01 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Joey
post Sep 26 2003, 10:17 AM
Post #3


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



I have a feeling it's looking for the initrd image for the new kernel.
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 26 2003, 11:39 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
azimmer
post Sep 29 2003, 03:35 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 26-September 03
Member No.: 1,529



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2017 - 02:25 AM