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
> Kernel 2.4.20 Will Not Run
Newtek007
post Feb 20 2003, 03:35 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 18-February 03
Member No.: 455



I'm not really new to using Linux but I'm new to compiling stuff like the kernel. I am having a problem doinf so with the 2.4.20 distro. I have googled everywhere and have papers about half inch thick telling how to compile the kernel. All of them point to using LILO as the boot loader but I am using GRUB that came with my RedHat 8.0 distro. I like it better than LILO and want to continue to use it.
Here is the problem. I have everything compiled and in their places with no errors but when I try to load the kernel with grub this is what I get:

can't 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

I have looked over the GRUB lines over and over with examples and they are correct. Any ideas?
Thanks.
Go to the top of the page
 
+Quote Post
chrisw
post Feb 20 2003, 03:44 PM
Post #2


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



did you manually update your grub.conf file
after you compiled your kernel
and did you move your kernel image files
to your /boot directory?


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Newtek007
post Feb 20 2003, 08:17 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 18-February 03
Member No.: 455



Yeah, I manually configured GRUB. I also moved the bzImage file to the boot renaming it to vmlinuz-2.4.20.
Go to the top of the page
 
+Quote Post
chrisw
post Feb 20 2003, 09:36 PM
Post #4


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



did you move the System-map file also?


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Newtek007
post Feb 21 2003, 06:01 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 18-February 03
Member No.: 455



Yep. Like I said I have done everything that has been suggested and it still will not boot.
Go to the top of the page
 
+Quote Post
chrisw
post Feb 21 2003, 05:26 PM
Post #6


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



did you compile and install the modules into the kernel image?

i tend to forget those two steps....


post your steps you have done, in their proper order and
i will see if i see anything odd...

also, do you have a scsi or ide system?


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Newtek007
post Feb 23 2003, 07:58 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 18-February 03
Member No.: 455



Ok. Here are my steps in trying to compile 2.4.20.

1. Downloaded kernel source from www.kernel.org. 2.4.20
2. Decompressed it into /usr/src. The folder is now reading <linux-2.4.20>.
3. Changed into that directory with command prompt.
4. <mrproper>
5. <make xconfig>. Fill out all of the options. Also have tried by <make oldconfig>.
6. <make bzImage>.
7. <make modules>.
8. <make modules_install>.
9. <make install>.

The one thing that I do notice is that the RedHat 8.0 <initrd-2.4.18.img is about 2XX k big while the initrd image that 2.4.20 generated is only about 62k big. I am thinking that the initrd image isn't being written properly.

I have followed the directions from the RedHat 8.0 customizing the kernel how to and tried the instructions from the README file with 2.4.20 and from http://www.tldp.org/HOWTO/Kernel-HOWTO-2.html.

Still can't get it to work.

One note of interest is that if I copy the 2.4.18 RedHat folder and build from that folder that kernel will boot up and run. Has RedHat done anything that is proprietory (can't spell) to the Makefile???

Thanks.
Go to the top of the page
 
+Quote Post
chrisw
post Feb 25 2003, 11:13 AM
Post #8


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



i havent compiled a kernel in a while but i think you skipped
a few steps

4. <mrproper>
5. <make xconfig>. Fill out all of the options. Also have tried by <make oldconfig>.
should have done the following steps
make dep
make clean

6. <make bzImage>.
7. <make modules>.
8. <make modules_install>.
9. <make install>.

instead of make install....i havent ever done that....

try manually copying your System.map and your bzImage
to your /boot directory

and the when you copy them add the kernel version number
after them

for example:

cp <path to System.map>System.map /boot/System.map-2.4.20

same with your bzImage:

cp <path to bzImage>/bzImage /boot/vmlinuz-2.4.20


edit grub or lilo....which ever you are using....
keep your existing kernel info in the lilo or grub conf files
in case something goes wrong...you can still boot up linux
with the old kernel

you dont need to make a new initrd.img unless you have
a scsi system....i think...

cause i have both ide and scsi systems....and never made
and new initrd.img file for my ide systems


--------------------

Chris W.
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 - 07:19 PM