LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel Booting Problem (https://www.linuxquestions.org/questions/linux-software-2/kernel-booting-problem-63500/)

VIP3R 06-03-2003 05:48 PM

Kernel Booting Problem
 
Hi, I recompiled my kernel, and it keeps giving me some messed up error messages!

# ERROR #
Kernel Panic: Unable to mount root fs or 00:00.
#########
When i try to fix that by changing the "root=LABEL=/" setting in grub to "/dev/hda5", i get a "try to pass an init= option" error.

How could I fix this, and why is it happening? I just want a working kernel that I recompiled :P! Could it be due to the fact that i'm removing SCSI options from my kernel configuration before I compile it?

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20.666)
root (hd0,5)
kernel /boot/vmlinuz-2.4.20.666 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.20.666.img
title Red Hat Linux (2.4.20-13.8)
root (hd0,5)
kernel /boot/vmlinuz-2.4.20-13.8 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.20-13.8.img
title Red Hat Linux (2.4.18-14)
root (hd0,5)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-14.img
title Windows
rootnoverify (hd0,0)
chainloader +1

je_fro 06-03-2003 07:30 PM

How are you doing it??
 
Are you using the RedHat way? Make it an RPM and all that? Or are you doing it manually : make menuconfig, make dep && make clean bzImage modules modules_install?

lokee 06-03-2003 08:20 PM

Seems like someone forgot something: :)
run 'man mkinitrd', and make a initrd with which you'll use with your new kernel.

VIP3R 06-04-2003 05:09 AM

I'm doing it the manual way on a redhat 8.0 system. And i make an initrd by doing

mkinitrd /boot/initrd-2.4.20.666.img 2.4.20.666

?

Maybe there's a missing step, or a missing option in the kernel i built because if it detects the drives, cdrom, and floppy, then it should work.

je_fro 06-04-2003 08:54 AM

What about...
 
System.map

VIP3R 06-04-2003 02:33 PM

umm what about a sytem map? I think i have one :S!

je_fro 06-04-2003 03:26 PM

OK, then....
 
Good Luck, vip3r.

VIP3R 06-04-2003 03:49 PM

?? wtf? Just like that u give up on me?

je_fro 06-04-2003 05:25 PM

Quote:

umm what about a sytem map? I think i have one :S!
Quote:

?? wtf? Just like that u give up on me?
I don't mind helping cordial people.
Did you do a make mrproper first?
mrproper would wipe out lots of stuff. I'd try copying an old .config to the new kernel, then just change what you want.

VIP3R 06-04-2003 05:29 PM

Umm i don't know what you understood by "what about a system map" but I meant that "what is a system map, for what, why, and where should it be".

incudie 08-08-2003 11:38 PM

System.map
 
Ok dude...
In a nutshell the system.map is a bunch of coding symbols (correct me if I'm wrong please)

and you can find it wherever you compiled your kernel (ex: /usr/src/linux/system.map)

Then you want to copy that to /boot
I would sugguest doing that with the following

"cp System.map /boot (while in soure dir)

I myself am a newbie but I do try to help people. Once again please correct me if I'm wrong on any of this.


All times are GMT -5. The time now is 02:59 AM.